pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: joachim.haecker-becker@arcor.de
Subject: BUG #18454: Reproducible SIGSEGV in query
Date: Thu, 02 May 2024 11:57:05 +0000
Message-ID: <18454-7bec93a0376b07cd@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18454
Logged by:          joachimhb
Email address:      joachim.haecker-becker@arcor.de
PostgreSQL version: 16.2
Operating system:   Debian Bookworm
Description:        

postgres 16.2.
debian bookworm
ARM64 (AWS, t4g.xlarge, Graviton2, 64bit)
latest docker image 16.2 from https://hub.docker.com/_/postgres

on a specific query there is a SIGSEGV, resulting in two core files in
/var/lib/postgresql/data

-rw------- 1 postgres postgres 6731063296 Apr 30 13:09 core.32
-rw------- 1 postgres postgres 6713049088 Apr 30 13:09 core.33 

installed symbols

find-dbgsym-packages /usr/lib/postgresql/16/bin/postgres
sudo apt install postgresql-16-dbgsym

then tried to get a stacktrace:

gdb -q /usr/lib/postgresql/16/bin/postgres ./core.33

[Thread debugging using libthread_db enabled] Using host libthread_db
library "/lib/aarch64-linux-gnu/libthread_db.so.1".
Core was generated by `postgres: parallel worker for PID
32                                          '.
Program terminated with signal SIGSEGV, Segmentation fault.
--Type <RET> for more, q to quit, c to continue without paging--
#0  0x0000fffdf6f1d708 in ?? ()
(gdb) bt full
#0  0x0000fffdf6f1d708 in ?? ()
No symbol table info available.
#1  0x0000fffdf96a6338 in __gthread_mutex_lock ()
     at
/usr/lib/gcc/aarch64-linux-gnu/12/../../../../include/aarch64-linux-gnu/c++/12/bits/gthr-default.h:749
No locals.
#2  lock () at
/usr/lib/gcc/aarch64-linux-gnu/12/../../../../include/c++/12/bits/std_mutex.h:100
No locals.
#3  lock_guard () at
/usr/lib/gcc/aarch64-linux-gnu/12/../../../../include/c++/12/bits/std_mutex.h:229
No locals.
#4  remove_fatal_error_handler ()
     at
build-llvm/tools/clang/stage2-bins/llvm/lib/Support/ErrorHandling.cpp:76
No locals.
#5  0x0000fffdf7114918 in ?? ()
No symbol table info available.
Backtrace stopped: previous frame inner to this frame (corrupt stack?) 
and

gdb -q /usr/lib/postgresql/16/bin/postgres ./core.32

[Thread debugging using libthread_db enabled] Using host libthread_db
library "/lib/aarch64-linux-gnu/libthread_db.so.1".
Core was generated by `postgres: sa bi 10.14.100.230(55185) SELECT          
                        '.
Program terminated with signal SIGSEGV, Segmentation fault.
--Type <RET> for more, q to quit, c to continue without paging--
#0  0x0000fffdf59aa708 in ?? ()
(gdb) bt full
#0  0x0000fffdf59aa708 in ?? ()
No symbol table info available.
#1  0x0000fffdf8736338 in __gthread_mutex_lock ()
     at
/usr/lib/gcc/aarch64-linux-gnu/12/../../../../include/aarch64-linux-gnu/c++/12/bits/gthr-default.h:749
No locals.
#2  lock () at
/usr/lib/gcc/aarch64-linux-gnu/12/../../../../include/c++/12/bits/std_mutex.h:100
No locals.
#3  lock_guard () at
/usr/lib/gcc/aarch64-linux-gnu/12/../../../../include/c++/12/bits/std_mutex.h:229
No locals.
#4  remove_fatal_error_handler ()
     at
build-llvm/tools/clang/stage2-bins/llvm/lib/Support/ErrorHandling.cpp:76
No locals.
#5  0x0000fffdfe8e8e28 in ?? ()
No symbol table info available.
Backtrace stopped: previous frame inner to this frame (corrupt stack?) 

please let me know if there is something useful in this data to analyze, or
if you want me to execute other steps to get more useful data. the issue can
be reproduced on demand.

Regards,
Joachim



Message-ID: <18454-7bec93a0376b07cd@postgresql.org>
Permalink:  ../18454-7bec93a0376b07cd@postgresql.org/
Also on:    postgresql.org/message-id/18454-7bec93a0376b07cd@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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, joachim.haecker-becker@arcor.de
  Subject: Re: BUG #18454: Reproducible SIGSEGV in query
  In-Reply-To: <18454-7bec93a0376b07cd@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