This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/24109] segfault on SIGINT during initialization


https://sourceware.org/bugzilla/show_bug.cgi?id=24109

--- Comment #2 from Nicholas Mosier <nh.mosier at gmail dot com> ---
FINAL correction. This is the correct backtrace. The bug lies in the fact that
struct serial_event *quit_serial_event is not initialized.

#0  0x000055c9f1098836 in serial_event_set (event=0x0)
    at ser-event.c:182
#1  0x000055c9f0f52e75 in restore_active_ext_lang (previous=0x55c9f3719c60)
    at extension.c:780
#2  0x000055c9f1056528 in gdbpy_enter::~gdbpy_enter (this=0x7ffcb970abb0, 
    __in_chrg=<optimized out>) at python/python.c:236
#3  0x000055c9f10420e0 in python_new_inferior (inf=0x55c9f37193a0)
    at python/py-ref.h:34
#4  0x000055c9f0f9d931 in std::function<void
(inferior*)>::operator()(inferior*) const (__args#0=<optimized out>,
this=0x55c9f35ba4c0)
    at /usr/include/c++/8.2.1/bits/std_function.h:682
#5  gdb::observers::observable<inferior*>::notify (args#0=0x55c9f37193a0, 
    this=<optimized out>) at common/observable.h:106
#6  add_inferior_silent (pid=0) at inferior.c:111
#7  0x000055c9f0f9e1a8 in initialize_inferiors () at inferior.c:882
#8  0x000055c9f1107c3d in gdb_init (argv0=<optimized out>) at top.c:2184
#9  0x000055c9f0fe505a in captured_main_1 (context=<optimized out>) at
main.c:862
#10 captured_main (data=<optimized out>) at main.c:1166
#11 gdb_main (args=<optimized out>) at main.c:1192
#12 0x000055c9f0e18d6b in main (argc=<optimized out>, argv=<optimized out>)
    at gdb.c:32

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]