Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1to3v0-005TLj-Gf for pgsql-committers@arkaria.postgresql.org; Fri, 28 Feb 2025 17:12:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1to3v1-00Ayr1-JO for pgsql-committers@arkaria.postgresql.org; Fri, 28 Feb 2025 17:12:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1to3v1-00AyqC-CI for pgsql-committers@lists.postgresql.org; Fri, 28 Feb 2025 17:12:57 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1to3ux-000Cmi-0v for pgsql-committers@lists.postgresql.org; Fri, 28 Feb 2025 17:12:57 +0000 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-309311e7b39so23636201fa.2 for ; Fri, 28 Feb 2025 09:12:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740762773; x=1741367573; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sGEo5gN4D6aLIiBd7/WuVfg0cvCu1PdJlv1+SZrsVGo=; b=nCC9fCb4Kv1PGh+qvvZ5oLG+IEGQn2Ac2mQGFSjH7dj+pwe1d2MGBDBy9zNNjPDAHY Fq2cufnI9181IlMIdOT7yvXoKjxz6duXnbIkNsOLMCXs0JEBM3JIFymNBvvNR6LZI5HQ WHiPnTuS5mJ1YFfAeGxSmWXhC+mdgVN4bFFRWoGh1ZXZkaK3naKxFku0NXlK4XLVI2E0 zn3QfL0hSrArCAhT38tQkvXOGSmj2Lz5GrkzaRZEFA/HK2NOrQ05RhF0qZo9C9JP+csU Y/ruCHNwlDYKropyQe+yNJrS4niYhtA3ebhcfgzOw5+U/X3ml5oA0DP769OomK/cshg5 nGmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740762773; x=1741367573; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sGEo5gN4D6aLIiBd7/WuVfg0cvCu1PdJlv1+SZrsVGo=; b=kTiZdhoSh5cimEoRPgNFtLX5PzEGxEr4dz68z3AOPPA59so1dIUrugxIkcUQOosKD9 S095rMkljoMrl38V2pNPQjL5+FztZm6pAY5EFPpYZ96lcuxctqOtGnFj7lQc+zsZlA5z t1CMqTp+BYSB9eqVrT+MfJs7G7ar+IGurySo/C3z7pASE43lS/dtVB4BPOFlTowrMUU6 qQcj4yEKEPsU4xFrQ8yVkDMS0lHTgwk2qxhgYG2zRqDyocQuu0fzah8WfT+V7aXyvuPO B9oCAPGRT2kbqFx/bsFr2bzKNQpSWc4d0j7eMdxBMuFdKDR5vuHmcvpWQJlvCNPyxgmR x9Gg== X-Forwarded-Encrypted: i=1; AJvYcCWSN/I3n3FKZhyKTZiYPBnCV41Rj3/3yzBgSpYie6obAp1j3J7el6JGxQgedlLlGG5HD4WyLjBrjC8BkcDjVCmz@lists.postgresql.org X-Gm-Message-State: AOJu0Yx5DYa2FlMiOkxaZpF5JCvXieLI0kiScrxUt5ikrAnr0tz/mDun Pad/PCP+rcs1FDmNq0k5hp6q70MUBXG4LB29UY2drx6qRjVStODFSLcrqb9LK8/Oete62WYkdyF 4JCUqNDcwAMfhx0+puAio8+IZOnI= X-Gm-Gg: ASbGnct93UTWfkLbLZkgh34yYmS1bSzvkE0m5+eU+yKsSa6L/3tlc++Ts5DoldKP9Zb e685cg+X38ob7ZacG8HX8F2cdMxXPvI/dcMpPYqqOx+TahG+eSuVoXwJzC0F1/CXBtf9a2uylJF aZBaqqaw== X-Google-Smtp-Source: AGHT+IEEOnGBFNSzgvz8LYo8pB5UQTNoEktNoEYl/XuvVdzQftKhCFQXWkVsRJeMWKLGZQ2dHatnisfokUuvKkDyALA= X-Received: by 2002:a2e:bc14:0:b0:308:ee65:7f4d with SMTP id 38308e7fff4ca-30b93454590mr14582991fa.32.1740762772888; Fri, 28 Feb 2025 09:12:52 -0800 (PST) MIME-Version: 1.0 References: <003dc9936317ab987faa0242f8e33e1cd2fcaf57.camel@j-davis.com> <40c1e76334f2baa747334c8fc513d12b8cb297bf.camel@j-davis.com> <3815127.1740189601@sss.pgh.pa.us> <5ebc188e731ac2b98d68459ce1a9ef3066981774.camel@j-davis.com> <3892121.1740193866@sss.pgh.pa.us> <976dcc37-b629-490e-a052-a057477d062f@dunslane.net> <301492.1740249291@sss.pgh.pa.us> <684274.1740273302@sss.pgh.pa.us> <812817.1740277228@sss.pgh.pa.us> <10bd5e38-c8e1-4162-8dd7-ef65e71170b4@dunslane.net> <1144186.1740338230@sss.pgh.pa.us> In-Reply-To: <1144186.1740338230@sss.pgh.pa.us> From: Sami Imseih Date: Fri, 28 Feb 2025 11:12:41 -0600 X-Gm-Features: AQ5f1Jqf5J9oSPCfrDuPIlu7Y3tAUotuKxLS3cs-I4m2GhQ-r3rKxArCYgfRaUI Message-ID: Subject: Re: pgsql: Trial fix for old cross-version upgrades. To: Tom Lane Cc: Andrew Dunstan , Jeff Davis , Jeff Davis , pgsql-committers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I was running "make check-world" this morning on a machine that has an old version of perl, 5.16, and the check-world was hung on /usr/bin/perl t/002_pg_upgrade.pl. I never saw "make check-world" hang on this old version of perl, but I bisected the regression to this commit fc0d0ce978752493, the subject of this thread. This is the pstack of the stuck perl process. #0 0x00007f5964b4b1dc in Perl_fbm_instr () from /usr/lib64/perl5/CORE/libperl.so #1 0x00007f5964bd146f in Perl_re_intuit_start () from /usr/lib64/perl5/CORE/libperl.so #2 0x00007f5964bd3400 in Perl_regexec_flags () from /usr/lib64/perl5/CORE/libperl.so #3 0x00007f5964b6d3fc in Perl_pp_subst () from /usr/lib64/perl5/CORE/libperl.so #4 0x00007f5964b67e1e in Perl_runops_standard () from /usr/lib64/perl5/CORE/libperl.so #5 0x00007f5964b07463 in perl_run () from /usr/lib64/perl5/CORE/libperl.so #6 0x0000000000400cd9 in main () and specifically, the process hangs with this specific change. - $dump =~ s ['version', '\d+'::integer,] - ['version', '000000'::integer,]mg; + $dump =~ s {(^\s+'version',) '\d+'::integer,$} + {$1 '000000'::integer,}mg; I repro'd on several machines with 5.16, and then issue went away once I upgraded to a more recent version of perl; at least with 5.25, the issue does not occur. I don't know if we need to do anything here, except for making sure we are building with the most recent version of perl, but I wanted to mention this here for awareness. -- Sami