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 1v7vzh-00A5yC-QB for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Oct 2025 13:20:13 +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 1v7vzf-001VG3-IO for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Oct 2025 13:20:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v7vzf-001VFv-6g for pgsql-hackers@lists.postgresql.org; Sun, 12 Oct 2025 13:20:12 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v7vzd-001knw-2I for pgsql-hackers@lists.postgresql.org; Sun, 12 Oct 2025 13:20:11 +0000 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-3ee130237a8so2632816f8f.0 for ; Sun, 12 Oct 2025 06:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760275208; x=1760880008; darn=lists.postgresql.org; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:subject:cc:to:from:date :sender:message-id:from:to:cc:subject:date:message-id:reply-to; bh=ojmbIaQzHI15spTZf/kWRkN4aP5ddBXpye8F0y5BEZw=; b=cv0ijwWj/v2vw+hnyDV5qBR8bKDjWtKGIcG18eAR1sp9IzN6cA/yHzCt9t1fXUce4Q ojkQRMussV8fFk8bUg657TKZkEA3h3nBb1InU/lUauOZLIW+PQO/AYiNAClho32pgWY8 gbxrUyOR2HAF/ElKg3v2tUmKZFSL6Nq/29Zhty44OTgTtf+n3bEjACpHBTOpHKSdMGAo YDo+Pw1nvMMsrxZbhP2p8tkqlYZa90x1UgVQ5L+VXx/ItbD3yz/jAasmITK1L0yACytp gdwrmKSSSS2nIeYwc6d6gH2lqpjgcDUahUCV1vnJofgJr4bflzMB2+6FvqdrHQ+KYiJU zVJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760275208; x=1760880008; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:subject:cc:to:from:date :sender:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ojmbIaQzHI15spTZf/kWRkN4aP5ddBXpye8F0y5BEZw=; b=RuUw30Nb7J7yt44s9N7chVo1hqivxsEt3d5KxwO+bd+KYxJJjz93up0BDa31YoNwZa Kd2yaKPMpS7J8mH269QQu0ezIHp8urorU9uifksiRPDVSwoco0NaWtQONp1BunIFbtPk xUW1j7/Z/iIHZ7P3JBGdVXrKREhL0w3Kyc/eihaBtD4bMLG/4EEm1hUle3RMHgnZ0DgR rD7lEBL97pr0osT2iH2q/jm1yyW5V55l8i6FHeIoo1BD1VM9UnlljHWgM7JXCAPPPKIQ YCQaSTuIAh/5pUgcuDN0eI9Z2PHqzzEMSzEIbbvpBt47/RFmKpgTlUo+th+15whwQmcA 5IKg== X-Forwarded-Encrypted: i=1; AJvYcCVsKyN7Nr6l0B5LOZyljcdsW35Nzd7zpWqDQjLrLKP0gtC9/KsarLAR/nOg4UPa9iP+t9hEtqpsUmaBIYTj@lists.postgresql.org X-Gm-Message-State: AOJu0YzXIrAjTZdshzibvaEB7e409jQvIHahfB31Bm0W/VvDy6xOmRHO 0sbYHpbr4GOo6m0llLldFNhFV1ZmQcPf7NASrCFAUTIHwyi6DI3jC3WJ X-Gm-Gg: ASbGncsjz35fwjhB4qFepCEL1SzYg/aqOM2vu/EI3R1Nr7xlJ/6AIAOGcvuMlpNNpRV g4DV+7lf/qBxID7gSHFOs1T2qdPQk7EXsqb0OjobxqwNQNUhIm4Sn7QpeV4kG410RJO6tiOfxL0 5eLjH88ce7MuUGxMn8qu5zvfCKGhY5RTfjAt+lmR0fNQ3241sYDRqTOvFBbPKtz8gKXXUqfv/xn 3J73FXriKpD7gGfd8pZtz4SU9woyqgk6+9OIXzBVvaxeDpGeuS8O90QkbEsZ0OzlPbnaSz9Vkny zx5KpCzjcYwlMjZUFYqAPbfeR7P4hWAl7XCXONOCb3BNEMIObR1TZwTS7ciNKZsAn5C2n+koEmx XoU3pOBPrLsD9U8Vh1mhaXUsY+adPDixY+EOhUAhMDLhL7qjaEfvAqPWlMbILF/+y776A08X6fQ == X-Google-Smtp-Source: AGHT+IGOzihlSRwIiTu7Xce//+ZjujF97VvUlnWax474MGLlimaKUWBXwT9c+p2pZZ/pggzfH7rV4g== X-Received: by 2002:a05:6000:4305:b0:3ec:d78d:8fcc with SMTP id ffacd0b85a97d-42666ab85a7mr11426440f8f.14.1760275208081; Sun, 12 Oct 2025 06:20:08 -0700 (PDT) Received: from lightning.caipicrew.dd-dns.de ([2001:a61:a7f:9701:6ac6:edd8:569:5ec9]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-426ce57cc03sm13553162f8f.4.2025.10.12.06.20.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Oct 2025 06:20:07 -0700 (PDT) Message-ID: <68ebab07.df0a0220.3222eb.2022@mx.google.com> X-Google-Original-Message-ID: <20251012132006.GP10642@caipicrew.dd-dns.de;lightning.caipicrew.dd-dns.de> Sender: Michael Banck Received: from mbanck by lightning.caipicrew.dd-dns.de with local (Exim 4.92) (envelope-from ) id 1v7vzb-0001eb-1k; Sun, 12 Oct 2025 15:20:07 +0200 Date: Sun, 12 Oct 2025 15:20:07 +0200 From: Michael Banck To: Alexander Lakhin Cc: Thomas Munro , Tom Lane , Michael Paquier , pgsql-hackers@lists.postgresql.org Subject: Re: GNU/Hurd portability patches References: <68d3cbe8.5d0a0220.65f10.da5f@mx.google.com> <3314741.1758724126@sss.pgh.pa.us> <68d413a3.a70a0220.24c74c.8be9@mx.google.com> <68d55c1e.050a0220.6136.4224@mx.google.com> <3771131.1758819153@sss.pgh.pa.us> <68d629f2.050a0220.3685b9.5ce2@mx.google.com> <68eb6761.7b0a0220.1711d0.1819@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Oct 12, 2025 at 04:00:00PM +0300, Alexander Lakhin wrote: > Hi Michael, > > 12.10.2025 11:31, Michael Banck wrote: > > > > Any way to easily reproduce this? It happened only once on fruitcrow so > > far. > > I'd say it happens pretty often when `make check` doesn't hang (so it > takes an hour or two for me to reproduce). > > Though now that you've mentioned MAX_CONNECTIONS => '3', I also tried: > EXTRA_REGRESS_OPTS="--max-connections=3" make -s check > and it passed 6 iterations for me. Iteration 7 failed with: > not ok 213   + partition_aggregate                      1027 ms > > --- /home/demo/postgresql/src/test/regress/expected/partition_aggregate.out 2025-10-11 10:04:36.000000000 +0100 > +++ /home/demo/postgresql/src/test/regress/results/partition_aggregate.out 2025-10-12 13:02:05.000000000 +0100 > @@ -1476,14 +1476,14 @@ >  (15 rows) > >  SELECT x, sum(y), avg(y), sum(x+y), count(*) FROM pagg_tab_para GROUP BY x HAVING avg(y) < 7 ORDER BY 1, 2, 3; > - x  | sum  |        avg         |  sum  | count > -----+------+--------------------+-------+------- > -  0 | 5000 | 5.0000000000000000 |  5000 |  1000 > -  1 | 6000 | 6.0000000000000000 |  7000 |  1000 > - 10 | 5000 | 5.0000000000000000 | 15000 |  1000 > - 11 | 6000 | 6.0000000000000000 | 17000 |  1000 > - 20 | 5000 | 5.0000000000000000 | 25000 |  1000 > - 21 | 6000 | 6.0000000000000000 | 27000 |  1000 > + x  | sum  |            avg             |  sum  | count > +----+------+----------------------------+-------+------- > +  0 | 5000 |         5.0000000000000000 |  5000 |  1000 > +  1 | 6000 |         6.0000000000000000 |  7000 |  1000 > + 10 | 5000 | 0.000000052757140846001326 | 15000 |  1000 > + 11 | 6000 |         6.0000000000000000 | 17000 |  1000 > + 20 | 5000 |         5.0000000000000000 | 25000 |  1000 > + 21 | 6000 |         6.0000000000000000 | 27000 |  1000 >  (6 rows) euh. > Then another 6 iterations passed, seventh one hanged. Then 10 iterations > passed. > > With  EXTRA_REGRESS_OPTS="--max-connections=10" make -s check, I got: > 2025-10-12 13:52:58.559 BST client backend[15475] pg_regress/constraints > STATEMENT:  ALTER TABLE notnull_tbl2 ALTER a DROP NOT NULL; > !!!wrapper_handler[15479]| postgres_signal_arg: 30, PG_NSIG: 33 > !!!wrapper_handler[15476]| postgres_signal_arg: 30, PG_NSIG: 33 > !!!wrapper_handler[15476]| postgres_signal_arg: 28481392, PG_NSIG: 33 > TRAP: failed Assert("postgres_signal_arg < PG_NSIG"), File: "pqsignal.c", Line: 94, PID: 15476 > postgres(ExceptionalCondition+0x5a) [0x1006af78a] > postgres(+0x70f59a) [0x10070f59a] > /lib/x86_64-gnu/libc.so.0.3(+0x39fee) [0x102b89fee] > /lib/x86_64-gnu/libc.so.0.3(+0x39fdd) [0x102b89fdd] > > on iteration 5. > > So we can conclude that the issue with signals is better reproduced with > higher concurrency. > > 28481392 (0x1b29770) is pretty close to 28476608 (0x1b284c0), which I > showed before, so numbers are apparently not random. Ok, so it seems to do that for different tests/statements. I'll try to reproduce it here with the above --max-connections=10, thanks. Michael