This is the mail archive of the gdb-prs@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/706: SIGBUS or SIGSEGV trying to set breakpoint in C++ program


>Number:         706
>Category:       gdb
>Synopsis:       SIGBUS or SIGSEGV trying to set breakpoint in C++ program
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 17 07:38:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     owend@lsl.co.uk
>Release:        gdb 20020917
>Organization:
>Environment:
SunOS lslsug 5.8 Generic_108528-01 sun4u sparc SUNW,Ultra-5_10

gcc 3.1:
Reading specs from /tools/net/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.1/specs
Configured with: ../gcc-3.1/configure --prefix=/tools/net/apps/gcc-3.1 --exec-prefix=/tools/net/app/gcc-3.1 --enable-languages=c,c++,f77 --enable-threads=posix --enable-long-long --enable-shared sparc-sun-solaris2.8 : (reconfigured) ../gcc-3.1/configure --prefix=/tools/net/app/gcc-3.1 --enable-languages=c,c++,f77 --enable-threads=posix --enable-long-long --enable-shared
Thread model: posix
gcc version 3.1

This GDB was configured as "sparc-sun-solaris2.8"...
>Description:
gdb crashes with a Bus Error when trying to set a breakpoint:

(gdb) b outputCopyrightNotices()
Bus Error (core dumped)

When I try to debug gdb, the error changes to:

(gdb) b outputCopyrightNotices()

Program received signal SIGSEGV, Segmentation fault.
finish_block (symbol=0x1010101, listhead=0x25b8d0, old_blocks=0x1010101,
    start=72340172838076673, end=72340172838076729, objfile=0xa34980)
    at buildsym.c:304
304           struct type *ftype = SYMBOL_TYPE (symbol);
(outergdb) bt
#0  finish_block (symbol=0x1010101, listhead=0x25b8d0, old_blocks=0x1010101,
    start=72340172838076673, end=72340172838076729, objfile=0xa34980)
    at buildsym.c:304
#1  0x000f1880 in process_one_symbol (type=36, desc=2408448, valu=56,
    name=0x23953f1 "", section_offsets=0x1010101, objfile=0xa34980)
    at dbxread.c:2807
#2  0x000f1128 in read_ofile_symtab (pst=0x280c2a0) at dbxread.c:2651
#3  0x000f0c7c in dbx_psymtab_to_symtab_1 (pst=0x280c2a0) at dbxread.c:2479
#4  0x000f0d74 in dbx_psymtab_to_symtab (pst=0x280c2a0) at dbxread.c:2520
#5  0x0005a858 in psymtab_to_symtab (pst=0x280c2a0) at symfile.c:375
#6  0x00056480 in find_pc_sect_symtab (pc=9636012, section=0xc6b170)
    at symtab.c:1644
#7  0x000551e4 in lookup_symbol_aux (
    name=0xffbeeb98 "outputCopyrightNotices()", mangled_name=0x0, block=0x0,
    namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0xffbeebc4)
    at symtab.c:856
#8  0x00054f78 in lookup_symbol (name=0xffbeeb98 "outputCopyrightNotices()",
    block=0x0, namespace=VAR_NAMESPACE, is_a_field_of_this=0x0,
    symtab=0xffbeebc4) at symtab.c:718
#9  0x000617e0 in decode_line_1 (argptr=0xffbeed74, funfirstline=1,
    default_symtab=0x0, default_line=0, canonical=0xffbeed0c)
    at linespec.c:1185
#10 0x000c8364 in parse_breakpoint_sals (address=0xffbeed74, sals=0xffbeed18,
---Type <return> to continue, or q <return> to quit---
    addr_string=0xffbeed0c) at breakpoint.c:4624
#11 0x000c8408 in break_command_1 (arg=0x25dcd2 "", flag=0, from_tty=1)
    at breakpoint.c:4708
#12 0x001286b0 in do_cfunc (c=0x265490,
    args=0x25dcba "outputCopyrightNotices()", from_tty=0)
    at cli/cli-decode.c:53
#13 0x0012a49c in cmd_func (cmd=0x265490,
    args=0x25dcba "outputCopyrightNotices()", from_tty=1)
    at cli/cli-decode.c:1525
#14 0x000b6d80 in execute_command (p=0x25dcd1 ")", from_tty=1) at top.c:711
#15 0x00071324 in command_handler (
    command=0x25dcb8 "b outputCopyrightNotices()") at event-top.c:504
#16 0x00071868 in command_line_handler (
    rl=0x1bfd1e8 "b outputCopyrightNotices() ") at event-top.c:799
#17 0x001a180c in rl_callback_read_char () at callback.c:114
#18 0x00070b58 in rl_callback_read_char_wrapper (client_data=0x0)
    at event-top.c:168
#19 0x00071208 in stdin_event_handler (error=461644, client_data=0x0)
    at event-top.c:418
#20 0x000d3378 in handle_file_event (event_file_desc=1) at event-loop.c:714
#21 0x000d2ce0 in process_event () at event-loop.c:334
#22 0x000d2d38 in gdb_do_one_event (data=0x1) at event-loop.c:371
#23 0x000b69b4 in do_catch_errors (uiout=0x280760, data=0xffbef3c8)
---Type <return> to continue, or q <return> to quit---
    at top.c:492
#24 0x000b68cc in catcher (func=0xb69a4 <do_catch_errors>,
    func_uiout=0x280760, func_args=0xffbef3c8, func_val=0xffbef3c4,
    func_caught=0xffbef3c0, errstring=0x1ed578 "", mask=6) at top.c:424
#25 0x000b69ec in catch_errors (func=0xd2cfc <gdb_do_one_event>,
    func_args=0x0, errstring=0x1ed578 "", mask=6) at top.c:504
#26 0x000d2d68 in start_event_loop () at event-loop.c:395
#27 0x0003d03c in captured_command_loop (data=0x0) at main.c:94
#28 0x000b69b4 in do_catch_errors (uiout=0x280760, data=0xffbef678)
    at top.c:492
#29 0x000b68cc in catcher (func=0xb69a4 <do_catch_errors>,
    func_uiout=0x280760, func_args=0xffbef678, func_val=0xffbef674,
    func_caught=0xffbef670, errstring=0x1bdc20 "", mask=6) at top.c:424
#30 0x000b69ec in catch_errors (func=0x3d014 <captured_command_loop>,
    func_args=0x0, errstring=0x1bdc20 "", mask=6) at top.c:504
#31 0x0003d9f0 in captured_main (data=0xffbefc76) at main.c:732
#32 0x000b69b4 in do_catch_errors (uiout=0x241c20, data=0xffbefa08)
    at top.c:492
#33 0x000b68cc in catcher (func=0xb69a4 <do_catch_errors>,
    func_uiout=0x241c20, func_args=0xffbefa08, func_val=0xffbefa04,
    func_caught=0xffbefa00, errstring=0x1bdc20 "", mask=6) at top.c:424
#34 0x000b69ec in catch_errors (func=0x3d078 <captured_main>,
    func_args=0xffbefa80, errstring=0x1bdc20 "", mask=6) at top.c:504
---Type <return> to continue, or q <return> to quit---
#35 0x0003dd30 in main (argc=2, argv=0xffbefafc) at main.c:743
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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