[Bug gdb/34390] New: GDB crashes with "Fatal signal: Segmentation fault" message while trying to generate stack-trace.

"mr.pranavbhattarai at gmail dot com via Gdb-prs" <[email protected]>
Newsgroups gmane.comp.gdb.bugs.discuss
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34390

            Bug ID: 34390
           Summary: GDB crashes with "Fatal signal: Segmentation fault"
                    message while trying to generate stack-trace.
           Product: gdb
           Version: 17.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: mr.pranavbhattarai at gmail dot com
  Target Milestone: ---

When I try to debug or study the crash log, GDB crashes.

shivoham@x ~> coredumpctl gdb 32563
           PID: 32563 (gdb)
           UID: 1000 (shivoham)
           GID: 1000 (shivoham)
        Signal: 11 (SEGV)
     Timestamp: Sat 2026-07-11 18:16:47 +0545 (12min ago)
  Command Line: /usr/libexec/gdb -batch -ex $'set debuginfod enabled on' "" -ex
$'file /usr/libexec/gdb' -ex $'core-file ./coredump' -ex $'thread apply all
-ascending backtrace full 1024' -ex $'info sharedlib' -ex $'print
(char*)__abort_msg' -ex $'print (char*)__glib_assert_msg' -ex $'info
all-registers' -ex disassemble
    Executable: /usr/libexec/gdb
 Control Group:
/user.slice/user-1000.slice/[email protected]/app.slice/dbus-:[email protected]
          Unit: [email protected]
     User Unit: dbus-:[email protected]
         Slice: user-1000.slice
     Owner UID: 1000 (shivoham)
       Boot ID: 2f629e90896244d4ad70c18414daf7cc
    Machine ID: 393feeb949404cc888b81cc31c84545b
      Hostname: x
       Storage:
/var/lib/systemd/coredump/core.gdb.1000.2f629e90896244d4ad70c18414daf7cc.32563.1783773107000000.zst
(present)
  Size on Disk: 17.7M
       Package: gdb/17.2-1.fc44
      build-id: 769f3f0e27d44fbb3a41a1c6dbc29e578b4ef64b
       Message: Process 32563 (gdb) of user 1000 dumped core.

                Module libtss2-mu.so.0 from rpm tpm2-tss-4.1.3-9.fc44.x86_64
                Module libtss2-sys.so.1 from rpm tpm2-tss-4.1.3-9.fc44.x86_64
                Module libtss2-esys.so.0 from rpm tpm2-tss-4.1.3-9.fc44.x86_64
                Module libtss2-rc.so.0 from rpm tpm2-tss-4.1.3-9.fc44.x86_64
                Module librpm_sequoia.so.1 from rpm
rust-rpm-sequoia-1.10.2-2.fc44.x86_64
                Module libacl.so.1 from rpm acl-2.4.0-1.fc44.x86_64
                Module libsqlite3.so.0 from rpm sqlite-3.51.2-1.fc44.x86_64
                Module libfsverity.so.0 from rpm
fsverity-utils-1.6-4.fc44.x86_64
                Module libimaevm.so.5 from rpm
ima-evm-utils-1.6.2-8.fc44.x86_64
                Module libcap.so.2 from rpm libcap-2.78-1.fc44.x86_64
                Module liblua-5.4.so from rpm lua-5.4.8-5.fc44.x86_64
                Module libmagic.so.1 from rpm file-5.46-10.fc44.x86_64
                Module librpmio.so.10 from rpm rpm-6.0.1-2.fc44.x86_64
                Module librpm.so.10 from rpm rpm-6.0.1-2.fc44.x86_64
                Module librpmsign.so.10 from rpm rpm-6.0.1-2.fc44.x86_64
                Module librpmbuild.so.10 from rpm rpm-6.0.1-2.fc44.x86_64
                Module _rpm.so from rpm rpm-6.0.1-2.fc44.x86_64
                Module math.cpython-314-x86_64-linux-gnu.so from rpm
python3.14-3.14.6-1.fc44.x86_64
                Module select.cpython-314-x86_64-linux-gnu.so from rpm
python3.14-3.14.6-1.fc44.x86_64
                Module _posixsubprocess.cpython-314-x86_64-linux-gnu.so from
