pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: 1165125080@qq.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18533: pg_basebackup uses out-of-bounds memory and a segment error occurs during backup
Date: Tue, 23 Jul 2024 17:00:32 -0400
Message-ID: <1106079.1721768432@sss.pgh.pa.us> (raw)
In-Reply-To: <18533-7c9fe722cf1351f6@postgresql.org>
References: <18533-7c9fe722cf1351f6@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> The following bug has been logged on the website:
> Bug reference:      18533
> Logged by:          ji xiaohang
> Email address:      1165125080@qq.com
> PostgreSQL version: 16.3
> Operating system:   centos 7
> Description:        

> pg_basebackup uses out-of-bounds memory and a segment error occurs during
> backup

> Run the following command to back up the pg11 database using the
> pg_basebackup backup tool of the pg16 version:
> pg_basebackup -h 127.0.0.1 -p 56100 -U Backup -F tar -X f -z -c fast -P -v
> -D - > base.tar.gz
> The segmentation fault does not recur after I run commands. It seems that
> this problem recurs only in my service invoking scenario.

FWIW, I tried and failed to reproduce this problem.  I don't see any
segfault, nor does running pg_basebackup under Valgrind report any
invalid accesses.  Perhaps it's dependent on the contents of the
source installation?  (My test was with v11's core regression database
and not much else.)

It's going to be hard to convince people that we should change
anything if we can't duplicate the problem, so I'd suggest working
harder to make a self-contained reproducer.

			regards, tom lane





view thread (2+ messages)

Message-ID: <1106079.1721768432@sss.pgh.pa.us>
Permalink:  ../1106079.1721768432@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1106079.1721768432@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, 1165125080@qq.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18533: pg_basebackup uses out-of-bounds memory and a segment error occurs during backup
  In-Reply-To: <1106079.1721768432@sss.pgh.pa.us>

* 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