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/561: gdb 5.2 and gcc 3.1, gdb fails to read symbol table, infinite loop



>Number:         561
>Category:       gdb
>Synopsis:       gdb 5.2 and gcc 3.1, gdb fails to read symbol table, infinite loop
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 28 07:28:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     David Barto, barto@visionpro.com
>Release:        unknown-1.0
>Organization:
>Environment:
solaris 8, generic 32/64 install.
configured using './configure'
>Description:
When using gdb 5.2 on a gcc 3.1 compiled code (lots of shared libraries) gdb gets in an infinite loop looking up symbols. The infinite loop occurs in finish_cv_type.

More information needed? Please contact barto@visionpro.com
>How-To-Repeat:
Hard, obviously. The stack trace is:
#0  finish_cv_type (type=0x5b7f38) at gdbtypes.c:496
#1  0x00189244 in read_struct_type (pp=0xffbed394, type=0x5b7f38, 
    objfile=0x32b608) at stabsread.c:4211
#2  0x00185164 in read_type (pp=0xffbed394, objfile=0x32b608)
    at stabsread.c:2814
#3  0x00187248 in read_one_struct_field (fip=0xffbed1f8, pp=0xffbed394, 
    p=0x3ec0ff ":(44,55)=s8callback:(44,34),0,32;client_data:(44,1),32,32;operator=::(44,56)=#(44,55),(44,57)=&(44,55),(44,58)=*(44,55),(44,59)=&(44,60)=k(44,55),(0,21);:_ZN12SmcCallbacks5._153aSERKS0_;2A.;__base_cto"..., type=0x5b66d0, 
    objfile=0x32b608) at stabsread.c:3496
#4  0x00187844 in read_struct_fields (fip=0xffbed1f8, pp=0xffbed394, 
    type=0x5b66d0, objfile=0x32b608) at stabsread.c:3675
#5  0x0018917c in read_struct_type (pp=0xffbed394, type=0x5b66d0, 
    objfile=0x32b608) at stabsread.c:4200
#6  0x00185164 in read_type (pp=0xffbed394, objfile=0x32b608)
    at stabsread.c:2814
#7  0x00182ab4 in define_symbol (valu=0, 
    string=0x3ebcf4 "SmcCallbacks:t(44,38)=s32save_yourself:(44,39)=s8callback:(44,25),0,32;client_data:(44,1),32,32;operator=::(44,40)=#(44,39),(44,41)=&(44,39),(44,42)=*(44,39),(44,43)=&(44,44)=k(44,39),(0,21);:_ZN12Smc"..., desc=0, 
    type=128, objfile=0x32b608) at stabsread.c:1906
#8  0x0015e0f8 in process_one_symbol (type=128, desc=0, valu=0, 
    name=0x3ebcf4 "SmcCallbacks:t(44,38)=s32save_yourself:(44,39)=s8callback:(44,25),0,32;client_data:(44,1),32,32;operator=::(44,40)=#(44,39),(44,41)=&(44,39),(44,42)=*(44,39),(44,43)=&(44,44)=k(44,39),(0,21);:_ZN12Smc"..., 
    section_offsets=0x320b38, objfile=0x32b608) at dbxread.c:3208
#9  0x0015c388 in read_ofile_symtab (pst=0x4d0018) at dbxread.c:2602
#10 0x0015bb18 in dbx_psymtab_to_symtab_1 (pst=0x4d0018) at dbxread.c:2430
#11 0x0015bc54 in dbx_psymtab_to_symtab (pst=0x4d0018) at dbxread.c:2471
#12 0x0006b938 in psymtab_to_symtab (pst=0x4d0018) at symfile.c:372
#13 0x00064210 in find_pc_sect_symtab (pc=141972, section=0x323ea0)
    at symtab.c:1488
#14 0x00062010 in lookup_symbol_aux (name=0xffbed870 "main", block=0x0, 
    namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0xffbed8dc)
    at symtab.c:741