rpm python3.14-3.14.6-1.fc44.x86_64
                Module fcntl.cpython-314-x86_64-linux-gnu.so from rpm
python3.14-3.14.6-1.fc44.x86_64
                Module libselinux.so.1 from rpm libselinux-3.10-1.fc44.x86_64
                Module libudev.so.1 from rpm systemd-259.7-1.fc44.x86_64
                Module libcbor.so.0.13 from rpm libcbor-0.13.0-2.fc44.x86_64
                Module libcrypt.so.2 from rpm libxcrypt-4.5.2-3.fc44.x86_64
                Module libkeyutils.so.1 from rpm keyutils-1.6.3-7.fc44.x86_64
                Module libkrb5support.so.0 from rpm krb5-1.22.2-4.fc44.x86_64
                Module libcom_err.so.2 from rpm e2fsprogs-1.47.3-4.fc44.x86_64
                Module libk5crypto.so.3 from rpm krb5-1.22.2-4.fc44.x86_64
                Module libkrb5.so.3 from rpm krb5-1.22.2-4.fc44.x86_64
                Module libfido2.so.1 from rpm libfido2-1.16.0-5.fc44.x86_64
                Module libsasl2.so.3 from rpm cyrus-sasl-2.1.28-35.fc44.x86_64
                Module libevent-2.1.so.7 from rpm
libevent-2.1.12-17.fc44.x86_64
                Module libunistring.so.5 from rpm
libunistring-1.1-11.fc44.x86_64
                Module libbrotlicommon.so.1 from rpm brotli-1.2.0-3.fc44.x86_64
                Module libbrotlidec.so.1 from rpm brotli-1.2.0-3.fc44.x86_64
                Module libgssapi_krb5.so.2 from rpm krb5-1.22.2-4.fc44.x86_64
                Module libssl.so.3 from rpm openssl-3.5.7-1.fc44.x86_64
                Module libpsl.so.5 from rpm libpsl-0.21.5-7.fc44.x86_64
                Module libssh.so.4 from rpm libssh-0.12.0-1.fc44.x86_64
                Module libidn2.so.0 from rpm libidn2-2.3.8-3.fc44.x86_64
                Module libnghttp2.so.14 from rpm nghttp2-1.68.0-4.fc44.x86_64
                Module libngtcp2.so.16 from rpm ngtcp2-1.22.1-1.fc44.x86_64
                Module libngtcp2_crypto_ossl.so.0 from rpm
ngtcp2-1.22.1-1.fc44.x86_64
                Module libnghttp3.so.9 from rpm nghttp3-1.17.0-1.fc44.x86_64
                Module libicuuc.so.77 from rpm icu-77.1-3.fc44.x86_64
                Module libicui18n.so.77 from rpm icu-77.1-3.fc44.x86_64
                Module libicudata.so.77 from rpm icu-77.1-3.fc44.x86_64
                Module libpcre2-8.so.0 from rpm pcre2-10.47-1.fc44.1.x86_64
                Module libbz2.so.1 from rpm bzip2-1.0.8-23.fc44.x86_64
                Module libzstd.so.1 from rpm zstd-1.5.7-5.fc44.x86_64
                Module libjson-c.so.5 from rpm json-c-0.18-8.fc44.x86_64
                Module libcrypto.so.3 from rpm openssl-3.5.7-1.fc44.x86_64
                Module libcurl.so.4 from rpm curl-8.18.0-6.fc44.x86_64
                Module libboost_regex.so.1.90.0 from rpm
boost-1.90.0-7.fc44.x86_64
                Module libglib-2.0.so.0 from rpm glib2-2.88.2-1.fc44.x86_64
                Module libgmodule-2.0.so.0 from rpm glib2-2.88.2-1.fc44.x86_64
                Module libuuid.so.1 from rpm util-linux-2.41.5-1.fc44.x86_64
                Module libpopt.so.0 from rpm popt-1.19-10.fc44.x86_64
                Module libelf.so.1 from rpm elfutils-0.195-1.fc44.x86_64
                Module libdw.so.1 from rpm elfutils-0.195-1.fc44.x86_64
                Module libdebuginfod.so.1 from rpm elfutils-0.195-1.fc44.x86_64
                Module libsource-highlight.so.4 from rpm
source-highlight-3.1.9-27.fc44.x86_64
                Module libgmp.so.10 from rpm gmp-6.3.0-5.fc44.x86_64
                Module libmpfr.so.6 from rpm mpfr-4.2.2-3.fc44.x86_64
                Module libexpat.so.1 from rpm expat-2.8.1-1.fc44.x86_64
                Module libpython3.14.so.1.0 from rpm
python3.14-3.14.6-1.fc44.x86_64
                Module libtinfo.so.6 from rpm ncurses-6.6-1.fc44.x86_64
                Module libncursesw.so.6 from rpm ncurses-6.6-1.fc44.x86_64
                Module libz.so.1 from rpm zlib-ng-2.3.3-3.fc44.x86_64
                Module libreadline.so.8 from rpm readline-8.3-4.fc44.x86_64
                Module libxxhash.so.0 from rpm xxhash-0.8.3-4.fc44.x86_64
                Module libipt.so.2 from rpm libipt-2.1.2-4.fc44.x86_64
                Module libbabeltrace-ctf.so.1 from rpm
babeltrace-1.5.11-17.fc44.x86_64
                Module libbabeltrace.so.1 from rpm
babeltrace-1.5.11-17.fc44.x86_64
                Module liblzma.so.5 from rpm xz-5.8.2-2.fc44.x86_64
                Module gdb from rpm gdb-17.2-1.fc44.x86_64
                Stack trace of thread 32563:
                #0  0x0000557a9f7eed21 _Z9sig_writePKc (gdb + 0x194d21)
                #1  0x0000557a9f7eef48 libbacktrace_print (gdb + 0x194f48)
                #2  0x0000557a9fff880c report_inlined_functions (gdb +
0x99e80c)
                #3  0x0000557a9fffdc64 dwarf_lookup_pc (gdb + 0x9a3c64)
                #4  0x0000557a9fffea58 dwarf_fileline (gdb + 0x9a4a58)
                #5  0x0000557a9ffee7eb unwind (gdb + 0x9947eb)
                #6  0x00007f24954fb8dd _Unwind_Backtrace (libgcc_s.so.1 +
0x1f8dd)
                #7  0x0000557a9ffee87d backtrace_full (gdb + 0x99487d)
                #8  0x0000557a9f7ef192 gdb_internal_backtrace_1 (gdb +
0x195192)
                #9  0x0000557a9f946f07 handle_fatal_signal (gdb + 0x2ecf07)
                #10 0x0000557a9f94712f handle_sigsegv (gdb + 0x2ed12f)
                #11 0x00007f2494620fb0 __restore_rt (libc.so.6 + 0x19fb0)
                #12 0x0000557a9f86b4df
_ZZN3gdb13function_viewIFvimmmPKcPK12bfd_build_idEE4bindIZ27gdb_read_core_file_mappingsP7gdbarchP3bfdEUlimmmS2_S5_E_EEvRT_ENUlNS_9fv_detail15erased_callableEimmmS2_S5_E_4_FUNESH_immmS2_S5_
(gdb + 0x2114df)
                #13 0x0000557a9fa2784a
_ZNK3gdb13function_viewIFvimmmPKcPK12bfd_build_idEEclEimmmS2_S5_ (gdb +
0x3cd84a)
                #14 0x0000557a9f86406f
_Z27gdb_read_core_file_mappingsP7gdbarchP3bfd (gdb + 0x20a06f)
                #15 0x0000557a9f866f11 _ZN11core_target19build_file_mappingsEv
(gdb + 0x20cf11)
                #16 0x0000557a9f86834c _ZN11core_targetC2Ev (gdb + 0x20e34c)
                #17 0x0000557a9f868542 core_target_open (gdb + 0x20e542)
                #18 0x0000557a9f834218 _Z8cmd_funcP16cmd_list_elementPKci (gdb
+ 0x1da218)
                #19 0x0000557a9fcdcda0 _Z15execute_commandPKci (gdb + 0x682da0)
                #20 0x0000557a9fa4280a catch_command_errors (gdb + 0x3e880a)
                #21 0x0000557a9fa42902 execute_cmdargs (gdb + 0x3e8902)
                #22 0x0000557a9fa4535a captured_main_1 (gdb + 0x3eb35a)
                #23 0x0000557a9fa46b02 captured_main (gdb + 0x3ecb02)
                #24 0x0000557a9f6c9f5e main (gdb + 0x6ff5e)
                #25 0x00007f249460a681 __libc_start_call_main (libc.so.6 +
