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.98.2) (envelope-from ) id 1xM5eO-00000001qqZ-2WhV for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Oct 2026 15:33:17 +0000 Received: from localhost ([127.0.0.1]:36504 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xM5eN-0000000HCyZ-49Kc for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Oct 2026 15:33:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]:59466) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xM5eN-0000000HCyQ-2ge3 for pgsql-hackers@lists.postgresql.org; Wed, 28 Oct 2026 15:33:15 +0000 Received: from cornsilk.maple.relay.mailchannels.net ([23.83.214.40]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xM5eJ-00000001RAK-2nbU for pgsql-hackers@postgresql.org; Wed, 28 Oct 2026 15:33:15 +0000 X-Sender-Id: hostingeremail|x-authuser|david@pgbackrest.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 4C2077E2A53; Wed, 28 Oct 2026 15:32:48 +0000 (UTC) Received: from de-fra-smtpout7.hostinger.io (trex-green-1.trex.outbound.svc.cluster.local [100.96.9.235]) (Authenticated sender: hostingeremail) by relay.mailchannels.net (Postfix) with ESMTPA id 9B4697E10B1; Wed, 28 Oct 2026 15:32:40 +0000 (UTC) X-Sender-Id: hostingeremail|x-authuser|david@pgbackrest.org X-MC-Relay: Neutral X-MailChannels-SenderId: hostingeremail|x-authuser|david@pgbackrest.org X-MailChannels-Auth-Id: hostingeremail X-Supply-Bitter: 7808ea271a31efbd_1793201566869_937644626 X-MC-Loop-Signature: 1793201566869:4012426771 X-MC-Ingress-Time: 1793201566869 Received: from de-fra-smtpout7.hostinger.io (de-fra-smtpout7.hostinger.io [148.222.55.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.96.9.235 (trex/8.0.2); Wed, 28 Oct 2026 15:32:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgbackrest.org; s=hostingermail1; t=1793201558; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F7xNfH5AFxXFbzH8B6mhXyE98Jwc2wVJFrG/s7ykFQk=; b=mtBfBvGi8rCbENWg6KErxxFOzTWbUQ9jHMtQvYvD9SF2HTaGYlSrQBNm4BAJb3pOfvdlMX zSpaNvSS9H9I19vMJEBVKQ0BsoU6G0xPdsQWuvgmIYqHZ40sHXBqkXw9dPHF5Y7JIzDPD5 FmtUHBuZ+26zCbah6F3jInWKDPibQWT8pzRDtdS0/JpPfKMymS2NrDAPsmqqbzbN5Akphw gZJWBJajw9d5FPDcu6NZXJI/lE44+doISjtD7cTRg01ZU1mVirmiRLvGx6Ul6WjQ7p/+W9 k73Xxa+j5OS4okaJEySQZWy+I78J/BnOoUn3RltizB4RED/Bg8aThLV2IkB/Fg== Received: from [10.3.0.2] (unknown [87.249.138.242]) (Authenticated sender: david@pgbackrest.org) by smtp.hostinger.com (smtp.hostinger.com) with ESMTPSA id 4jFBFH0vL6z3wg5; Wed, 28 Oct 2026 15:32:34 +0000 (UTC) Message-ID: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Return pg_control from pg_backup_stop(). To: Michael Paquier Cc: Heikki Linnakangas , Pg Hackers , Robert Haas , Andres Freund , Fujii Masao , solai v , hofstetter@jomasoft.ch, Noah Misch References: <4193dcbc-591e-44bb-816c-43b4ae70d31c@pgbackrest.org> <86436ff9-eb98-4c8a-825e-3bcae022107b@pgbackrest.org> <9b37265e-8025-4e8a-9a9c-c4232eaf746f@pgbackrest.org> <50308898-7fad-40d5-88dd-fa657938c2fe@iki.fi> <86ab26ee-928d-4d58-b29d-e3ae7623a97b@pgbackrest.org> Content-Language: en-US From: David Steele In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 28 Oct 2026 15:32:34 +0000 (UTC) X-CM-Envelope: MS4xfJeMk9LqwwSKqiqlf5NRqHMoxBihQ2QMe4BrK+ExpbqHf8diCaiw23pTyaIxKJNDmiX3onKutagtinClUn+t26lD9UXyiYhP1oGtA8BzTg8Pyx97Iblq Z9T8+Dd2WKVO+dpGDASCdwKOKW7qd9cJt5sZoYUhGEp3+f9rVso4tsfHf8cxw23ED0aAWtwZR6F5r6g0fxtZO9Fg/ykCqC0lR/K0+MTnt8BKSTx8etiYIu8f suAj8FYtkT3I/qugXeOlNFy/4/YiBYeRNQ7QfUZ+P1u8WNzr/5A6mfBKm9F6SqZpCUDLBY1zcUPET8lQllO0llahqWvE1GJE1LH7heDSKkqpb6YmOJOs4U1M DtYAqp+3a4Sohx7uHvTNocX7BdGbPFwwaTD7F++IkNw2DwEvykTtBgToNocE0YdmYMnuGdqgpLbTDfLUPNmm1S0e1g9h9A== X-CM-Analysis: v=2.4 cv=PJpd+uqC c=1 sm=1 tr=0 ts=6ae21596 a=Zj98sH3vu+uX9tLWOfprEQ==:117 a=Zj98sH3vu+uX9tLWOfprEQ==:17 a=IkcTkHD0fZMA:10 a=epTmVMiNAAAA:8 a=CmnMT6gE6vJW8FAaZSYA:9 a=QEXdDO2ut3YA:10 a=RzD4dkpxEtUA:10 a=Z3ZzKiRzccAbQQSn0Y5v:22 X-AuthUser: david@pgbackrest.org List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/28/26 11:56, Michael Paquier wrote: > On Wed, Oct 28, 2026 at 08:56:25AM +0000, David Steele wrote: >> I've CC'd billbug's owner. The HEAD run with the 2026-10-28 04:00 UTC >> snapshot crashed a client backend (PID 1498) running BASE_BACKUP with >> SIGSEGV during src/bin/pg_basebackup/t/010_pg_basebackup.pl, but no >> backtrace made it into the logs. Could you check whether a core file was >> written and get a backtrace from it? If no core was written then the >> coreadm settings may be redirecting or suppressing it. Any additional info >> you can provide would be greatly appreciated. > > We have what looks like a second report on HEAD and v19, different > pattern: > https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=thorntail&dt=2026-10-28%2006%3A31%3A23&stg=recovery-check > > From 001's primary logs: > 2026-10-28 10:44:13.113 MSK [1706208:4] LOG: client backend (PID > 1706227) was terminated by signal 10: Bus error > 2026-10-28 10:44:13.113 MSK [1706208:5] DETAIL: Failed process was > running: BASE_BACKUP (CHECKPOINT 'fast', MAX_RATE 32); > > If something else is going on, I'm not quite sure what it is yet. thorntail is also SPARC so this failure narrows things down quite a bit. The test that crashed is "base backup cleanly canceled". This test is designed to be cancelled in the middle so it is unlikely that it ever got to the new code, which isolates the extra 8KiB on the stack as the likely cause. Well, that already seemed clear but this is additional confirmation. On the cancel path the only runtime difference from the prior code is the size of perform_base_backup()'s frame. The new 8kB buffer is declared inside PG_ENSURE_ERROR_CLEANUP() so the error from the cancel siglongjmp()s back into the larger frame. A bus error on SPARC is usually an alignment trap, so my guess is that the larger frame exposes an alignment problem somewhere in the unwinding. That fits with my earlier suspicion that this is a latent issue exposed by moving things around on the stack. Since v19 is failing as well this is not specific to master. I think we should go ahead with your palloc0() patch to get the buildfarm green again. It takes the buffer out of the frame entirely. It may well be masking something, but that is better investigated with a backtrace than with a red buildfarm. Perhaps Noah can get one from thorntail. [This analysis was aided by Claude but I double-checked the details.] Regards, -David