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/13054] internal-error: handle_inferior_event: Assertion`inf' failed


http://sourceware.org/bugzilla/show_bug.cgi?id=13054

--- Comment #5 from Rich Wilson <richaw at gmail dot com> 2011-08-04 18:46:20 UTC ---
Although my program does use threads, I don't think it had gotten there
by the time the problem occurs. Doesn't gdb print a message when a new
thread appears? Therefore, I ignored the bugs I saw that mentioned threads.

Here is my attempt at a backtrace. I hit CTRL/C when it got to the 
complaint about internal-error.

rw@linux-99x6:/lin64/home/rw/development/artisan/sound> gdb --args
~/Downloads/gdb-7.3/build/gdb/gdb ./se_free
GNU gdb (GDB) SUSE (7.2-3.3)
Copyright (C) 2010 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 "i586-suse-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/rw/Downloads/gdb-7.3/build/gdb/gdb...done.
(gdb) r
Starting program: /home/rw/Downloads/gdb-7.3/build/gdb/gdb ./se_free
Missing separate debuginfo for /lib/libncurses.so.5
Try: zypper install -C
"debuginfo(build-id)=19c7d4937af52ea6233200ba6d3eabd8f79553dd"
Detaching after fork from child process 13999.
GNU gdb (GDB) 7.3
Copyright (C) 2011 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 "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /lin64/home/rw/development/artisan/sound/se_free...done.
(gdb) set args -mhw:2,0 sea
(gdb) r
Starting program: /lin64/home/rw/development/artisan/sound/se_free -mhw:2,0 sea
Detaching after fork from child process 14006.
Detaching after fork from child process 14007.
[Thread debugging using libthread_db enabled]
Artisan se_free: Compiled Aug  3 2011
Sample rate 44100
Frame size is 32
Buffer size req 384
Buffer size is  384
../../gdb/infrun.c:3036: internal-error: handle_inferior_event: Assertion `inf'
failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) ^C
Program received signal SIGINT, Interrupt.
0xffffe424 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb7ea6073 in __read_nocancel () at ../sysdeps/unix/syscall-template.S:82
#2  0xb7e4d993 in _IO_new_file_underflow (fp=0xb7f4c420) at fileops.c:598
#3  0xb7e4eb79 in _IO_default_uflow (fp=0xb7f4c420) at genops.c:440
#4  0xb7e4e976 in __uflow (fp=0xb7f4c420) at genops.c:394
#5  0xb7e4929b in _IO_getc (fp=0xb7f4c420) at getc.c:41
#6  0x08058421 in defaulted_query (ctlstr=<value optimized out>, defchar=0
'\000', args=<value optimized out>)
    at ../../gdb/utils.c:1771
#7  0x08058593 in query (ctlstr=0x82c1a30 "%s\nQuit this debugging session? ")
at ../../gdb/utils.c:1886
#8  0x080587a0 in internal_vproblem (problem=0x83b3864, file=<value optimized
out>, line=<value optimized out>, 
    fmt=0x82bed22 "%s: Assertion `%s' failed.", ap=0xbfffe92c
"\340\356/\bÊ,\b\024") at ../../gdb/utils.c:1180
#9  0x080588f3 in internal_verror (file=0x82fbbde "../../gdb/infrun.c",
line=3036, 
    fmt=0x82bed22 "%s: Assertion `%s' failed.", ap=0xbfffe92c
"\340\356/\bÊ,\b\024") at ../../gdb/utils.c:1236
#10 0x08058926 in internal_error (file=0x82fbbde "../../gdb/infrun.c",
line=3036, 
    string=0x82bed22 "%s: Assertion `%s' failed.") at ../../gdb/utils.c:1246
#11 0x08144fc9 in handle_inferior_event (ecs=0xbfffeba8) at
../../gdb/infrun.c:3036
#12 0x08145f9e in wait_for_inferior (treat_exec_as_sigtrap=0) at
../../gdb/infrun.c:2610
#13 0x081462ec in proceed (addr=3078682704, siggnal=TARGET_SIGNAL_0,
step=<value optimized out>)
    at ../../gdb/infrun.c:2136
#14 0x08139cd0 in run_command_1 (args=0x0, from_tty=<value optimized out>,
tbreak_at_main=<value optimized out>)
    at ../../gdb/infcmd.c:600
#15 0x08055aec in execute_command (p=0x83d6fb9 "", from_tty=1) at
../../gdb/top.c:428
#16 0x0815739c in command_handler (command=0x83d6fb8 "") at
../../gdb/event-top.c:499
#17 0x08157e02 in command_line_handler (rl=0x842a418 "p\263B\b(\244B\b") at
../../gdb/event-top.c:704
#18 0x0822bc44 in rl_callback_read_char () at ../../readline/callback.c:205
#19 0x0815740b in rl_callback_read_char_wrapper (client_data=0x0) at
../../gdb/event-top.c:177
#20 0x0815653b in handle_file_event (data=...) at ../../gdb/event-loop.c:831
#21 0x081562ab in process_event () at ../../gdb/event-loop.c:402
#22 0x08156ba4 in gdb_do_one_event (data=0x0) at ../../gdb/event-loop.c:467
#23 0x08151713 in catch_errors (func=0x8156960 <gdb_do_one_event>,
func_args=0x0, errstring=0x82cc686 "", mask=6)
    at ../../gdb/exceptions.c:521
#24 0x080d2b14 in tui_command_loop (data=0x0) at ../../gdb/tui/tui-interp.c:172
#25 0x08151d13 in current_interp_command_loop () at ../../gdb/interps.c:291
#26 0x0804dccb in captured_command_loop (data=0x0) at ../../gdb/main.c:228
#27 0x08151713 in catch_errors (func=0x804dcc0 <captured_command_loop>,
func_args=0x0, errstring=0x82cc686 "", 
    mask=6) at ../../gdb/exceptions.c:521
#28 0x0804d6e4 in captured_main (data=0xbffff0c0) at ../../gdb/main.c:936
---Type <return> to continue, or q <return> to quit---
#29 0x08151713 in catch_errors (func=0x804cbf0 <captured_main>,
func_args=0xbffff0c0, errstring=0x82cc686 "", 
    mask=6) at ../../gdb/exceptions.c:521
#30 0x0804dd32 in gdb_main (args=0xbffff0c0) at ../../gdb/main.c:945
#31 0x0804c9d3 in main (argc=2, argv=0xbffff174) at ../../gdb/gdb.c:35
(gdb)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]