0x3681)
                #26 0x00007f249460a798 __libc_start_main@@GLIBC_2.34 (libc.so.6
+ 0x3798)
                #27 0x0000557a9f6df915 _start (gdb + 0x85915)

                Stack trace of thread 32565:
                #0  0x00007f2494682312 __syscall_cancel_arch (libc.so.6 +
0x7b312)
                #1  0x00007f249467652c __internal_syscall_cancel (libc.so.6 +
0x6f52c)
                #2  0x00007f2494676877 __GI___futex_abstimed_wait_cancelable64
(libc.so.6 + 0x6f877)
                #3  0x00007f24946790cc pthread_cond_wait@@GLIBC_2.3.2
(libc.so.6 + 0x720cc)
                #4  0x00007f24948485e0
_ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE (libstdc++.so.6 +
0x485e0)
                #5  0x0000557a9ffdb794 _ZN3gdb11thread_pool15thread_functionEv
(gdb + 0x981794)
                #6  0x00007f24948523b6 execute_native_thread_routine
(libstdc++.so.6 + 0x523b6)
                #7  0x00007f2494679c19 start_thread (libc.so.6 + 0x72c19)
                #8  0x00007f24946fd5cc __clone3 (libc.so.6 + 0xf65cc)

                Stack trace of thread 32566:
                #0  0x00007f2494682312 __syscall_cancel_arch (libc.so.6 +
0x7b312)
                #1  0x00007f249467652c __internal_syscall_cancel (libc.so.6 +
0x6f52c)
                #2  0x00007f2494676877 __GI___futex_abstimed_wait_cancelable64
(libc.so.6 + 0x6f877)
                #3  0x00007f24946790cc pthread_cond_wait@@GLIBC_2.3.2
(libc.so.6 + 0x720cc)
                #4  0x00007f24948485e0
_ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE (libstdc++.so.6 +
0x485e0)
                #5  0x0000557a9ffdb794 _ZN3gdb11thread_pool15thread_functionEv
(gdb + 0x981794)
                #6  0x00007f24948523b6 execute_native_thread_routine
(libstdc++.so.6 + 0x523b6)
                #7  0x00007f2494679c19 start_thread (libc.so.6 + 0x72c19)
                #8  0x00007f24946fd5cc __clone3 (libc.so.6 + 0xf65cc)

                Stack trace of thread 32567:
                #0  0x00007f2494682312 __syscall_cancel_arch (libc.so.6 +
0x7b312)
                #1  0x00007f249467652c __internal_syscall_cancel (libc.so.6 +
0x6f52c)
                #2  0x00007f2494676877 __GI___futex_abstimed_wait_cancelable64
(libc.so.6 + 0x6f877)
                #3  0x00007f24946790cc pthread_cond_wait@@GLIBC_2.3.2
(libc.so.6 + 0x720cc)
                #4  0x00007f24948485e0
_ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE (libstdc++.so.6 +
0x485e0)
                #5  0x0000557a9ffdb794 _ZN3gdb11thread_pool15thread_functionEv
(gdb + 0x981794)
                #6  0x00007f24948523b6 execute_native_thread_routine
(libstdc++.so.6 + 0x523b6)
                #7  0x00007f2494679c19 start_thread (libc.so.6 + 0x72c19)
                #8  0x00007f24946fd5cc __clone3 (libc.so.6 + 0xf65cc)

                Stack trace of thread 32568:
                #0  0x00007f2494682312 __syscall_cancel_arch (libc.so.6 +
0x7b312)
                #1  0x00007f249467652c __internal_syscall_cancel (libc.so.6 +
0x6f52c)
                #2  0x00007f2494676877 __GI___futex_abstimed_wait_cancelable64
(libc.so.6 + 0x6f877)
                #3  0x00007f24946790cc pthread_cond_wait@@GLIBC_2.3.2
(libc.so.6 + 0x720cc)
                #4  0x00007f24948485e0
