pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Work around failure with SPARC in base backup code
Date: Thu, 29 Oct 2026 00:44:55 +0000
Message-ID: <E1xMEGF-00000001BTa-1C9d@gemulon.postgresql.org> (raw)

Work around failure with SPARC in base backup code

As reported by buildfarm members thorntail and billbug, both running
SPARC, 4a92c8c29bd0 is making the base backup code unstable on such
platforms.

The only suspicion I have at this stage is a stack frame issue, pointing
to something unrelated to 4a92c8c29bd0, that the addition of an array
worth a size of PG_CONTROL_FILE_SIZE within perform_base_backup() is
able to trigger.

thorntail complained with a SIGBUS, pointing at misaligned access, with
a sporadic failure.  billbug complained with a SIGSEGV (siglongjmp issue
with PG_ENSURE_ERROR_CLEANUP perhaps?) in a more stable fashion.

The code is changed to use a palloc0() instead, which should cool down
the problem with the stack, hopefully.  Unfortunately, I could not test
this hypothesis directly, lacking an environment able to do so.

Discussion: https://postgr.es/m/auGYf3jXtzLrr4gA@paquier.xyz
Backpatch-through: 15

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c97931c16d89c848696d2110a0f4831e4d6d1b69

Modified Files
--------------
src/backend/backup/basebackup.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1xMEGF-00000001BTa-1C9d@gemulon.postgresql.org>
Permalink:  ../E1xMEGF-00000001BTa-1C9d@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xMEGF-00000001BTa-1C9d@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Work around failure with SPARC in base backup code
  In-Reply-To: <E1xMEGF-00000001BTa-1C9d@gemulon.postgresql.org>
  References: <E1xMEGF-00000001BTa-1C9d@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox