This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug c++/11026] New: gdb crashes at eq_demangled_name_entry


gdb crashes when i try to debug a simple hello world app.
The applications is a 32bit windows console application written in c++ and compilled with
gcc.exe (GCC) 4.5.0 20091124 (experimental) 


$ gdb.exe --args gdb.exe /c/workspace_c++/hw/Debug32/hw.exe 
GNU gdb (GDB) 7.0.50.20091126-cvs
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-w64-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from c:\mingw32\bin/gdb.exe...done.
(gdb) run
Starting program: c:\mingw32\bin/gdb.exe c:/workspace_c++/hw/Debug32/hw.exe
[New Thread 1020.0xb54]
GNU gdb (GDB) 7.0.50.20091126-cvs
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-w64-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from c:/workspace_c++/hw/Debug32/hw.exe...
Program received signal SIGSEGV, Segmentation fault.
0x77bd85f0 in ?? ()
(gdb) Error: dll starting at 0x77d40000 not found.
Error: dll starting at 0x77d40000 not found.
Error: dll starting at 0x77c20000 not found.
Error while mapping shared library sections:
C:\WINDOWS\SysWOW64\ntdll32.dll: Invalid argument.
Error while mapping shared library sections:
C:\WINDOWS\syswow64\kernel32.dll: Invalid argument.
Error while mapping shared library sections:
C:\WINDOWS\syswow64\msvcrt.dll: Invalid argument.
Error while mapping shared library sections:
C:\WINDOWS\syswow64\user32.dll: Invalid argument.
Error while mapping shared library sections:
C:\WINDOWS\syswow64\gdi32.dll: Invalid argument.
Error while mapping shared library sections:
C:\WINDOWS\syswow64\advapi32.dll: Invalid argument.
Error while mapping shared library sections:
C:\WINDOWS\syswow64\rpcrt4.dll: Invalid argument.
Error while mapping shared library sections:
C:\WINDOWS\syswow64\secur32.dll: Invalid argument.
Error while mapping shared library sections:
C:\WINDOWS\SysWOW64\ws2_32.dll: Invalid argument.
Error while mapping shared library sections:
C:\WINDOWS\SysWOW64\ws2help.dll: Invalid argument.
Error while mapping shared library sections:
C:\WINDOWS\SysWOW64\imm32.dll: Invalid argument.
Error while mapping shared library sections:
C:\WINDOWS\SysWOW64\psapi.dll: Invalid argument.

(gdb) 
(gdb) bt
#0  0x77bd85f0 in ?? ()
#1  0x00471058 in eq_demangled_name_entry (a=0x353c418, b=0x1c9f89c)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/symtab.c:451
#2  0x00630cea in htab_find_slot_with_hash (htab=0x34893e8, 
    element=0x1c9f89c, hash=3356982290, insert=INSERT)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/libiberty/hashtab.c:656
#3  0x00630d81 in htab_find_slot (htab=0x34893e8, element=0x1c9f89c, 
    insert=INSERT)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/libiberty/hashtab.c:681
#4  0x0047140a in symbol_set_names (gsymbol=0x754478, 
    linkage_name=0x3683198 "unsigned long", len=13, copy_name=0, 
    objfile=0x3482750)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/symtab.c:630
#5  0x0040e055 in add_psymbol_to_bcache (name=0x3683198 "unsigned long", 
    namelength=13, copy_name=0, domain=VAR_DOMAIN, class=LOC_TYPEDEF, val=0, 
    coreaddr=0, language=language_cplus, objfile=0x3482750, added=0x1c9f978)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/symfile.c:3166
#6  0x0040e12a in add_psymbol_to_list (name=0x3683198 "unsigned long", 
    namelength=13, copy_name=0, domain=VAR_DOMAIN, class=LOC_TYPEDEF, 
    list=0x34827c4, val=0, coreaddr=0, language=language_cplus, 
    objfile=0x3482750)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/symfile.c:3216
#7  0x0051c09c in load_partial_dies (abfd=0x343b748, 
    buffer=0x36c0028 "A\037", info_ptr=0x36d1e13 "\003__gnuc_va_list", 
    building_psymtab=1, cu=0x1c9fa84)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/dwarf2read.c:6586
#8  0x00513783 in process_psymtab_comp_unit (objfile=0x3482750, 
    this_cu=0x3492338, buffer=0x36c0028 "A\037", 
    info_ptr=0x36d1dfe "\002\004\along unsigned int", buffer_size=1712540)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/dwarf2read.c:1987
#9  0x00513a4c in dwarf2_build_psymtabs_hard (objfile=0x3482750, mainline=0)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/dwarf2read.c:2121
#10 0x00512840 in dwarf2_build_psymtabs (objfile=0x3482750, mainline=0)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/dwarf2read.c:1484
#11 0x0050e86a in coff_symfile_read (objfile=0x3482750, mainline=0)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/coffread.c:645
#12 0x0040a74c in syms_from_objfile (objfile=0x3482750, addrs=0x3487918, 
    offsets=0x0, num_offsets=0, add_flags=6)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/symfile.c:889
#13 0x0040a908 in symbol_file_add_with_addrs_or_offsets (abfd=0x343b748, 
    add_flags=6, addrs=0x0, offsets=0x0, num_offsets=0, flags=0)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/symfile.c:990
#14 0x0040ab3e in symbol_file_add_from_bfd (abfd=0x343b748, add_flags=6, 
    addrs=0x0, flags=0)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/symfile.c:1090
#15 0x0040ab6e in symbol_file_add (
    name=0x2f5e90 "c:/workspace_c++/hw/Debug32/hw.exe", add_flags=6, 
    addrs=0x0, flags=0)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/symfile.c:1102
#16 0x0040abce in symbol_file_add_main_1 (
    args=0x2f5e90 "c:/workspace_c++/hw/Debug32/hw.exe", from_tty=1, flags=0)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/symfile.c:1125
#17 0x0040ab90 in symbol_file_add_main (
    args=0x2f5e90 "c:/workspace_c++/hw/Debug32/hw.exe", from_tty=1)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/symfile.c:1118
#18 0x00421ae3 in catch_command_errors (
    command=0x40ab70 <symbol_file_add_main>, 
    arg=0x2f5e90 "c:/workspace_c++/hw/Debug32/hw.exe", from_tty=1, mask=6)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/exceptions.c:525
#19 0x0040260f in captured_main (data=0x1c9ff20)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/main.c:804
#20 0x00421a47 in catch_errors (func=0x401b08 <captured_main>, 
    func_args=0x1c9ff20, errstring=0x67e0a3 "", mask=6)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/exceptions.c:510
#21 0x004029ba in gdb_main (args=0x1c9ff20)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/main.c:911
#22 0x00401864 in main (argc=2, argv=0x2f5e38)
    at /home/jchesney/Documents/opal/DevEnv/src/gdb_git/gdb/gdb.c:33
(gdb)

-- 
           Summary: gdb crashes at eq_demangled_name_entry
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: jarrod dot chesney at gmail dot com
                CC: gdb-prs at sourceware dot org
 GCC build triplet: x86_64-pc-linux-gnu
  GCC host triplet: i686-w64-mingw32
GCC target triplet: i686-w64-mingw32


http://sourceware.org/bugzilla/show_bug.cgi?id=11026

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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