_ZNSt18condition_variable4waitERSt11unique_lockISt5mutexE (libstdc++.so.6 +
0x485e0)
                #5  0x0000557a9ffdb794 _ZN3gdb11thread_pool15thread_functionEv
(gdb + 0x981794)
                #6  0x00007f24948523b6 execute_native_thread_routine
(libstdc++.so.6 + 0x523b6)
                #7  0x00007f2494679c19 start_thread (libc.so.6 + 0x72c19)
                #8  0x00007f24946fd5cc __clone3 (libc.so.6 + 0xf65cc)
                ELF object binary architecture: AMD x86-64

GNU gdb (Fedora Linux) 17.2-1.fc44
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/libexec/gdb...
Reading symbols from /usr/lib/debug/usr/libexec/gdb-17.2-1.fc44.x86_64.debug...


Fatal signal: Segmentation fault
----- Backtrace -----
0x55b295c1c191 gdb_internal_backtrace_1
        ../../gdb/bt-utils.c:122
0x55b295c1c191 _Z22gdb_internal_backtracev
        ../../gdb/bt-utils.c:175
0x55b295d73f06 handle_fatal_signal
        ../../gdb/event-top.c:1013
0x55b295d7412e handle_sigsegv
        ../../gdb/event-top.c:1090
0x7fb75b020faf ???
0x55b295c984df _ZN16core_mapped_file6regionC4Emmm
        ../../gdb/gdbcore.h:272
0x55b295c984df
_ZSt12construct_atIN16core_mapped_file6regionEJRmS2_S2_EQaant20is_unbounded_array_vIT_ErqXgsnwcvPvLi0E_S3_pispcl7declvalIT0_EEEEEPS3_S6_DpOS5_
        /usr/include/c++/16/bits/stl_construct.h:110
0x55b295c984df
_ZNSt16allocator_traitsISaIN16core_mapped_file6regionEEE9constructIS1_JRmS5_S5_EEEvRS2_PT_DpOT0_
        /usr/include/c++/16/bits/alloc_traits.h:716
0x55b295c984df
_ZNSt6vectorIN16core_mapped_file6regionESaIS1_EE12emplace_backIJRmS5_S5_EEERS1_DpOT_
        /usr/include/c++/16/bits/vector.tcc:121
0x55b295c984df operator()
        ../../gdb/corelow.c:2157
0x55b295c984df operator()
        ../../gdb/../gdbsupport/function-view.h:305
0x55b295c984df _FUN
        ../../gdb/../gdbsupport/function-view.h:299
0x55b295e54849 _ZNK3gdb13function_viewIFvimmmPKcPK12bfd_build_idEEclEimmmS2_S5_
        ../../gdb/../gdbsupport/function-view.h:289
0x55b295e54849 linux_read_core_file_mappings
        ../../gdb/linux-tdep.c:1237
0x55b295c9106e _Z27gdb_read_core_file_mappingsP7gdbarchP3bfd
        ../../gdb/corelow.c:2120
0x55b295c93f10 _ZN11core_target19build_file_mappingsEv
        ../../gdb/corelow.c:375
0x55b295c9534b _ZN11core_targetC2Ev
        ../../gdb/corelow.c:350
0x55b295c95541 core_target_open
        ../../gdb/corelow.c:1020
0x55b295e6f809 catch_command_errors
        ../../gdb/main.c:511
0x55b295e7227a captured_main_1
        ../../gdb/main.c:1256
0x55b295e73b01 captured_main
        ../../gdb/main.c:1349
0x55b295e73b01 _Z8gdb_mainP18captured_main_args
        ../../gdb/main.c:1378
0x55b295af6f5d main
        ../../gdb/gdb.c:38
---------------------
A fatal error internal to GDB has been detected, further
debugging is not possible.  GDB will now terminate.

This is a bug, please report it.  For instructions, see:
<https://www.gnu.org/software/gdb/bugs/>.

gdb terminated by signal SEGV.


Reported here: https://bugzilla.redhat.com/show_bug.cgi?id=2499364
Distro: Fedora Workstation 44
shivoham@x ~> uname -a
Linux x 7.1.3-200.fc44.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Jul  4 19:20:12 UTC
2026 x86_64 GNU/Linux
shivoham@x ~> gdb --version
GNU gdb (Fedora Linux) 17.2-1.fc44

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.