Why does gdb crash while running thread apply all bt on coredump?
Issue
- While running "
thread apply all bt
" under gdb to trace a coredump, it crashes. Backtrace of gdb core dump is as below:
#0 0x0000000000552751 in dwarf2_mark_helper (slot=<value optimized out>, data=0x0) at ../../gdb/dwarf2read.c:14514
#1 0x000000000066deb8 in htab_traverse_noresize (htab=<value optimized out>, callback=0x552730 <dwarf2_mark_helper>, info=0x0) at ../../libiberty/hashtab.c:784
#2 0x0000000000552668 in dwarf2_mark () at ../../gdb/dwarf2read.c:14532
#3 age_cached_comp_units () at ../../gdb/dwarf2read.c:14236
#4 0x0000000000562ad8 in dw2_do_instantiate_symtab (objfile=<value optimized out>, per_cu=<value optimized out>) at ../../gdb/dwarf2read.c:1679
#5 0x0000000000563604 in dwarf2_psymtab_to_symtab (pst=0x11f5b10) at ../../gdb/dwarf2read.c:4211
#6 0x00000000004f0cb4 in psymtab_to_symtab (pst=0x11f5b10) at ../../gdb/psymtab.c:606
#7 0x00000000004ec267 in find_pc_sect_symtab (pc=11095250, section=0x0) at ../../gdb/symtab.c:1787
#8 0x00000000004ea019 in blockvector_for_pc_sect (pc=11095250, section=<value optimized out>, pblock=0x7fffd5a1fc58, symtab=<value optimized out>) at ../../gdb/block.c:106
#9 0x00000000004ea050 in block_for_pc_sect (pc=<value optimized out>, section=<value optimized out>) at ../../gdb/block.c:182
#10 0x000000000041fab8 in inline_frame_sniffer (self=<value optimized out>, this_frame=0x283cb30, this_cache=<value optimized out>) at ../../gdb/inline-frame.c:214
#11 0x000000000041f48e in frame_unwind_find_by_frame (this_frame=0x283cb30, this_cache=0x283cb48) at ../../gdb/frame-unwind.c:103
#12 0x000000000041baf1 in get_frame_type (frame=0x283cb30) at ../../gdb/frame.c:2006
#13 0x0000000000512c91 in print_frame_info (frame=0x283cb30, print_level=1, print_what=LOCATION, print_args=1) at ../../gdb/stack.c:546
#14 0x0000000000513850 in backtrace_command_1 (data=<value optimized out>) at ../../gdb/stack.c:1355
#15 backtrace_command_stub (data=<value optimized out>) at ../../gdb/stack.c:1394
#16 0x0000000000516f7b in catch_errors (func=0x5136b0 <backtrace_command_stub>, func_args=0x7fffd5a1ff80, errstring=0x690fef "", mask=<value optimized out>) at ../../gdb/exceptions.c:518
#17 0x000000000051224c in backtrace_command (arg=<value optimized out>, from_tty=1) at ../../gdb/stack.c:1452
#18 0x0000000000414943 in execute_command (p=0xc48213 "", from_tty=1) at ../../gdb/top.c:426
#19 0x0000000000515b0a in thread_apply_all_command (cmd=0xc48211 "bt", from_tty=1) at ../../gdb/thread.c:1103
#20 0x0000000000414943 in execute_command (p=0xc48212 "t", from_tty=1) at ../../gdb/top.c:426
#21 0x000000000051d528 in command_handler (command=0xc48200 "") at ../../gdb/event-top.c:503
#22 0x000000000051e0fc in command_line_handler (rl=<value optimized out>) at ../../gdb/event-top.c:707
#23 0x0000003bc0429c2e in rl_callback_read_char () at ../callback.c:208
#24 0x000000000051d599 in rl_callback_read_char_wrapper (client_data=<value optimized out>) at ../../gdb/event-top.c:179
#25 0x000000000051bf08 in process_event () at ../../gdb/event-loop.c:400
#26 0x000000000051d234 in gdb_do_one_event (data=<value optimized out>) at ../../gdb/event-loop.c:491
#27 0x0000000000516f7b in catch_errors (func=0x51cf00 <gdb_do_one_event>, func_args=0x0, errstring=0x690fef "", mask=<value optimized out>) at ../../gdb/exceptions.c:518
#28 0x0000000000490a00 in tui_command_loop (data=<value optimized out>) at ../../gdb/tui/tui-interp.c:174
#29 0x00000000004099b9 in captured_command_loop (data=<value optimized out>) at ../../gdb/main.c:230
#30 0x0000000000516f7b in catch_errors (func=0x4099b0 <captured_command_loop>, func_args=0x0, errstring=0x690fef "", mask=<value optimized out>) at ../../gdb/exceptions.c:518
#31 0x000000000040a4e6 in captured_main (data=<value optimized out>) at ../../gdb/main.c:1066
#32 0x0000000000516f7b in catch_errors (func=0x409c60 <captured_main>, func_args=0x7fffd5a20450, errstring=0x690fef "", mask=<value optimized out>) at ../../gdb/exceptions.c:518
#33 0x00000000004098d4 in gdb_main (args=<value optimized out>) at ../../gdb/main.c:1076
#34 0x00000000004098a9 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../gdb/gdb.c:48
Environment
- Red Hat Enterprise Linux 6
- gdb-7.2-60.el6_4.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.