public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/14963] New: gdb 7.5 segfault on startup
@ 2012-12-16  2:28 mrsam@courier-mta.com
  2012-12-16  2:42 ` [Bug gdb/14963] " tromey at redhat dot com
                   ` (37 more replies)
  0 siblings, 38 replies; 39+ messages in thread
From: mrsam@courier-mta.com @ 2012-12-16  2:28 UTC (permalink / raw)
  To: gdb-prs

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

             Bug #: 14963
           Summary: gdb 7.5 segfault on startup
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: mrsam@courier-mta.com
    Classification: Unclassified


Big C++ hairball built by gcc 4.7.2 with -std=c++0x (x86_64, fedora 17) makes
gdb very sad:

GNU gdb (GDB) 7.5.50.20121215
Copyright (C) 2012 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 "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/home/mrsam/src/libcxx/base/testmimebodystartiter...Segmentation fault (core
dumped)

The binary that's causing this is 23mb uncompressed, 6.5mb compressed. You can
download this binary here:

http://www.libcxx.org/ref/testmimebodystartiter.gz.bin

This is gzip-compressed. Let me know when you grabbed it, so I can get rid of
it.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/14963] gdb 7.5 segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
@ 2012-12-16  2:42 ` tromey at redhat dot com
  2012-12-16  2:48 ` mrsam@courier-mta.com
                   ` (36 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: tromey at redhat dot com @ 2012-12-16  2:42 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

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

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-12-16 02:42:31 UTC ---
Looks like infinite recursion in the demangler.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/14963] gdb 7.5 segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
  2012-12-16  2:42 ` [Bug gdb/14963] " tromey at redhat dot com