#15 0x00061acc in lookup_symbol (name=0xffbed870 "main", block=0x0, 
    namespace=VAR_NAMESPACE, is_a_field_of_this=0x0, symtab=0xffbed8dc)
    at symtab.c:603
#16 0x00079008 in decode_line_1 (argptr=0xffbedadc, funfirstline=1, 
    default_symtab=0x0, default_line=0, canonical=0xffbeda6c)
    at linespec.c:1188
#17 0x0011e678 in parse_breakpoint_sals (address=0xffbedadc, sals=0xffbeda78, 
    addr_string=0xffbeda6c) at breakpoint.c:4480
#18 0x0011e8a4 in break_command_1 (arg=0x2eedee "", flag=0, from_tty=1)
    at breakpoint.c:4561
#19 0x0011fb8c in break_command (arg=0x2eedea "main", from_tty=1)
    at breakpoint.c:5008
#20 0x001c0758 in do_cfunc (c=0x2f4a20, args=0x2eedea "main", from_tty=1)
    at ./cli/cli-decode.c:50
#21 0x001039f4 in execute_command (p=0x2eeded "n", from_tty=1) at top.c:715
#22 0x00090ca8 in command_handler (command=0x2eede8 "b main")
    at event-top.c:504
#23 0x00091940 in command_line_handler (rl=0x323178 "") at event-top.c:800
#24 0x0023b808 in rl_callback_read_char () at callback.c:114
#25 0x0008fe30 in rl_callback_read_char_wrapper (client_data=0x0)
    at event-top.c:168
#26 0x00090ac8 in stdin_event_handler (error=0, client_data=0x0)
    at event-top.c:418
#27 0x0012a174 in handle_file_event (event_file_desc=0) at event-loop.c:714
#28 0x00129380 in process_event () at event-loop.c:335
#29 0x0012940c in gdb_do_one_event (data=0x0) at event-loop.c:372
#30 0x00103360 in do_catch_errors (uiout=0x30f748, data=0xffbee190)
    at top.c:491
#31 0x00103134 in catcher (func=0x103334 <do_catch_errors>, 
    func_uiout=0x30f748, func_args=0xffbee190, func_val=0xffbee19c, 
    func_caught=0xffbee198, errstring=0x283578 "", mask=6) at top.c:423
#32 0x001033cc in catch_errors (func=0x1293b4 <gdb_do_one_event>, 
    func_args=0x0, errstring=0x283578 "", mask=6) at top.c:503
#33 0x00129470 in start_event_loop () at event-loop.c:396
#34 0x0008ffd0 in cli_command_loop () at event-top.c:200
#35 0x00038e8c in captured_command_loop (data=0x0) at main.c:94
#36 0x00103360 in do_catch_errors (uiout=0x30f748, data=0xffbee4d8)
    at top.c:491
#37 0x00103134 in catcher (func=0x103334 <do_catch_errors>, 
    func_uiout=0x30f748, func_args=0xffbee4d8, func_val=0xffbee4e4, 
    func_caught=0xffbee4e0, errstring=0x256aa0 "", mask=6) at top.c:423
#38 0x001033cc in catch_errors (func=0x38e48 <captured_command_loop>, 
    func_args=0x0, errstring=0x256aa0 "", mask=6) at top.c:503
#39 0x0003a078 in captured_main (data=0xffbee948) at main.c:723
#40 0x00103360 in do_catch_errors (uiout=0x2d23b8, data=0xffbee8c8)
    at top.c:491
#41 0x00103134 in catcher (func=0x103334 <do_catch_errors>, 
    func_uiout=0x2d23b8, func_args=0xffbee8c8, func_val=0xffbee8d4, 
    func_caught=0xffbee8d0, errstring=0x256aa0 "", mask=6) at top.c:423
#42 0x001033cc in catch_errors (func=0x38ed8 <captured_main>, 
    func_args=0xffbee948, errstring=0x256aa0 "", mask=6) at top.c:503
#43 0x0003a0c4 in main (argc=2, argv=0xffbee9c4) at main.c:734
>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]