public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11026] New: gdb crashes at eq_demangled_name_entry
@ 2009-11-27 11:58 jarrod dot chesney at gmail dot com
  2010-01-13 20:30 ` [Bug c++/11026] " tromey at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jarrod dot chesney at gmail dot com @ 2009-11-27 11:58 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/11026] gdb crashes at eq_demangled_name_entry
  2009-11-27 11:58 [Bug c++/11026] New: gdb crashes at eq_demangled_name_entry jarrod dot chesney at gmail dot com
@ 2010-01-13 20:30 ` tromey at redhat dot com
  2010-01-19 19:12 ` tromey at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2010-01-13 20:30 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-01-13 20:30 -------
I wonder what these are about:

Error while mapping shared library sections:
C:\WINDOWS\SysWOW64\ntdll32.dll: Invalid argument.

For the immediate bug it might be useful to see the result of
'info local' in frame #1... though I suspect earlier problems
will make this just be garbage.
valgrinding might help, if you can do that.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com


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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/11026] gdb crashes at eq_demangled_name_entry
  2009-11-27 11:58 [Bug c++/11026] New: gdb crashes at eq_demangled_name_entry jarrod dot chesney at gmail dot com
  2010-01-13 20:30 ` [Bug c++/11026] " tromey at redhat dot com
@ 2010-01-19 19:12 ` tromey at redhat dot com
  2010-01-20  2:05 ` cvs-commit at gcc dot gnu dot org
  2010-01-20  2:48 ` tromey at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2010-01-19 19:12 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-01-19 19:12 -------
Keith found a way to reproduce this.
I'm fixing it.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at sourceware dot|tromey at redhat dot com
                   |org                         |
             Status|UNCONFIRMED                 |ASSIGNED


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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/11026] gdb crashes at eq_demangled_name_entry
  2009-11-27 11:58 [Bug c++/11026] New: gdb crashes at eq_demangled_name_entry jarrod dot chesney at gmail dot com
  2010-01-13 20:30 ` [Bug c++/11026] " tromey at redhat dot com
  2010-01-19 19:12 ` tromey at redhat dot com
@ 2010-01-20  2:05 ` cvs-commit at gcc dot gnu dot org
  2010-01-20  2:48 ` tromey at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2010-01-20  2:05 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2010-01-20 02:05 -------
Subject: Bug 11026

CVSROOT:	/cvs/src
Module name:	src
Changes by:	tromey@sourceware.org	2010-01-20 02:05:03

Modified files:
	gdb            : ChangeLog dwarf2read.c 

Log message:
	PR c++/11026:
	* dwarf2read.c (read_partial_die): Allocate partial DIE's name on
	objfile obstack.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.11278&r2=1.11279
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/dwarf2read.c.diff?cvsroot=src&r1=1.349&r2=1.350



-- 


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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/11026] gdb crashes at eq_demangled_name_entry
  2009-11-27 11:58 [Bug c++/11026] New: gdb crashes at eq_demangled_name_entry jarrod dot chesney at gmail dot com
                   ` (2 preceding siblings ...)
  2010-01-20  2:05 ` cvs-commit at gcc dot gnu dot org
@ 2010-01-20  2:48 ` tromey at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at redhat dot com @ 2010-01-20  2:48 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-01-20 02:48 -------
I think this is fixed.
If you can, please try cvs head gdb.
If it still fails for you, reopen this PR.  Thanks.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-01-20  2:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-27 11:58 [Bug c++/11026] New: gdb crashes at eq_demangled_name_entry jarrod dot chesney at gmail dot com
2010-01-13 20:30 ` [Bug c++/11026] " tromey at redhat dot com
2010-01-19 19:12 ` tromey at redhat dot com
2010-01-20  2:05 ` cvs-commit at gcc dot gnu dot org
2010-01-20  2:48 ` tromey at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).