This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: c++/610: gdb crashes when listing source of g++-3.1-compiled binary
- From: Dick Wilson <Dick dot Wilson at usa dot alcatel dot com>
- To: drow at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 24 Jan 2003 21:48:00 -0000
- Subject: Re: c++/610: gdb crashes when listing source of g++-3.1-compiled binary
- Reply-to: Dick Wilson <Dick dot Wilson at usa dot alcatel dot com>
The following reply was made to PR c++/610; it has been noted by GNATS.
From: Dick Wilson <Dick.Wilson@usa.alcatel.com>
To: rohlfing@stanford.edu, gdb-gnats@sources.redhat.com,
drow@sources.redhat.com, gdb-prs@sources.redhat.com,
Dick.Wilson@alcatel.com
Cc:
Subject: Re: c++/610: gdb crashes when listing source of g++-3.1-compiled binary
Date: Fri, 24 Jan 2003 15:39:46 -0600
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=610
We've experienced a like situation when using gcc/g++-3.2 and gdb-5.3 on
a sparc-solaris8 WS.
Enclosed please find gdb session output for the core event of gdb,
including a backtrace:
-> gdb /cfs/tools/public/gdb-5.3-sparc-sun-solaris2.8/bin/gdb -c core
GNU gdb 5.3
Copyright 2002 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 "sparc-sun-solaris2.8"...
Core was generated by `gdb /var/current/usi/bin/IOSession'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libcurses.so.1...done.
Loaded symbols for /usr/lib/libcurses.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libm.so.1...done.
Loaded symbols for /usr/lib/libm.so.1
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from
/usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1
Reading symbols from
/usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2...
done.
Loaded symbols for /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2
Reading symbols from /usr/lib/libthread_db.so.1...done.
Loaded symbols for /usr/lib/libthread_db.so.1
#0 finish_block (symbol=0x1888148, listhead=0x254870, old_blocks=0x0,
start=22784616821686272, end=22784616821686328, objfile=0x2f8308)
at ../../gdb-5.3-src/gdb/buildsym.c:309
309 ../../gdb-5.3-src/gdb/buildsym.c: No such file or directory.
in ../../gdb-5.3-src/gdb/buildsym.c
(gdb) bt
#0 finish_block (symbol=0x1888148, listhead=0x254870, old_blocks=0x0,
start=22784616821686272, end=22784616821686328, objfile=0x2f8308)
at ../../gdb-5.3-src/gdb/buildsym.c:309
#1 0x000fa8b0 in process_one_symbol (type=36, desc=2377256, valu=56,
name=0x973b1b "", section_offsets=0x1862d50, objfile=0x2f8308)
at ../../gdb-5.3-src/gdb/dbxread.c:2782
#2 0x000fa608 in read_ofile_symtab (pst=0x194e2c0)
at ../../gdb-5.3-src/gdb/dbxread.c:2626
#3 0x000fa0c8 in dbx_psymtab_to_symtab_1 (pst=0x194e2c0)
at ../../gdb-5.3-src/gdb/dbxread.c:2454
#4 0x000fa03c in dbx_psymtab_to_symtab_1 (pst=0x1950368)
at ../../gdb-5.3-src/gdb/dbxread.c:2440
#5 0x000fa188 in dbx_psymtab_to_symtab (pst=0x1950368)
at ../../gdb-5.3-src/gdb/dbxread.c:2495
#6 0x00074d30 in psymtab_to_symtab (pst=0x1950368)
at ../../gdb-5.3-src/gdb/symfile.c:375
#7 0x0006ecac in lookup_symtab (name=0xffbed528 "OutputThread.cpp")
at ../../gdb-5.3-src/gdb/symtab.c:213
#8 0x0007bf44 in decode_line_1 (argptr=0xffbed5fc, funfirstline=0,
default_symtab=0x0, default_line=0, canonical=0x0)
at ../../gdb-5.3-src/gdb/linespec.c:945
#9 0x0005a274 in list_command (arg=0x25678a "OutputThread.cpp:1",
from_tty=1)
at ../../gdb-5.3-src/gdb/source.c:1184
#10 0x0003e18c in do_cfunc (c=0x25f838, args=0x25678a
"OutputThread.cpp:1",
from_tty=1) at ../../gdb-5.3-src/gdb/cli/cli-decode.c:53
#11 0x0003fe60 in cmd_func (cmd=0x25f838, args=0x25678a
"OutputThread.cpp:1",
from_tty=1) at ../../gdb-5.3-src/gdb/cli/cli-decode.c:1525
#12 0x000d21b4 in execute_command (p=0x25679b "1", from_tty=1)
at ../../gdb-5.3-src/gdb/top.c:711
---Type <return> to continue, or q <return> to quit---
#13 0x0008bf04 in command_handler (command=0x256788 "l
OutputThread.cpp:1")
at ../../gdb-5.3-src/gdb/event-top.c:504
#14 0x0008c644 in command_line_handler (rl=0x23820c "")
at ../../gdb-5.3-src/gdb/event-top.c:799
#15 0x00198b04 in rl_callback_read_char ()
at ../../gdb-5.3-src/readline/callback.c:114
#16 0x0008b67c in rl_callback_read_char_wrapper (client_data=0x0)
at ../../gdb-5.3-src/gdb/event-top.c:168
#17 0x0008bdc0 in stdin_event_handler (error=0, client_data=0x0)
at ../../gdb-5.3-src/gdb/event-top.c:418
#18 0x0008ade8 in handle_file_event (event_file_desc=1)
at ../../gdb-5.3-src/gdb/event-loop.c:714
#19 0x0008a778 in process_event () at
../../gdb-5.3-src/gdb/event-loop.c:334
#20 0x0008a7d8 in gdb_do_one_event (data=0x1)
at ../../gdb-5.3-src/gdb/event-loop.c:371
#21 0x000d1de4 in do_catch_errors (uiout=0x27aa28, data=0xffbedcf8)
at ../../gdb-5.3-src/gdb/top.c:492
#22 0x000d1c88 in catcher (func=0xd1dd4 <do_catch_errors>,
func_uiout=0x27aa28, func_args=0xffbedcf8, func_val=0xffbedcf4,
func_caught=0xffbedcf0, errstring=0x1cd530 "", mask=6)
at ../../gdb-5.3-src/gdb/top.c:424
#23 0x000d1e20 in catch_errors (func=0x8a79c <gdb_do_one_event>,
func_args=0x0, errstring=0x1cd530 "", mask=6)
at ../../gdb-5.3-src/gdb/top.c:504
#24 0x0008a830 in start_event_loop () at
../../gdb-5.3-src/gdb/event-loop.c:415
#25 0x0003be14 in captured_command_loop (data=0x0)
at ../../gdb-5.3-src/gdb/main.c:96
#26 0x000d1de4 in do_catch_errors (uiout=0x27aa28, data=0xffbedfa8)
at ../../gdb-5.3-src/gdb/top.c:492
---Type <return> to continue, or q <return> to quit---
#27 0x000d1c88 in catcher (func=0xd1dd4 <do_catch_errors>,
func_uiout=0x27aa28, func_args=0xffbedfa8, func_val=0xffbedfa4,
func_caught=0xffbedfa0, errstring=0x1b46a0 "", mask=6)
at ../../gdb-5.3-src/gdb/top.c:424
#28 0x000d1e20 in catch_errors (func=0x3bdec <captured_command_loop>,
func_args=0x0, errstring=0x1b46a0 "", mask=6)
at ../../gdb-5.3-src/gdb/top.c:504
#29 0x0003c938 in captured_main (data=0x23b000)
at ../../gdb-5.3-src/gdb/main.c:729
#30 0x000d1de4 in do_catch_errors (uiout=0x239cb0, data=0xffbee340)
at ../../gdb-5.3-src/gdb/top.c:492
#31 0x000d1c88 in catcher (func=0xd1dd4 <do_catch_errors>,
func_uiout=0x239cb0, func_args=0xffbee340, func_val=0xffbee33c,
func_caught=0xffbee338, errstring=0x1b46a0 "", mask=6)
at ../../gdb-5.3-src/gdb/top.c:424
#32 0x000d1e20 in catch_errors (func=0x3be48 <captured_main>,
func_args=0xffbee428, errstring=0x1b46a0 "", mask=6)
at ../../gdb-5.3-src/gdb/top.c:504
#33 0x0003cb50 in gdb_main (args=0xffbee428)
at ../../gdb-5.3-src/gdb/main.c:738
#34 0x0003bde4 in main (argc=2, argv=0xffbee4ac)
at ../../gdb-5.3-src/gdb/gdb.c:33
(gdb) info locals
ftype = (struct type *) 0x0
end = 22784616821686328
objfile = (struct objfile *) 0x2f8308
next = (struct pending *) 0x0
next1 = (struct pending *) 0x254800
block = (struct block *) 0x1e41ec8
pblock = (struct pending_block *) 0x50f27d
opblock = (struct pending_block *) 0x0
i = -1
j = -1
(gdb) l
33 ../../gdb-5.3-src/gdb/gdb.c: No such file or directory.
in ../../gdb-5.3-src/gdb/gdb.c
(gdb)
--
Dick Wilson | (972) 477-9428
Software Engineering Tools | Email: Dick.Wilson@alcatel.com
Alcatel USA Corporation|
1000 Coit Road Plano, Texas 75075
-------------------------------------------------------------------------
**** The opinions expressed are not those of Alcatel USA, Inc ****