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/776: gdb5.12 on solaris 5.8 core dumps on binary from gcc3.2+gld2.12.1


>Number:         776
>Category:       gdb
>Synopsis:       gdb5.12 on solaris 5.8 core dumps on binary from gcc3.2+gld2.12.1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 30 16:38:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     rrh@cray.com
>Release:        gdb 5.2.1
>Organization:
>Environment:

>Description:
gdb5.2.1 running on solaris 5.8, examining a debuggee built
with gcc3.2 and gld2.12.1 (gcc -v information appears later),
will segfault.  Running gdb5.2.1 under itself shows
the gdb5.2.1 debugee faulting at (I didn't include all
the frames, just the top ones)
420           if ((TYPE_CONST (ntype) == cnst) &&
(top-gdb) where
#0  make_cv_type (cnst=1, voltl=0, type=0xc79018, typeptr=0xc97da0)
    at gdbtypes.c:420
#1  0x000f9d88 in read_type (pp=0xffbedd68, objfile=0x3d4e50)
    at stabsread.c:2682
#2  0x000f8548 in define_symbol (valu=68, 
    string=0x3 <Address 0x3 out of bounds>, desc=28, type=160, 
    objfile=0x3d4e50) at stabsread.c:1692
#3  0x000e45e4 in process_one_symbol (type=160, desc=28, valu=68, 
    name=0x758af0 "this:p(1,914)=k(1,40)", section_offsets=0x32c6f0, 
    objfile=0x3d4e50) at dbxread.c:3208
#4  0x000e32ec in read_ofile_symtab (pst=0xabb750) at dbxread.c:2602
#5  0x000e2dd0 in dbx_psymtab_to_symtab_1 (pst=0xabb750) at dbxread.c:2430
#6  0x000e2d38 in dbx_psymtab_to_symtab_1 (pst=0xb4b2a0) at dbxread.c:2416
#7  0x000e2e8c in dbx_psymtab_to_symtab (pst=0xb4b2a0) at dbxread.c:2471
#8  0x000576e4 in psymtab_to_symtab (pst=0xb4b2a0) at symfile.c:374
#9  0x00054b50 in search_symbols (regexp=0x2769d4 "assert_return", 
    kind=FUNCTIONS_NAMESPACE, nfiles=0, files=0x0, matches=0xffbee1bc)
    at symtab.c:2612
#10 0x000555d4 in rbreak_command (regexp=0x2769d4 "assert_return", from_tty=0)
    at symtab.c:2944
#11 0x0011b32c in do_cfunc (c=0x256a00, args=0x2769d4 "assert_return", 
    from_tty=0) at ./cli/cli-decode.c:50
#12 0x000b00c0 in execute_command (p=0x2769e0 "n", from_tty=0) at top.c:715
---Type <return> to continue, or q <return> to quit---
#13 0x0011d13c in execute_control_command (cmd=0x24cbf0)
    at ./cli/cli-script.c:269
#14 0x0011d090 in execute_user_command (c=0x24cbf0, args=0x268788 "")
    at ./cli/cli-script.c:238
#15 0x000b002c in execute_command (p=0x268733 "", from_tty=0) at top.c:707
#16 0x0011d13c in execute_control_command (cmd=0x276490)
    at ./cli/cli-script.c:269
#17 0x0011d090 in execute_user_command (c=0x276490, args=0x268890 "")
    at ./cli/cli-script.c:238
#18 0x000b002c in execute_command (p=0x24c57b "", from_tty=1) at top.c:707
#19 0x0006db84 in command_handler (command=0x24c578 "tte") at event-top.c:504
#20 0x0006e28c in command_line_handler (rl=0x24b230 "") at event-top.c:808
#21 0x0018f320 in rl_callback_read_char () at callback.c:114
#22 0x0006d308 in rl_callback_read_char_wrapper (client_data=0x0)
    at event-top.c:168
#23 0x0006da34 in stdin_event_handler (error=0, client_data=0x0)
    at event-top.c:418
#24 0x000c6be8 in handle_file_event (event_file_desc=1) at event-loop.c:714
#25 0x000c6514 in process_event () at event-loop.c:335
#26 0x000c6564 in gdb_do_one_event (data=0x1) at event-loop.c:372
#27 0x000afcac in do_catch_errors (uiout=0x26d090, data=0xffbeeab8)
    at top.c:491
#28 0x000afb54 in catcher (func=0xafc9c <do_catch_errors>, 
---Type <return> to continue, or q <return> to quit---
    func_uiout=0x26d090, func_args=0xffbeeab8, func_val=0xffbeeab4, 
    func_caught=0xffbeeab0, errstring=0x1d9848 "", mask=6) at top.c:423
#29 0x000afce4 in catch_errors (func=0xc6528 <gdb_do_one_event>, 
    func_args=0x0, errstring=0x1d9848 "", mask=6) at top.c:503
#30 0x000c6590 in start_event_loop () at event-loop.c:396

gcc -v yieldsReading specs from /sw/gen/sparc-sun-solaris2.8/gcc/3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/specs
Configured with: /export/data01/build/cpkg/programs/gcc/3.2/work.korsakoff.wc.cray.com/gcc-3.2/configure --with-gnu-as --with-as=/sw/gen/sparc-sun-solaris2.8/binutils/2.12.1/bin/as --with-gnu-ld --with-ld=/sw/gen/sparc-sun-solaris2.8/binutils/2.12.1/bin/ld --enable-languages=c++,f77,objc --with-local-prefix=/sw/gen/sparc-sun-solaris2.8/gcc/3.2 --prefix=/sw/gen/sparc-sun-solaris2.8/gcc/3.2
Thread model: posix
gcc version 3.2

poking around in the outermost gdb, I see:
415     
416       ntype = TYPE_CV_TYPE (type);
417     
418       while (ntype != type)
419         {
420           if ((TYPE_CONST (ntype) == cnst) &&
421               (TYPE_VOLATILE (ntype) == voltl))
422             {
423               if (typeptr == 0)
424                 return ntype;
(top-gdb) print ntype
$1 = (struct type *) 0x0
(top-gdb) print type
$2 = (struct type *) 0xc79018
(top-gdb) 
>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]