This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/10522] New: gdb crashes with SIGABRT (repro steps and backtrace included)
- From: "mnemo at minimum dot se" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 14 Aug 2009 14:13:22 -0000
- Subject: [Bug gdb/10522] New: gdb crashes with SIGABRT (repro steps and backtrace included)
- Reply-to: sourceware-bugzilla at sourceware dot org
repro steps:
1. run "gdb ls"
2. type "r" inside gdb to run ls once
3. type "rbreak *" to put breakpoints on all functions in ls
4. SIGABRT before rbreak finishes (gdb hits assert, see stack below)
I have Ubuntu Jaunty with gdb package 6.8-3ubuntu2.
#0 0xb8006430 in __kernel_vsyscall ()
(gdb) bt
#0 0xb8006430 in __kernel_vsyscall ()
#1 0xb7e016d0 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/
raise.c:64
#2 0xb7e03098 in *__GI_abort () at abort.c:88
#3 0x0808fd3d in internal_vproblem (problem=0x831e860, file=0x828bf24 "/build/
buildd/gdb-6.8/gdb/breakpoint.c", line=<value optimized out>, fmt=0x826ca46
"%s: Assertion `%s' failed.", ap=0xbfc2066c "�\214(\b��*\b\002\200��") at /
build/buildd/gdb-6.8/gdb/utils.c:783
#4 0x0808cf43 in internal_verror (file=0x828bf24 "/build/buildd/gdb-6.8/gdb/
breakpoint.c", line=5139, fmt=0x826ca46 "%s: Assertion `%s' failed.",
ap=0xbfc2066c "�\214(\b��*\b\002\200��") at /build/buildd/gdb-6.8/gdb/
utils.c:798
#5 0x0808cf76 in internal_error (file=0x828bf24 "/build/buildd/gdb-6.8/gdb/
breakpoint.c", line=5139, string=0x826ca46 "%s: Assertion `%s' failed.") at /
build/buildd/gdb-6.8/gdb/utils.c:807
#6 0x080f0051 in expand_line_sal_maybe (sal={symtab = 0x9135344, section =
0x0, line = 56, pc = 0, end = 3085729794, explicit_pc = 0, explicit_line = 0})
at /build/buildd/gdb-6.8/gdb/breakpoint.c:5139
#7 0x080f48c8 in break_command_really (arg=0xbfc20878 "", cond_string=0x0,
thread=-1, parse_condition_and_thread=1, tempflag=0, hardwareflag=0,
ignore_count=0, pending_break_support=AUTO_BOOLEAN_TRUE, from_tty=0) at /build/
buildd/gdb-6.8/gdb/breakpoint.c:5170
#8 0x080f4c3c in break_command_1 (arg=0x0, flag=<value optimized out>,
from_tty=<value optimized out>) at /build/buildd/gdb-6.8/gdb/breakpoint.c:5519
#9 0x0811a3b6 in rbreak_command (regexp=0x898810f "*", from_tty=0) at /build/
buildd/gdb-6.8/gdb/symtab.c:3339
#10 0x0808bd91 in execute_command (p=0x898810f "*", from_tty=0) at /build/
buildd/gdb-6.8/gdb/top.c:449
#11 0x0813c9af in command_handler (command=0x8988108 "rbreak *") at /build/
buildd/gdb-6.8/gdb/event-top.c:518
#12 0x0813d8f2 in command_line_handler (rl=0x89e2d08 "") at /build/buildd/
gdb-6.8/gdb/event-top.c:804
#13 0xb7fde277 in rl_callback_read_char () from /lib/libreadline.so.5
#14 0x0813cc9b in rl_callback_read_char_wrapper (client_data=0x0) at /build/
buildd/gdb-6.8/gdb/event-top.c:177
#15 0x0813c5b4 in handle_file_event (event_file_desc=0) at /build/buildd/
gdb-6.8/gdb/event-loop.c:728
#16 0x0813b942 in process_event () at /build/buildd/gdb-6.8/gdb/event-loop.c:341
#17 0x0813c260 in gdb_do_one_event (data=0x0) at /build/buildd/gdb-6.8/gdb/
event-loop.c:378
#18 0x08138cbb in catch_errors (func=0x813c090 <gdb_do_one_event>,
func_args=0x0, errstring=0x8276a4a "", mask=6) at /build/buildd/gdb-6.8/gdb/
exceptions.c:513
#19 0x080d9eba in tui_command_loop (data=0x0) at /build/buildd/gdb-6.8/gdb/tui/
tui-interp.c:153
#20 0x08139384 in current_interp_command_loop () at /build/buildd/gdb-6.8/gdb/
interps.c:276
#21 0x080835cb in captured_command_loop (data=0x0) at /build/buildd/gdb-6.8/gdb/
main.c:99
#22 0x08138cbb in catch_errors (func=0x80835c0 <captured_command_loop>,
func_args=0x0, errstring=0x8276a4a "", mask=6) at /build/buildd/gdb-6.8/gdb/
exceptions.c:513
#23 0x080842ac in captured_main (data=0xbfc24054) at /build/buildd/gdb-6.8/gdb/
main.c:883
#24 0x08138cbb in catch_errors (func=0x8083600 <captured_main>,
func_args=0xbfc24054, errstring=0x8276a4a "", mask=6) at /build/buildd/gdb-6.8/
gdb/exceptions.c:513
#25 0x080835b1 in gdb_main (args=0xbfc24054) at /build/buildd/gdb-6.8/gdb/
main.c:892
#26 0x08083575 in main (argc=Cannot access memory at address 0x4da0
) at /build/buildd/gdb-6.8/gdb/gdb.c:33
#0 0xb8006430 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7e016d0 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/
raise.c:64
resultvar = <value optimized out>
pid = -1208791052
selftid = 19872
#2 0xb7e03098 in *__GI_abort () at abort.c:88
act = {__sigaction_handler = {sa_handler = 0xb7f34ff4, sa_sigaction =
0xb7f34ff4}, sa_mask = {__val = {195, 194, 3217163704, 3085777301, 3217163664,
3217163652, 3084896751, 3086179200, 3217163572, 3217163728, 3087156848,
134691751, 3086055371, 0, 0, 3086050435, 3086176244, 0, 1298088780, 1095979845,
793986375, 778200167, 134246253, 3084891776, 3217163732, 3084895058,
3086024771, 0, 4, 3086055372, 3217163716, 3086050369}}, sa_flags = -1208788000,
sa_restorer = 0xb7dfb680 <transcmp>}
sigs = {__val = {32, 0 <repeats 31 times>}}
#3 0x0808fd3d in internal_vproblem (problem=0x831e860, file=0x828bf24 "/build/
buildd/gdb-6.8/gdb/breakpoint.c", line=<value optimized out>, fmt=0x826ca46
"%s: Assertion `%s' failed.", ap=0xbfc2066c "�\214(\b��*\b\002\200��") at /
build/buildd/gdb-6.8/gdb/utils.c:783
quit_p = 1
dump_core_p = 6
reason = 0x8e75560 "/build/buildd/gdb-6.8/gdb/breakpoint.c:5139:
internal-error: expand_line_sal_maybe: Assertion `found' failed.\nA problem
internal to GDB has been detected,\nfurther debugging may prove unreliable."
dejavu = 1
msg = "Recursive internal problem.\n"
#4 0x0808cf43 in internal_verror (file=0x828bf24 "/build/buildd/gdb-6.8/gdb/
breakpoint.c", line=5139, fmt=0x826ca46 "%s: Assertion `%s' failed.",
ap=0xbfc2066c "�\214(\b��*\b\002\200��") at /build/buildd/gdb-6.8/gdb/
utils.c:798
No locals.
#5 0x0808cf76 in internal_error (file=0x828bf24 "/build/buildd/gdb-6.8/gdb/
breakpoint.c", line=5139, string=0x826ca46 "%s: Assertion `%s' failed.") at /
build/buildd/gdb-6.8/gdb/utils.c:807
No locals.
#6 0x080f0051 in expand_line_sal_maybe (sal={symtab = 0x9135344, section =
0x0, line = 56, pc = 0, end = 3085729794, explicit_pc = 0, explicit_line = 0})
at /build/buildd/gdb-6.8/gdb/breakpoint.c:5139
original_function = 0x8ce1ec8 "*__GI_tcsetattr"
i = <value optimized out>
__PRETTY_FUNCTION__ = "expand_line_sal_maybe"
#7 0x080f48c8 in break_command_really (arg=0xbfc20878 "", cond_string=0x0,
thread=-1, parse_condition_and_thread=1, tempflag=0, hardwareflag=0,
ignore_count=0, pending_break_support=AUTO_BOOLEAN_TRUE, from_tty=0) at /build/
buildd/gdb-6.8/gdb/breakpoint.c:5170
e = {reason = 0, error = GDB_NO_ERROR, message = 0x0}
sals = {sals = 0x9445f50, nelts = 1}
pending_sal = {symtab = 0xb7e46c74, section = 0x0, line = 137516940, pc
= 2, end = 1, explicit_pc = 134794957, explicit_line = -1208791052}
copy_arg = 0x89bdf68 "��3\b\020\016\t\b�\r\t\b0\r\t\b�\f\t\bp\016\t
\b@\f\t\bp\004\t\b\200\004\t\bX�\233\b0"
addr_start = <value optimized out>
addr_string = (char **) 0x8f294a0
old_chain = (struct cleanup *) 0x8a1c618
breakpoint_chain = (struct cleanup *) 0x8dbd1c8
parse_args = {arg_p = 0xbfc20774, sals_p = 0xbfc207d0, addr_string_p =
0xbfc207e0, not_found_ptr = 0xbfc207dc}
i = <value optimized out>
pending = 1
not_found = 0
#8 0x080f4c3c in break_command_1 (arg=0x0, flag=<value optimized out>,
from_tty=<value optimized out>) at /build/buildd/gdb-6.8/gdb/breakpoint.c:5519
No locals.
#9 0x0811a3b6 in rbreak_command (regexp=0x898810f "*", from_tty=0) at /build/
buildd/gdb-6.8/gdb/symtab.c:3339
ss = (struct symbol_search *) 0x8f24f60
p = (struct symbol_search *) 0x921eb10
old_chain = (struct cleanup *) 0x89e6528
#10 0x0808bd91 in execute_command (p=0x898810f "*", from_tty=0) at /build/
buildd/gdb-6.8/gdb/top.c:449
arg = 0x898810f "*"
c = (struct cmd_list_element *) 0x89a3a88
flang = <value optimized out>
line = 0x8988108 "rbreak *"
warned = 0
#11 0x0813c9af in command_handler (command=0x8988108 "rbreak *") at /build/
buildd/gdb-6.8/gdb/event-top.c:518
old_chain = (struct cleanup *) 0x0
stdin_is_tty = <value optimized out>
time_at_cmd_start = 152009
space_at_cmd_start = 0
#12 0x0813d8f2 in command_line_handler (rl=0x89e2d08 "") at /build/buildd/
gdb-6.8/gdb/event-top.c:804
p = 0x89e2be8 ""
p1 = 0x89e2be0 "rbreak *"
repeat = 1
linebuffer = 0x89e2be0 "rbreak *"
linelength = 80
#13 0xb7fde277 in rl_callback_read_char () from /lib/libreadline.so.5
No symbol table info available.
#14 0x0813cc9b in rl_callback_read_char_wrapper (client_data=0x0) at /build/
buildd/gdb-6.8/gdb/event-top.c:177
No locals.
#15 0x0813c5b4 in handle_file_event (event_file_desc=0) at /build/buildd/
gdb-6.8/gdb/event-loop.c:728
file_ptr = (file_handler *) 0x89be208
mask = <value optimized out>
error_mask_returned = 0
#16 0x0813b942 in process_event () at /build/buildd/gdb-6.8/gdb/event-loop.c:341
event_ptr = <value optimized out>
proc = (event_handler_func *) 0x813c530 <handle_file_event>
fd = 0
#17 0x0813c260 in gdb_do_one_event (data=0x0) at /build/buildd/gdb-6.8/gdb/
event-loop.c:378
No locals.
#18 0x08138cbb in catch_errors (func=0x813c090 <gdb_do_one_event>,
func_args=0x0, errstring=0x8276a4a "", mask=6) at /build/buildd/gdb-6.8/gdb/
exceptions.c:513
val = 0
exception = {reason = 0, error = GDB_NO_ERROR, message = 0x0}
#19 0x080d9eba in tui_command_loop (data=0x0) at /build/buildd/gdb-6.8/gdb/tui/
tui-interp.c:153
result = 6
#20 0x08139384 in current_interp_command_loop () at /build/buildd/gdb-6.8/gdb/
interps.c:276
No locals.
#21 0x080835cb in captured_command_loop (data=0x0) at /build/buildd/gdb-6.8/gdb/
main.c:99
No locals.
#22 0x08138cbb in catch_errors (func=0x80835c0 <captured_command_loop>,
func_args=0x0, errstring=0x8276a4a "", mask=6) at /build/buildd/gdb-6.8/gdb/
exceptions.c:513
val = 0
exception = {reason = 0, error = GDB_NO_ERROR, message = 0x0}
#23 0x080842ac in captured_main (data=0xbfc24054) at /build/buildd/gdb-6.8/gdb/
main.c:883
argc = 3
argv = (char **) 0xbfc24104
symarg = 0xbfc24672 "ls"
execarg = 0xbfc24672 "ls"
pidarg = 0x0
corearg = 0x0
pid_or_core_arg = 0x0
cdarg = 0x0
ttyarg = 0x0
cmdarg = (struct cmdarg *) 0x8988240
cmdsize = <value optimized out>
ncmd = 1
dirarg = (char **) 0x89880f8
dirsize = <value optimized out>
ndir = 0
homebuf = {st_dev = 2050, __pad1 = 0, st_ino = 5521588, st_mode =
33188, st_nlink = 1, st_uid = 1000, st_gid = 1000, st_rdev = 0, __pad2 = 0,
st_size = 1160, st_blksize = 4096, st_blocks = 8, st_atim = {tv_sec =
1250256980, tv_nsec = 0}, st_mtim = {tv_sec = 1250256977, tv_nsec = 0}, st_ctim
= {tv_sec = 1250256977, tv_nsec = 0}, __unused4 = 0, __unused5 = 0}
cwdbuf = {st_dev = 2050, __pad1 = 0, st_ino = 5521588, st_mode = 33188,
st_nlink = 1, st_uid = 1000, st_gid = 1000, st_rdev = 0, __pad2 = 0, st_size =
1160, st_blksize = 4096, st_blocks = 8, st_atim = {tv_sec = 1250256980, tv_nsec
= 0}, st_mtim = {tv_sec = 1250256977, tv_nsec = 0}, st_ctim = {tv_sec =
1250256977, tv_nsec = 0}, __unused4 = 0, __unused5 = 0}
homedir = 0xbfc24e44 "/home/molsson"
i = 1
time_at_startup = 0
quiet = 0
batch = 0
set_args = 0
print_help = 0
print_version = 0
long_options = {{name = 0x826bc9e "tui", has_arg = 0, flag = 0x0, val =
14}, {name = 0x826bd0a "xdb", has_arg = 0, flag = 0x8325364, val = 1}, {name =
0x826bd0e "dbx", has_arg = 0, flag = 0x8325368, val = 1}, {name = 0x82969a5
"readnow", has_arg = 0, flag = 0x833d97c, val = 1}, {name = 0x8283319 "r",
has_arg = 0, flag = 0x833d97c, val = 1}, {name = 0x826bd12 "quiet", has_arg =
0, flag = 0x8325388, val = 1}, {name = 0x82d0d6f "q", has_arg = 0, flag =
0x8325388, val = 1}, {name = 0x826bd21 "silent", has_arg = 0, flag = 0x8325388,
val = 1}, {name = 0x826bd18 "nx", has_arg = 0, flag = 0x83253f4, val = 1},
{name = 0x826e993 "n", has_arg = 0, flag = 0x83253f4, val = 1}, {name =
0x826bd1b "batch-silent", has_arg = 0, flag = 0x0, val = 66}, {name = 0x826bd28
"batch", has_arg = 0, flag = 0x8325384, val = 1}, {name = 0x826bd2e "epoch",
has_arg = 0, flag = 0x833d484, val = 1}, {name = 0x826bd34 "fullname", has_arg
= 0, flag = 0x0, val = 102}, {name = 0x82bd699 "f", has_arg = 0, flag = 0x0,
val = 102}, {name = 0x826bd3d "annotate", has_arg = 1, flag = 0x0, val = 12},
{name = 0x826bd46 "help", has_arg = 0, flag = 0x832537c, val = 1}, {name =
0x82f01a1 "se", has_arg = 1, flag = 0x0, val = 10}, {name = 0x82b3870
"symbols", has_arg = 1, flag = 0x0, val = 115}, {name = 0x82f4db3 "s", has_arg
= 1, flag = 0x0, val = 115}, {name = 0x828d6fd "exec", has_arg = 1, flag = 0x0,
val = 101}, {name = 0x82d06be "e", has_arg = 1, flag = 0x0, val = 101}, {name =
0x82f7522 "core", has_arg = 1, flag = 0x0, val = 99}, {name = 0x82cf9ee "c",
has_arg = 1, flag = 0x0, val = 99}, {name = 0x8274f01 "pid", has_arg = 1, flag
= 0x0, val = 112}, {name = 0x82966a8 "p", has_arg = 1, flag = 0x0, val = 112},
{name = 0x827d785 "command", has_arg = 1, flag = 0x0, val = 120}, {name =
0x826bd4b "eval-command", has_arg = 1, flag = 0x0, val = 88}, {name = 0x828094d
"version", has_arg = 0, flag = 0x8325378, val = 1}, {name = 0x82f4cde "x",
has_arg = 1, flag = 0x0, val = 120}, {name = 0x827fd40 "ex", has_arg = 1, flag
= 0x0, val = 88}, {name = 0x826bc9f "ui", has_arg = 1, flag = 0x0, val = 105},
{name = 0x82884e6 "interpreter", has_arg = 1, flag = 0x0, val = 105}, {name =
0x82713aa "i", has_arg = 1, flag = 0x0, val = 105}, {name = 0x827fda7
"directory", has_arg = 1, flag = 0x0, val = 100}, {name = 0x82bd131 "d",
has_arg = 1, flag = 0x0, val = 100}, {name = 0x8280742 "cd", has_arg = 1, flag
= 0x0, val = 11}, {name = 0x8299f96 "tty", has_arg = 1, flag = 0x0, val = 116},
{name = 0x827fb96 "baud", has_arg = 1, flag = 0x0, val = 98}, {name = 0x826cb10
"b", has_arg = 1, flag = 0x0, val = 98}, {name = 0x82d11f5 "nw", has_arg = 0,
flag = 0x0, val = 15}, {name = 0x826bd58 "nowindows", has_arg = 0, flag = 0x0,
val = 15}, {name = 0x82cfd3d "w", has_arg = 0, flag = 0x0, val = 16}, {name =
0x826bd5a "windows", has_arg = 0, flag = 0x0, val = 16}, {name = 0x826bd62
"statistics", has_arg = 0, flag = 0x0, val = 13}, {name = 0x8273a82 "write",
has_arg = 0, flag = 0x8325394, val = 1}, {name = 0x828079a "args", has_arg = 0,
flag = 0x8325380, val = 1}, {name = 0x827bb17 "l", has_arg = 1, flag = 0x0, val
= 108}, {name = 0x826bd6d "return-child-result", has_arg = 0, flag = 0x8325374,
val = 1}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
#24 0x08138cbb in catch_errors (func=0x8083600 <captured_main>,
func_args=0xbfc24054, errstring=0x8276a4a "", mask=6) at /build/buildd/gdb-6.8/
gdb/exceptions.c:513
val = 0
exception = {reason = 0, error = GDB_NO_ERROR, message = 0x0}
#25 0x080835b1 in gdb_main (args=0xbfc24054) at /build/buildd/gdb-6.8/gdb/
main.c:892
No locals.
#26 0x08083575 in main (argc=Cannot access memory at address 0x4da0
) at /build/buildd/gdb-6.8/gdb/gdb.c:33
args = {argc = 3, argv = 0xbfc24104, use_windows = 0, interpreter_p =
0x826bc68 "console"}
--
Summary: gdb crashes with SIGABRT (repro steps and backtrace
included)
Product: gdb
Version: 6.8
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: gdb
AssignedTo: unassigned at sourceware dot org
ReportedBy: mnemo at minimum dot se
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=10522
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.