Skip to content

Bug Report: decode command causes GDB segmentation fault #111

@Lv-viv

Description

@Lv-viv

Problem Description
When using the decode command in core_analyzer, GDB experiences a segmentation fault and crashes. This issue can be consistently reproduced when debugging multi-threaded programs.

Environment Information
Operating System: Linux (x86_64-pc-linux-gnu)
GDB Version: 16.3 (core_analyzer custom build)
Core Analyzer Version: 2.24 (latest)
Test Program: mallocTest (built-in test program)
Architecture: x86_64

Steps to Reproduce
Start GDB and load the test program:

gdb ./mallocTest

Run the program:

(gdb) r

After the program starts multiple threads, interrupt it using Ctrl+C:

^C

Execute the decode command:

(gdb) decode

Actual Behavior
GDB crashes immediately, showing a segmentation fault and a stack trace.

Stack Trace
Fatal signal: Segmentation fault
----- Backtrace -----
0x4f145b gdb_internal_backtrace_1
/opt/core_analyzer/build/gdb-16.3/build/../gdb/bt-utils.c:121
0x4f145b _Z22gdb_internal_backtracev
/opt/core_analyzer/build/gdb-16.3/build/../gdb/bt-utils.c:182
0x60553e handle_fatal_signal
/opt/core_analyzer/build/gdb-16.3/build/../gdb/event-top.c:1018
0x6056b4 handle_sigsegv
/opt/core_analyzer/build/gdb-16.3/build/../gdb/event-top.c:1089
0x7f5b304a032f ???
./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x956ac8 bfd_get_flavour
./bfd.h:7958
0x956ac8 is32bit
/opt/core_analyzer/build/gdb-16.3/build/../bfd/bfd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions