This is the mail archive of the gdb@sources.redhat.com 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]

gdb/infrun.c:2674: internal-error: insert_step_resume_breakpoint: Assertion


I get this error with a gcc-hammer or gcc-3.2.3 compiled app:

foo@mac:~/usb_temp/olh> make
gcc -Wall -O2 -fsigned-char -g -pipe -o readtemp readtemp.c
foo@mac:~/usb_temp/olh> ~foo/gdb-head/bin/gdb readtemp
GNU gdb 2004-07-07-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-unknown-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) b main
Breakpoint 1 at 0x10000b84: file readtemp.c, line 150.
(gdb) r
Starting program: /home/foo/usb_temp/olh/readtemp

Breakpoint 1, main (argc=268440636, argv=0x2) at readtemp.c:150
150             fd = open(TEMPDEV, O_RDWR);
(gdb) s
/home/olaf/gdb-head/src/gdb/infrun.c:2674: internal-error: insert_step_resume_breakpoint: Assertion `frame_id_eq (step_frame_id, get_frame_id (step_frame))' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)


gdb-6.1 works ok.


foo@mac:~/usb_temp/olh> ~/gdb-head/bin/gdb --core=core ~/gdb-head/bin/gdb
GNU gdb 2004-07-07-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-unknown-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

Core was generated by `/home/foo/gdb-head/bin/gdb readtemp'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld.so.1...done.
Loaded symbols for /lib/ld.so.1
Reading symbols from /lib/tls/libthread_db.so.1...done.
Loaded symbols for /lib/tls/libthread_db.so.1
#0  0x0fdc276c in raise () from /lib/tls/libc.so.6
(gdb) bt
#0  0x0fdc276c in raise () from /lib/tls/libc.so.6
#1  0x0fdc407c in abort () from /lib/tls/libc.so.6
#2  0x100568b8 in internal_vproblem (problem=0x103ea318, file=0xfec6484 "", line=2674,
    fmt=0x104a6dd8 "\017ïp\204\017ïp\204tep_resume_breakpoint: Assertion `frame_id_eq (step_frame_id, get_frame_id (step_frame))' failed.", ap=0x104d4cf0) at /home/olaf/gdb-head/src/gdb/utils.c:813
#3  0x10056b24 in internal_verror (file=0xfa <Address 0xfa out of bounds>, line=0,
    fmt=0xffffffff <Address 0xffffffff out of bounds>, ap=0x40) at /home/olaf/gdb-head/src/gdb/utils.c:827
#4  0x10056b98 in internal_error (file=0x0, line=22354, string=0x6 <Address 0x6 out of bounds>)
    at /home/olaf/gdb-head/src/gdb/utils.c:836
#5  0x100ea3f0 in insert_step_resume_breakpoint (step_frame=0x104556c8, ecs=0x5752)
    at /home/olaf/gdb-head/src/gdb/infrun.c:2679
#6  0x100eb930 in handle_inferior_event (ecs=0xffffd240) at /home/olaf/gdb-head/src/gdb/infrun.c:1984
#7  0x100ecc68 in wait_for_inferior () at /home/olaf/gdb-head/src/gdb/infrun.c:998
#8  0x100ecdfc in proceed (addr=1, siggnal=144, step=1) at /home/olaf/gdb-head/src/gdb/infrun.c:821
#9  0x100e6104 in step_1 (skip_subroutines=0, single_inst=272695296, count_string=0x0)
    at /home/olaf/gdb-head/src/gdb/infcmd.c:688
#10 0x1008ce20 in do_cfunc (c=0x0, args=0x5752 <Address 0x5752 out of bounds>, from_tty=6)
    at /home/olaf/gdb-head/src/gdb/cli/cli-decode.c:57
#11 0x1008cf84 in cmd_func (cmd=0x1008ce00, args=0x0, from_tty=1) at /home/olaf/gdb-head/src/gdb/cli/cli-decode.c:1561
#12 0x10054c08 in execute_command (p=0x10432eb9 "", from_tty=1) at /home/olaf/gdb-head/src/gdb/top.c:744
#13 0x100f7f28 in command_handler (command=0x10432eb8 "s") at /home/olaf/gdb-head/src/gdb/event-top.c:500
#14 0x100f8f78 in command_line_handler (rl=0x10410000 "\020!ï|ïïïï") at /home/olaf/gdb-head/src/gdb/event-top.c:712
#15 0x103262e0 in rl_callback_read_char () at /home/olaf/gdb-head/src/readline/callback.c:123
#16 0x100f8104 in rl_callback_read_char_wrapper (client_data=0x0) at /home/olaf/gdb-head/src/gdb/event-top.c:166
#17 0x100f89f0 in stdin_event_handler (error=250, client_data=0x5752) at /home/olaf/gdb-head/src/gdb/event-top.c:416
#18 0x100f79ac in handle_file_event (event_file_desc=0) at /home/olaf/gdb-head/src/gdb/event-loop.c:721
#19 0x100f6a10 in process_event () at /home/olaf/gdb-head/src/gdb/event-loop.c:334
#20 0x100f7868 in gdb_do_one_event (data=0x0) at /home/olaf/gdb-head/src/gdb/event-loop.c:371
#21 0x10052d1c in do_catch_errors (uiout=0x0, data=0x5752) at /home/olaf/gdb-head/src/gdb/top.c:524
#22 0x100552f4 in catcher (func=0x10052d00 <do_catch_errors>, func_uiout=0x10465e40, func_args=0xffffd908,
    func_val=0xffffd910, func_caught=0xffffd914, errstring=0x10497068 "", gdberrmsg=0x0, mask=6)
    at /home/olaf/gdb-head/src/gdb/top.c:431
#23 0x10055354 in catch_errors (func=0xffffffff, func_args=0x0, errstring=0x10497068 "", mask=0)
    at /home/olaf/gdb-head/src/gdb/top.c:536
#24 0x1009d9c0 in tui_command_loop (data=0x0) at /home/olaf/gdb-head/src/gdb/tui/tui-interp.c:150
#25 0x100f4390 in current_interp_command_loop () at /home/olaf/gdb-head/src/gdb/interps.c:277
#26 0x1004e8a8 in captured_command_loop (data=0x0) at /home/olaf/gdb-head/src/gdb/main.c:97
#27 0x10052d1c in do_catch_errors (uiout=0x0, data=0x5752) at /home/olaf/gdb-head/src/gdb/top.c:524
#28 0x100552f4 in catcher (func=0x10052d00 <do_catch_errors>, func_uiout=0x10465e40, func_args=0xffffdd08,
    func_val=0xffffdd10, func_caught=0xffffdd14, errstring=0x10497068 "", gdberrmsg=0x0, mask=6)
    at /home/olaf/gdb-head/src/gdb/top.c:431
#29 0x10055354 in catch_errors (func=0xffffffff, func_args=0x0, errstring=0x10497068 "", mask=0)
    at /home/olaf/gdb-head/src/gdb/top.c:536
#30 0x1004e294 in captured_main (data=0x0) at /home/olaf/gdb-head/src/gdb/main.c:805
#31 0x10052d1c in do_catch_errors (uiout=0x0, data=0x5752) at /home/olaf/gdb-head/src/gdb/top.c:524
#32 0x100552f4 in catcher (func=0x10052d00 <do_catch_errors>, func_uiout=0x103ef640, func_args=0xffffe218,
    func_val=0xffffe220, func_caught=0xffffe224, errstring=0x10497068 "", gdberrmsg=0x0, mask=6)
    at /home/olaf/gdb-head/src/gdb/top.c:431
---Type <return> to continue, or q <return> to quit---
#33 0x10055354 in catch_errors (func=0xffffffff, func_args=0xffffe260, errstring=0x10497068 "", mask=0)
    at /home/olaf/gdb-head/src/gdb/top.c:536
#34 0x1004dbb0 in gdb_main (args=0x5752) at /home/olaf/gdb-head/src/gdb/main.c:814
#35 0x1004db6c in main (argc=250, argv=0x5752) at /home/olaf/gdb-head/src/gdb/gdb.c:35


-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÃRNBERG


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