@ 2012-12-16  2:48 ` mrsam@courier-mta.com
  2012-12-17 15:05 ` tromey at redhat dot com
                   ` (35 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: mrsam@courier-mta.com @ 2012-12-16  2:48 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Sam Varshavchik <mrsam@courier-mta.com> 2012-12-16 02:48:53 UTC ---
Indeed. Running gdb

Yeah, just got the bright idea myself, to try gdb-ing gdb itself, and this
seems to be the loop:


#158 0x00000000006db266 in d_print_comp (dpi=0x7fffffff7e50, options=259, 
    dc=0x7fffffff95d8) at ../../libiberty/cp-demangle.c:4337
#159 0x00000000006d9965 in d_print_comp (dpi=0x7fffffff7e50, options=259, 
    dc=0x7fffffff9668) at ../../libiberty/cp-demangle.c:3936
#160 0x00000000006d9fca in d_print_comp (dpi=0x7fffffff7e50, options=259, 
    dc=0x7fffffff9680) at ../../libiberty/cp-demangle.c:4325
#161 0x00000000006d9965 in d_print_comp (dpi=0x7fffffff7e50, options=259, 
    dc=0x7fffffff96b0) at ../../libiberty/cp-demangle.c:3936
#162 0x00000000006d9fca in d_print_comp (dpi=0x7fffffff7e50, options=259, 
    dc=0x7fffffff96c8) at ../../libiberty/cp-demangle.c:4325
#163 0x00000000006d9965 in d_print_comp (dpi=0x7fffffff7e50, options=259, 
    dc=0x7fffffff96e0) at ../../libiberty/cp-demangle.c:3936
#164 0x00000000006d9190 in d_print_comp (dpi=0x7fffffff7e50, options=259, 
    dc=0x7fffffff96f8) at ../../libiberty/cp-demangle.c:4147
#165 0x00000000006d9fca in d_print_comp (dpi=0x7fffffff7e50, options=259, 
    dc=0x7fffffff9620) at ../../libiberty/cp-demangle.c:4325
#166 0x00000000006d9965 in d_print_comp (dpi=0x7fffffff7e50, options=259, 
    dc=0x7fffffff9638) at ../../libiberty/cp-demangle.c:3936
#167 0x00000000006d9fca in d_print_comp (dpi=0x7fffffff7e50, options=259, 
    dc=0x7fffffff9650) at ../../libiberty/cp-demangle.c:4325
#168 0x00000000006db266 in d_print_comp (dpi=0x7fffffff7e50, options=259, 
    dc=0x7fffffff95d8) at ../../libiberty/cp-demangle.c:4337

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/14963] gdb 7.5 segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
  2012-12-16  2:42 ` [Bug gdb/14963] " tromey at redhat dot com
  2012-12-16  2:48 ` mrsam@courier-mta.com
@ 2012-12-17 15:05 ` tromey at redhat dot com
  2013-01-04 21:55 ` pinskia at gcc dot gnu.org
                   ` (34 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: tromey at redhat dot com @ 2012-12-17 15:05 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #3 from Tom Tromey <tromey at redhat dot com> 2012-12-17 15:05:11 UTC ---
The failing symbol name is

_ZSt7forwardIRN1x14refobjiteratorINS0_3refINS0_4mime30multipart_section_processorObjIZ15get_body_parserIZZN14mime_processor21make_section_iteratorERKNS2_INS3_10sectionObjENS0_10ptrrefBaseEEEbENKUlvE_clEvEUlSB_bE_ZZNS6_21make_section_iteratorESB_bENKSC_clEvEUlSB_E0_ENS1_INS2_INS0_20outputrefiteratorObjIiEES8_EEEERKSsSB_OT_OT0_EUlmE_NS3_32make_multipart_default_discarderISP_EEEES8_EEEEEOT_RNSt16remove_referenceISW_E4typeE

BTW you can delete your test program now.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/14963] gdb 7.5 segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (2 preceding siblings ...)
  2012-12-17 15:05 ` tromey at redhat dot com
@ 2013-01-04 21:55 ` pinskia at gcc dot gnu.org
  2013-08-30 12:25 ` gbenson at redhat dot com
                   ` (33 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-01-04 21:55 UTC (permalink / raw)
  To: gdb-prs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu.org
           See Also|                            |http://gcc.gnu.org/bugzilla
                   |                            |/show_bug.cgi?id=55880

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug gdb/14963] gdb 7.5 segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (3 preceding siblings ...)
  2013-01-04 21:55 ` pinskia at gcc dot gnu.org
@ 2013-08-30 12:25 ` gbenson at redhat dot com
  2013-09-03  9:39 ` gbenson at redhat dot com
                   ` (32 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2013-08-30 12:25 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

Gary Benson <gbenson at redhat dot com> changed:

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

--- Comment #4 from Gary Benson <gbenson at redhat dot com> ---
Created attachment 7176
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7176&action=edit
Reproducer

gcc -I/path/to/src/include test.c /path/to/build/libiberty/libiberty.a -o test

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] gdb 7.5 segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (4 preceding siblings ...)
  2013-08-30 12:25 ` gbenson at redhat dot com
@ 2013-09-03  9:39 ` gbenson at redhat dot com
  2013-09-03  9:45 ` gbenson at redhat dot com
                   ` (31 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2013-09-03  9:39 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #5 from Gary Benson <gbenson at redhat dot com> ---
For reference the ABI spec wrt mangling is here:
http://mentorembedded.github.io/cxx-abi/abi.html#mangling

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] gdb 7.5 segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (5 preceding siblings ...)
  2013-09-03  9:39 ` gbenson at redhat dot com
@ 2013-09-03  9:45 ` gbenson at redhat dot com
  2013-09-04 14:33 ` gbenson at redhat dot com
                   ` (30 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2013-09-03  9:45 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #6 from Gary Benson <gbenson at redhat dot com> ---
Created attachment 7185
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7185&action=edit
Dump of parsed tree, and backtrace showing loop

There seems to be a loop in the parsed tree, starting at dc 0x7fffffff9dc0 in
this backtrace.  A substitution is referencing itself?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] gdb 7.5 segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (6 preceding siblings ...)
  2013-09-03  9:45 ` gbenson at redhat dot com
@ 2013-09-04 14:33 ` gbenson at redhat dot com
  2013-09-05  0:35 ` [Bug gdb/14963] " palves at redhat dot com
                   ` (29 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2013-09-04 14:33 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #7 from Gary Benson <gbenson at redhat dot com> ---
Possible fix:
http://gcc.gnu.org/ml/gcc-patches/2013-09/msg00215.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (7 preceding siblings ...)
  2013-09-04 14:33 ` gbenson at redhat dot com
@ 2013-09-05  0:35 ` palves at redhat dot com
  2013-09-10 12:37 ` gbenson at redhat dot com
                   ` (28 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: palves at redhat dot com @ 2013-09-05  0:35 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |palves at redhat dot com
            Version|HEAD                        |7.5
            Summary|gdb 7.5 segfault on startup |segfault on startup

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (8 preceding siblings ...)
  2013-09-05  0:35 ` [Bug gdb/14963] " palves at redhat dot com
@ 2013-09-10 12:37 ` gbenson at redhat dot com
  2013-09-11 12:24 ` gbenson at redhat dot com
                   ` (27 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2013-09-10 12:37 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #8 from Gary Benson <gbenson at redhat dot com> ---
Fix committed to GCC SVN:
http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=202442

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (9 preceding siblings ...)
  2013-09-10 12:37 ` gbenson at redhat dot com
@ 2013-09-11 12:24 ` gbenson at redhat dot com
  2013-11-04 16:28 ` gbenson at redhat dot com
                   ` (26 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2013-09-11 12:24 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #9 from Gary Benson <gbenson at redhat dot com> ---
Fix reverted from GCC :(
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58386

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (10 preceding siblings ...)
  2013-09-11 12:24 ` gbenson at redhat dot com
@ 2013-11-04 16:28 ` gbenson at redhat dot com
  2013-11-08 21:45 ` gbenson at redhat dot com
                   ` (25 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2013-11-04 16:28 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

Gary Benson <gbenson at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |gbenson at redhat dot com

--- Comment #10 from Gary Benson <gbenson at redhat dot com> ---
New fix committed to GCC SVN:
http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=204068

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (11 preceding siblings ...)
  2013-11-04 16:28 ` gbenson at redhat dot com
@ 2013-11-08 21:45 ` gbenson at redhat dot com
  2013-12-06 15:32 ` jakub at redhat dot com
                   ` (24 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2013-11-08 21:45 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

Gary Benson <gbenson at redhat dot com> changed:

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

--- Comment #11 from Gary Benson <gbenson at redhat dot com> ---
Fixed:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=9548bbede51868a9a780d7d21ae16ac13e8bdf9b

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (12 preceding siblings ...)
  2013-11-08 21:45 ` gbenson at redhat dot com
@ 2013-12-06 15:32 ` jakub at redhat dot com
  2013-12-12 10:37 ` gbenson at redhat dot com
                   ` (23 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: jakub at redhat dot com @ 2013-12-06 15:32 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

Jakub Jelinek <jakub at redhat dot com> changed:

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

--- Comment #12 from Jakub Jelinek <jakub at redhat dot com> ---
Unfortunately even the second patch is incorrect, at least when the *_callback
APIs are used, the demangler is not supposed to use any malloc/free.  Can the
amount of total needed memory for this be determined e.g. at the time when the
component tree is created, so that cplus_demangle_print_callback would then
just alloca all the memory needed for that at once before calling d_print_comp?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (13 preceding siblings ...)
  2013-12-06 15:32 ` jakub at redhat dot com
@ 2013-12-12 10:37 ` gbenson at redhat dot com
  2014-01-06 14:31 ` gbenson at redhat dot com
                   ` (22 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2013-12-12 10:37 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

Gary Benson <gbenson at redhat dot com> changed:

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

--- Comment #13 from Gary Benson <gbenson at redhat dot com> ---
I am working on a fix for this here:
https://github.com/gbenson/binutils-gdb/tree/demangler

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (14 preceding siblings ...)
  2013-12-12 10:37 ` gbenson at redhat dot com
@ 2014-01-06 14:31 ` gbenson at redhat dot com
  2014-02-18 20:51 ` tromey at redhat dot com
                   ` (21 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2014-01-06 14:31 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #14 from Gary Benson <gbenson at redhat dot com> ---
Updated fix committed to GCC SVN:
http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=206362

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (15 preceding siblings ...)
  2014-01-06 14:31 ` gbenson at redhat dot com
@ 2014-02-18 20:51 ` tromey at redhat dot com
  2014-02-23 19:08 ` jeremy at jeremyms dot com
                   ` (20 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: tromey at redhat dot com @ 2014-02-18 20:51 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.7

--- Comment #15 from Tom Tromey <tromey at redhat dot com> ---
Fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (16 preceding siblings ...)
  2014-02-18 20:51 ` tromey at redhat dot com
@ 2014-02-23 19:08 ` jeremy at jeremyms dot com
  2014-03-19 10:30 ` gbenson at redhat dot com
                   ` (19 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: jeremy at jeremyms dot com @ 2014-02-23 19:08 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

Jeremy Maitin-Shepard <jeremy at jeremyms dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |jeremy at jeremyms dot com
         Resolution|FIXED                       |---

--- Comment #16 from Jeremy Maitin-Shepard <jeremy at jeremyms dot com> ---
I think there is still a related problem:

GNU gdb (GDB) 7.7.50.20140223-cvs

I am getting infinite recursion in d_print_comp, seemingly caused by the
symbol:

_ZN3mdr16in_cached_threadIRZNK4cudr6GPUSet17parallel_for_eachIZN5tns3d20shape_representation7compute7GPUImpl7executeERKNS_1AINS_7ptr_refIKjEELl3ELl3ENS_8c_strideILl1ELl0EEEEERKNS8_INS9_IjEELl4ELl1ESD_EEEUliRKNS1_7ContextERNS7_5StateEE_JSt6vectorISO_SaISO_EEEEEvOT_DpRT0_EUlSP_E_JSt17reference_wrapperISO_EEEENS_12ScopedFutureIDTclfp_spcl7forwardISW_Efp0_EEEEESV_DpOSW_


c++filt is able to demangle it.
GNU c++filt (GNU Binutils) 2.24


However, the maint demangle command just says Can't demangle but doesn't crash.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (17 preceding siblings ...)
  2014-02-23 19:08 ` jeremy at jeremyms dot com
@ 2014-03-19 10:30 ` gbenson at redhat dot com
  2014-03-24 18:53 ` nknize@t-sciences.com
                   ` (18 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2014-03-19 10:30 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #17 from Gary Benson <gbenson at redhat dot com> ---
Ok, I see this too.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (18 preceding siblings ...)
  2014-03-19 10:30 ` gbenson at redhat dot com
@ 2014-03-24 18:53 ` nknize@t-sciences.com
  2014-03-24 19:55 ` gbenson at redhat dot com
                   ` (17 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: nknize@t-sciences.com @ 2014-03-24 18:53 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

nknize@t-sciences.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nknize@t-sciences.com

--- Comment #18 from nknize@t-sciences.com ---
I'm also getting a stack overflow in cp-demangle.c function d_print_comp (case
DEMANGLE_COMPONENT_VECTOR_TYPE:).  The exact line of the segfault is 4876.  

The mangled string causing the issue is

_ZNSt9_Any_data9_M_accessIPZN13ThreadManager10futureTaskISt5_BindIFSt7_Mem_fnIM6RunnerFvvEEPS5_EEEEvOT_EUlvE_EERSC_v

Here is the test code that causes the issue: http://pastebin.com/PwGjNH1N
Here are the compilation flags:  http://pastebin.com/ry7WLw2g

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (19 preceding siblings ...)
  2014-03-24 18:53 ` nknize@t-sciences.com
@ 2014-03-24 19:55 ` gbenson at redhat dot com
  2014-03-25  9:57 ` palves at redhat dot com
                   ` (16 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2014-03-24 19:55 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #19 from Gary Benson <gbenson at redhat dot com> ---
Thanks Nick.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (20 preceding siblings ...)
  2014-03-24 19:55 ` gbenson at redhat dot com
@ 2014-03-25  9:57 ` palves at redhat dot com
  2014-03-26 11:32 ` gbenson at redhat dot com
                   ` (15 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: palves at redhat dot com @ 2014-03-25  9:57 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #20 from Pedro Alves <palves at redhat dot com> ---
Thanks Nick.  Note that it's best to attach files to the bug, rather than rely
on pastebin being around forever.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (21 preceding siblings ...)
  2014-03-25  9:57 ` palves at redhat dot com
@ 2014-03-26 11:32 ` gbenson at redhat dot com
  2014-03-26 11:33 ` gbenson at redhat dot com
                   ` (14 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2014-03-26 11:32 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #21 from Gary Benson <gbenson at redhat dot com> ---
Created attachment 7491
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7491&action=edit
Nick's test code, from http://pastebin.com/PwGjNH1N

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (22 preceding siblings ...)
  2014-03-26 11:32 ` gbenson at redhat dot com
@ 2014-03-26 11:33 ` gbenson at redhat dot com
  2014-03-26 14:16 ` gbenson at redhat dot com
                   ` (13 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2014-03-26 11:33 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #22 from Gary Benson <gbenson at redhat dot com> ---
Created attachment 7492
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7492&action=edit
Nick's compilation flags, from http://pastebin.com/ry7WLw2g

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (23 preceding siblings ...)
  2014-03-26 11:33 ` gbenson at redhat dot com
@ 2014-03-26 14:16 ` gbenson at redhat dot com
  2014-03-28 21:12 ` keiths at redhat dot com
                   ` (12 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2014-03-26 14:16 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #23 from Gary Benson <gbenson at redhat dot com> ---
It's highly likely bug 16752 is the same issue as this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (24 preceding siblings ...)
  2014-03-26 14:16 ` gbenson at redhat dot com
@ 2014-03-28 21:12 ` keiths at redhat dot com
  2014-05-01 17:56 ` adrian.cheater at gmail dot com
                   ` (11 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: keiths at redhat dot com @ 2014-03-28 21:12 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

Keith Seitz <keiths at redhat dot com> changed:

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

--- Comment #24 from Keith Seitz <keiths at redhat dot com> ---
Also c++/16593. Problematic mangling:
_ZNSt9_Any_data9_M_accessIPZN3sel8Selector6SetObjI3FooJPKcMS4_FviEEEEvRT_DpT0_EUlvE_EESA_v

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (25 preceding siblings ...)
  2014-03-28 21:12 ` keiths at redhat dot com
@ 2014-05-01 17:56 ` adrian.cheater at gmail dot com
  2014-05-01 17:59 ` adrian.cheater at gmail dot com
                   ` (10 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: adrian.cheater at gmail dot com @ 2014-05-01 17:56 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

Adrian Cheater <adrian.cheater at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adrian.cheater at gmail dot com

--- Comment #25 from Adrian Cheater <adrian.cheater at gmail dot com> ---
Created attachment 7573
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7573&action=edit
3 failed strings from test-demangle when gdb 7.7 was configured with
CFLAGS='-DCP_DEMANGLE_DEBUG -ggdb3 -O0'

The pattern I'm seeing is when the parser hits the "reference->template
parameter 0" sections of the tree. It's grabbing a reference point of which it
is a subnode. Causing the parser to cycle back and recurse until it runs out of
stack or heap.

I'm still trying to get my head around this, having only started looking into
it about 2 days ago, but I have the following hypothesies.

- It's adding a reference to the near root of the tree when it shouldn't be
(which ends up as reference 0)
- The 'template parameter 0's might need to be 'template parameter 1's.
- References are allowed to be recursive, and at the time it fetches 'template
parameter 0', it's not grabbing the correct level.

Hoping someone with more experience can help me narrow it down, otherwise I'm
going to keep investigating. This bug is blocking a hobby project of mine, so
it's either fix this or shelve the project until someone else fixes it.

At any rate, the problem is likely to be somewhere in the get/set symbol
references but I don't know what the 'correct' behaviour is supposed to be. Is
this defined in a spec, or just a undefined detail?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (26 preceding siblings ...)
  2014-05-01 17:56 ` adrian.cheater at gmail dot com
@ 2014-05-01 17:59 ` adrian.cheater at gmail dot com
  2014-05-02  8:30 ` gbenson at redhat dot com
                   ` (9 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: adrian.cheater at gmail dot com @ 2014-05-01 17:59 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

Adrian Cheater <adrian.cheater at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #7573|text/x-vhdl                 |text/plain
          mime type|                            |

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (27 preceding siblings ...)
  2014-05-01 17:59 ` adrian.cheater at gmail dot com
@ 2014-05-02  8:30 ` gbenson at redhat dot com
  2014-05-05 20:21 ` adrian.cheater at gmail dot com
                   ` (8 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2014-05-02  8:30 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #26 from Gary Benson <gbenson at redhat dot com> ---
Adrian, the mangling spec is here:
http://mentorembedded.github.io/cxx-abi/abi.html#mangling
I don't pretend to understand it all :)

You may be interested in this patch to unblock your hobby project:
https://sourceware.org/ml/gdb-patches/2014-04/msg00156.html
It (should) allow GDB to continue in the face of demangler failures.
If you try it please let me know how you get on.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (28 preceding siblings ...)
  2014-05-02  8:30 ` gbenson at redhat dot com
@ 2014-05-05 20:21 ` adrian.cheater at gmail dot com
  2014-05-07  8:55 ` gbenson at redhat dot com
                   ` (7 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: adrian.cheater at gmail dot com @ 2014-05-05 20:21 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #27 from Adrian Cheater <adrian.cheater at gmail dot com> ---
Thanks Gary, I'm reading through it now and trying to hand parse the crashing
strings to see what they should be, and then see if I can figure out where the
parser is dying.

On that note however, since the spec is a BNF grammar. Is there a reason the
demangler isn't implemented in GNU Bison or something? I saw a reference that a
YACC based system used to be part of GCC, but was dropped (for what I assume
are very good reasons). Should I assume that a Bison based demangler would not
be accepted (though I suppose I could use it as a reference implementation).

This definitely seems like a bug in the substitution part of the spec, though I
haven't determined if the bug is in the DC compiler, or the printer callback.
Might be related to templates within templates.

http://mentorembedded.github.io/cxx-abi/abi.html#mangle.substitution

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (29 preceding siblings ...)
  2014-05-05 20:21 ` adrian.cheater at gmail dot com
@ 2014-05-07  8:55 ` gbenson at redhat dot com
  2014-05-07  9:14 ` gbenson at redhat dot com
                   ` (6 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2014-05-07  8:55 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #28 from Gary Benson <gbenson at redhat dot com> ---
The fix that caused the new crashes (linked in comment 14) alters how
substitution is performed, so yeah, it seems likely that the bug is related to
substitution somehow.  That patch is definitely a place to start looking.  FWIW
I'm trying to fix this too, but two minds working on it is definitely better
than one :)  Here's a summary I sent in a private mail to one of the libiberty
guys:

> The original bug was that the symbol in
> https://sourceware.org/bugzilla/show_bug.cgi?id=14963#c3
> would crash the demangler.  I made a fix for this which is now
> upstream in GCC libiberty, but that fix seems to be causing
> the demangler to crash on other symbols, specifically
> https://sourceware.org/bugzilla/show_bug.cgi?id=14963#c16,
> https://sourceware.org/bugzilla/show_bug.cgi?id=14963#c18 and
> https://sourceware.org/bugzilla/show_bug.cgi?id=16752#c1.
>
> The original crash is something to do with how references to template
> parameters are handled within substitutions.  The actual design of the
> demangler seems to contain a conflict (as I understand it) between:
>
>   1) Templates are stored on a stack as the tree is walked.  When a
>      template is referenced it is pulled off this stack.
>
>   2) Substitutions are expanded *before* the tree is walked.
>
> The way substitutions are implemented means that the same nodes
> (specifically, the same struct dc_component instances) appear
> multiple times in the parsed tree.  The point in the tree that
> was the "original" will have the correct template stack.  The
> others, the nodes that came from substitutions, may not have
> the correct stack.
>
> The fix I made (that is now in GCC libiberty) was to store the
> template stack the first time a reference is encountered, and to
> restore them temporarily on subsequent encounters.   This allows
> the original symbol to be demangled but I have no idea if the
> result is correct.  I tried to work it out manually but I got lost
> and in any event I couldn't tell if I was interpreting the spec
> correctly.
>
> My gut feeling is that the original fix is wrong and should be
> backed out, but I don't feel able to propose this on the GCC list
> on that basis.  I'm basically out of my depth here!

WRT Bison, I don't know the history here.  Maybe this would be a good question
for gdb@sourceware.org, or maybe one of the GCC lists.  It's a pain that
libiberty doesn't have its own list somewhere!  Note that because of the way it
is included in parts of GCC the demangler can never allocate heap, so no calls
to malloc, etc.  It's possible this is why the demangler is written like this
rather than using a parser generator.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (30 preceding siblings ...)
  2014-05-07  8:55 ` gbenson at redhat dot com
@ 2014-05-07  9:14 ` gbenson at redhat dot com
  2014-05-07  9:16 ` gbenson at redhat dot com
                   ` (5 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2014-05-07  9:14 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #29 from Gary Benson <gbenson at redhat dot com> ---
FWIW I have a fix that works for everything but the symbol in comment 16.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (31 preceding siblings ...)
  2014-05-07  9:14 ` gbenson at redhat dot com
@ 2014-05-07  9:16 ` gbenson at redhat dot com
  2014-05-07 15:44 ` gbenson at redhat dot com
                   ` (4 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2014-05-07  9:16 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #30 from Gary Benson <gbenson at redhat dot com> ---
Sorry, sent too soon...
I have a fix that works for everything but the symbol in comment 16
BUT
it changes the demangled result.

So, Adrian, if you manage to hand-parse even one of the demangled symbols, that
would be really useful :)  I tried, but I don't know C++ well enough...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (32 preceding siblings ...)
  2014-05-07  9:16 ` gbenson at redhat dot com
@ 2014-05-07 15:44 ` gbenson at redhat dot com
  2014-05-08  9:15 ` gbenson at redhat dot com
                   ` (3 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2014-05-07 15:44 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #31 from Gary Benson <gbenson at redhat dot com> ---
Patch mailed:
http://gcc.gnu.org/ml/gcc-patches/2014-05/msg00404.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (33 preceding siblings ...)
  2014-05-07 15:44 ` gbenson at redhat dot com
@ 2014-05-08  9:15 ` gbenson at redhat dot com
  2014-08-20 22:50 ` mingw.android at gmail dot com
                   ` (2 subsequent siblings)
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2014-05-08  9:15 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

Gary Benson <gbenson at redhat dot com> changed:

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

--- Comment #32 from Gary Benson <gbenson at redhat dot com> ---
Fix committed to GCC SVN:
http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=210205

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (34 preceding siblings ...)
  2014-05-08  9:15 ` gbenson at redhat dot com
@ 2014-08-20 22:50 ` mingw.android at gmail dot com
  2014-08-27  9:09 ` gbenson at redhat dot com
  2014-08-27  9:09 ` gbenson at redhat dot com
  37 siblings, 0 replies; 39+ messages in thread
From: mingw.android at gmail dot com @ 2014-08-20 22:50 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

Ray Donnelly <mingw.android at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |mingw.android at gmail dot com
               Host|                            |x86_64-w64-mingw32
            Version|7.5                         |7.8
         Resolution|FIXED                       |---
   Target Milestone|7.7                         |---

--- Comment #33 from Ray Donnelly <mingw.android at gmail dot com> ---
I ran into the a similar
infinite-loop-with-segfault-when-stack-is-all-chewed-up today on MSYS2 when gdb
attempted to demangle:

_ZN5Utils9transformIPN15ProjectExplorer13BuildStepListEZNKS1_18BuildConfiguration14knownStepListsEvEUlS3_E_EE5QListIDTclfp0_cvT__EEEERKS6_IS7_ET0_

Here's the callstack:

#51406 0x00000000007ff38f in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d178)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5115
#51407 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d178)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51408 0x00000000007ff963 in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d190)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5276
#51409 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d190)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51410 0x00000000007fdceb in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d0e8)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:4537
#51411 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d0e8)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51412 0x0000000000800735 in d_print_cast (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d100)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5754
#51413 0x00000000007fefe3 in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d130)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5046
#51414 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d130)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51415 0x00000000007febcf in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d148)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:4950
#51416 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d148)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51417 0x00000000007fd187 in d_print_subexpr (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d148)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:4228
#51418 0x00000000007ff38f in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d178)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5115
#51419 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d178)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51420 0x00000000007ff963 in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d190)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5276
#51421 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d190)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51422 0x00000000007fdceb in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d0e8)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:4537
#51423 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d0e8)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51424 0x0000000000800735 in d_print_cast (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d100)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5754
#51425 0x00000000007fefe3 in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d130)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5046
#51426 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d130)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51427 0x00000000007febcf in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d148)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:4950
#51428 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d148)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51429 0x00000000007fd187 in d_print_subexpr (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d148)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:4228
#51430 0x00000000007ff38f in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d178)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5115
#51431 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d178)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51432 0x00000000007ff963 in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d190)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5276
#51433 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d190)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51434 0x00000000007febcf in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d1a8)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:4950
#51435 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d1a8)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51436 0x00000000007fdbcc in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d1c0)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:4501
#51437 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d1c0)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51438 0x00000000007fe766 in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d280)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:4820
#51439 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d280)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51440 0x00000000007fd9bd in d_print_comp_inner (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d298)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:4442
#51441 0x00000000007ffccf in d_print_comp (dpi=0x2e9c7f0, options=259,
    dc=0x2e9d298)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5368
#51442 0x00000000007fce21 in cplus_demangle_print_callback (options=259,
    dc=0x2e9d298, callback=0x7fc7ef <d_growable_string_callback_adapter>,
    opaque=0x2e9eb20)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:4071
#51443 0x0000000000800c45 in d_demangle_callback (
    mangled=0x3ac6ae5c
"_ZN5Utils9transformIPN15ProjectExplorer13BuildStepListEZNKS1_18BuildConfiguration14knownStepListsEvEUlS3_E_EE5QListIDTclfp0_cvT__EEEERKS6_IS7_ET0_",
options=259,
    callback=0x7fc7ef <d_growable_string_callback_adapter>, opaque=0x2e9eb20)
    at E:/m2/repo/mingw-w64-gdb/src/gdb-7.8/libiberty/cp-demangle.c:5898

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (35 preceding siblings ...)
  2014-08-20 22:50 ` mingw.android at gmail dot com
@ 2014-08-27  9:09 ` gbenson at redhat dot com
  2014-08-27  9:09 ` gbenson at redhat dot com
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2014-08-27  9:09 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

--- Comment #35 from Gary Benson <gbenson at redhat dot com> ---
Please nobody reopen this bug again: 

 * If you have a demangler crash and you know the symbol, please file in GCC 
   bugzilla like this: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62279

 * If you have a demangler crash and you don't know the symbol, please file
   a new bug here and I will triage it.

Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/14963] segfault on startup
  2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
                   ` (36 preceding siblings ...)
  2014-08-27  9:09 ` gbenson at redhat dot com
@ 2014-08-27  9:09 ` gbenson at redhat dot com
  37 siblings, 0 replies; 39+ messages in thread
From: gbenson at redhat dot com @ 2014-08-27  9:09 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=14963

Gary Benson <gbenson at redhat dot com> changed:

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

--- Comment #34 from Gary Benson <gbenson at redhat dot com> ---
Ray, I filed your issue as:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62279
Please Cc yourself there if you want to track it.

I'm closing this bug, the original issue it related to is fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-08-27  9:09 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-16  2:28 [Bug gdb/14963] New: gdb 7.5 segfault on startup mrsam@courier-mta.com
2012-12-16  2:42 ` [Bug gdb/14963] " tromey at redhat dot com
2012-12-16  2:48 ` mrsam@courier-mta.com
2012-12-17 15:05 ` tromey at redhat dot com
2013-01-04 21:55 ` pinskia at gcc dot gnu.org
2013-08-30 12:25 ` gbenson at redhat dot com
2013-09-03  9:39 ` gbenson at redhat dot com
2013-09-03  9:45 ` gbenson at redhat dot com
2013-09-04 14:33 ` gbenson at redhat dot com
2013-09-05  0:35 ` [Bug gdb/14963] " palves at redhat dot com
2013-09-10 12:37 ` gbenson at redhat dot com
2013-09-11 12:24 ` gbenson at redhat dot com
2013-11-04 16:28 ` gbenson at redhat dot com
2013-11-08 21:45 ` gbenson at redhat dot com
2013-12-06 15:32 ` jakub at redhat dot com
2013-12-12 10:37 ` gbenson at redhat dot com
2014-01-06 14:31 ` gbenson at redhat dot com
2014-02-18 20:51 ` tromey at redhat dot com
2014-02-23 19:08 ` jeremy at jeremyms dot com
2014-03-19 10:30 ` gbenson at redhat dot com
2014-03-24 18:53 ` nknize@t-sciences.com
2014-03-24 19:55 ` gbenson at redhat dot com
2014-03-25  9:57 ` palves at redhat dot com
2014-03-26 11:32 ` gbenson at redhat dot com
2014-03-26 11:33 ` gbenson at redhat dot com
2014-03-26 14:16 ` gbenson at redhat dot com
2014-03-28 21:12 ` keiths at redhat dot com
2014-05-01 17:56 ` adrian.cheater at gmail dot com
2014-05-01 17:59 ` adrian.cheater at gmail dot com
2014-05-02  8:30 ` gbenson at redhat dot com
2014-05-05 20:21 ` adrian.cheater at gmail dot com
2014-05-07  8:55 ` gbenson at redhat dot com
2014-05-07  9:14 ` gbenson at redhat dot com
2014-05-07  9:16 ` gbenson at redhat dot com
2014-05-07 15:44 ` gbenson at redhat dot com
2014-05-08  9:15 ` gbenson at redhat dot com
2014-08-20 22:50 ` mingw.android at gmail dot com
2014-08-27  9:09 ` gbenson at redhat dot com
2014-08-27  9:09 ` gbenson 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).