* [Bug c++/16752] Crash when loading symbols
2014-03-25 13:36 [Bug c++/16752] New: Crash when loading symbols vbotton at gmail dot com
@ 2014-03-25 21:05 ` keiths at redhat dot com
2014-03-26 10:57 ` gbenson at redhat dot com
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: keiths at redhat dot com @ 2014-03-25 21:05 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16752
Keith Seitz <keiths at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |keiths at redhat dot com
--- Comment #1 from Keith Seitz <keiths at redhat dot com> ---
I chased this down a tiny bit...
While there is another outstanding bug wrt to symbol demangling in libiberty
(see c++/14963), this particular failure is actually caused by a different
patch:
commit 9548bbede51868a9a780d7d21ae16ac13e8bdf9b
Author: gary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Fri Oct 25 13:56:51 2013 +0000
libiberty/ 2013-10-25 Gary Benson <gbenson@redhat.com>
* cp-demangle.c (struct d_saved_scope): New structure.
(struct d_print_info): New fields saved_scopes and
num_saved_scopes.
(d_print_init): Initialize the above.
(d_print_free): New function.
(cplus_demangle_print_callback): Call the above.
(d_copy_templates): New function.
(d_print_comp): New variables saved_templates and
need_template_restore.
[DEMANGLE_COMPONENT_REFERENCE,
DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
time the component is traversed, and use the captured scope for
subsequent traversals.
* testsuite/demangle-expected: Add regression test.
The symbol which causes the crash is:
_ZNSt9_Any_data9_M_accessIPZN13ThreadManager7newTaskIRSt5_BindIFSt7_Mem_fnIM5DiaryFivEEPS5_EEIEEESt6futureINSt9result_ofIFT_DpT0_EE4typeEEOSF_DpOSG_EUlvE_EERSF_v
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/16752] Crash when loading symbols
2014-03-25 13:36 [Bug c++/16752] New: Crash when loading symbols vbotton at gmail dot com
2014-03-25 21:05 ` [Bug c++/16752] " keiths at redhat dot com
@ 2014-03-26 10:57 ` gbenson at redhat dot com
2014-03-26 14:16 ` gbenson at redhat dot com
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: gbenson at redhat dot com @ 2014-03-26 10:57 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16752
Gary Benson <gbenson at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gbenson at redhat dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/16752] Crash when loading symbols
2014-03-25 13:36 [Bug c++/16752] New: Crash when loading symbols vbotton at gmail dot com
2014-03-25 21:05 ` [Bug c++/16752] " keiths at redhat dot com
2014-03-26 10:57 ` gbenson at redhat dot com
@ 2014-03-26 14:16 ` gbenson at redhat dot com
2014-03-26 16:23 ` gbenson at redhat dot com
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ 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=16752
--- Comment #2 from Gary Benson <gbenson at redhat dot com> ---
It's highly likely this is a duplicate of bug 14963.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/16752] Crash when loading symbols
2014-03-25 13:36 [Bug c++/16752] New: Crash when loading symbols vbotton at gmail dot com
` (2 preceding siblings ...)
2014-03-26 14:16 ` gbenson at redhat dot com
@ 2014-03-26 16:23 ` gbenson at redhat dot com
2014-03-28 21:08 ` keiths at redhat dot com
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: gbenson at redhat dot com @ 2014-03-26 16:23 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16752
--- Comment #3 from Gary Benson <gbenson at redhat dot com> ---
To clarify, it's highly likely this is a duplicate of the reopened part of bug
14963 (from comment 16 onwards) in that this failure is likely to have the same
cause as the failures reorted there.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/16752] Crash when loading symbols
2014-03-25 13:36 [Bug c++/16752] New: Crash when loading symbols vbotton at gmail dot com
` (3 preceding siblings ...)
2014-03-26 16:23 ` gbenson at redhat dot com
@ 2014-03-28 21:08 ` keiths at redhat dot com
2014-04-15 21:45 ` keiths at redhat dot com
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: keiths at redhat dot com @ 2014-03-28 21:08 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16752
Keith Seitz <keiths at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jeremycong at gmail dot com
--- Comment #4 from Keith Seitz <keiths at redhat dot com> ---
*** Bug 16593 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/16752] Crash when loading symbols
2014-03-25 13:36 [Bug c++/16752] New: Crash when loading symbols vbotton at gmail dot com
` (4 preceding siblings ...)
2014-03-28 21:08 ` keiths at redhat dot com
@ 2014-04-15 21:45 ` keiths at redhat dot com
2014-04-19 12:19 ` jia.kai66 at gmail dot com
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: keiths at redhat dot com @ 2014-04-15 21:45 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16752
Keith Seitz <keiths at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |edub4rt at gmail dot com
--- Comment #5 from Keith Seitz <keiths at redhat dot com> ---
*** Bug 16845 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/16752] Crash when loading symbols
2014-03-25 13:36 [Bug c++/16752] New: Crash when loading symbols vbotton at gmail dot com
` (5 preceding siblings ...)
2014-04-15 21:45 ` keiths at redhat dot com
@ 2014-04-19 12:19 ` jia.kai66 at gmail dot com
2014-04-30 18:17 ` adrian.cheater at gmail dot com
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jia.kai66 at gmail dot com @ 2014-04-19 12:19 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16752
Kai Jia <jia.kai66 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jia.kai66 at gmail dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/16752] Crash when loading symbols
2014-03-25 13:36 [Bug c++/16752] New: Crash when loading symbols vbotton at gmail dot com
` (6 preceding siblings ...)
2014-04-19 12:19 ` jia.kai66 at gmail dot com
@ 2014-04-30 18:17 ` adrian.cheater at gmail dot com
2014-04-30 20:39 ` adrian.cheater at gmail dot com
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: adrian.cheater at gmail dot com @ 2014-04-30 18:17 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16752
Adrian Cheater <adrian.cheater at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |adrian.cheater at gmail dot com
--- Comment #6 from Adrian Cheater <adrian.cheater at gmail dot com> ---
Hi, I'm also having this problem.
In my case, I'm observing that the mangled string
"_ZNSt9_Any_data9_M_accessIPZN6cereal18polymorphic_detail15getInputBindingINS1_16JSONInputArchiveEEENS1_6detail15InputBindingMapIT_E11SerializersERS7_jEUlPvRSt10unique_ptrIvNS5_12EmptyDeleterIvEEEE0_EESA_v"
Seems to get stuck in an infinite loop, and after 6 flushes of the buffer to
the growable buffer, that buffer looks like this"
"cereal::detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal::detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal::detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal::detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal::detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal::detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal::detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal::detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal::detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal::detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal::detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
cereal::polymorphic_detail::getInputBinding<cerea"
I'm going to assume that there's a bug in the dc tree parser or walker? I'm
very new to this and I guess my next step is to read the ABI and see what the
correct demangling of that string should look like, that should give me some
idea of where to look for where it goes off the rails.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/16752] Crash when loading symbols
2014-03-25 13:36 [Bug c++/16752] New: Crash when loading symbols vbotton at gmail dot com
` (7 preceding siblings ...)
2014-04-30 18:17 ` adrian.cheater at gmail dot com
@ 2014-04-30 20:39 ` adrian.cheater at gmail dot com
2014-05-01 15:26 ` gbenson at redhat dot com
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: adrian.cheater at gmail dot com @ 2014-04-30 20:39 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16752
Adrian Cheater <adrian.cheater at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |UNCONFIRMED
Ever confirmed|1 |0
--- Comment #7 from Adrian Cheater <adrian.cheater at gmail dot com> ---
(In reply to Adrian Cheater from comment #6)
> Hi, I'm also having this problem.
>
> In my case, I'm observing that the mangled string
>
> "_ZNSt9_Any_data9_M_accessIPZN6cereal18polymorphic_detail15getInputBindingINS
> 1_16JSONInputArchiveEEENS1_6detail15InputBindingMapIT_E11SerializersERS7_jEUl
> PvRSt10unique_ptrIvNS5_12EmptyDeleterIvEEEE0_EESA_v"
>
> Seems to get stuck in an infinite loop, and after 6 flushes of the buffer to
> the growable buffer, that buffer looks like this"
>
> "cereal::detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
> cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal:
> :detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
> cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal:
> :detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
> cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal:
> :detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
> cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal:
> :detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
> cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal:
> :detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
> cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal:
> :detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
> cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal:
> :detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
> cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal:
> :detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
> cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal:
> :detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
> cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal:
> :detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
> cereal::polymorphic_detail::getInputBinding<cerea"
c++filt indicates that this should demangle to:
cereal::detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal::JSONInputArchive&,
unsigned int)::{lambda(void*, std::unique_ptr<void,
cereal::detail::EmptyDeleter<void> >&)#2}*&
std::_Any_data::_M_access<cereal::detail::InputBindingMap<cereal::JSONInputArchive>::Serializers
cereal::polymorphic_detail::getInputBinding<cereal::JSONInputArchive>(cereal::JSONInputArchive&,
unsigned int)::{lambda(void*, std::unique_ptr<void,
cereal::detail::EmptyDeleter<void> >&)#2}*>()
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/16752] Crash when loading symbols
2014-03-25 13:36 [Bug c++/16752] New: Crash when loading symbols vbotton at gmail dot com
` (8 preceding siblings ...)
2014-04-30 20:39 ` adrian.cheater at gmail dot com
@ 2014-05-01 15:26 ` gbenson at redhat dot com
2014-05-07 15:44 ` gbenson at redhat dot com
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: gbenson at redhat dot com @ 2014-05-01 15:26 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16752
--- Comment #8 from Gary Benson <gbenson at redhat dot com> ---
Adrian, it's likely the commit that "fixed" bug 14963 is what's causing this
segfault, so I'd check that first.
Also, be careful using c++filt as a reference, it uses the same code
(libiberty) as GDB, but it's statically linked so there can be version skew.
If one works and the other doesn't then that is the likely cause.
I also don't know if c++filt is even correct in how it demangles these symbols.
I had a fix that stopped the recursion (and hence the segfaults) but it also
changed the demangled results, and I don't know C++ or demangling nearly well
enough to say whether either demangled form is correct.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/16752] Crash when loading symbols
2014-03-25 13:36 [Bug c++/16752] New: Crash when loading symbols vbotton at gmail dot com
` (9 preceding siblings ...)
2014-05-01 15:26 ` gbenson at redhat dot com
@ 2014-05-07 15:44 ` gbenson at redhat dot com
2014-05-07 15:45 ` gbenson at redhat dot com
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ 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=16752
--- Comment #9 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] 15+ messages in thread
* [Bug c++/16752] Crash when loading symbols
2014-03-25 13:36 [Bug c++/16752] New: Crash when loading symbols vbotton at gmail dot com
` (10 preceding siblings ...)
2014-05-07 15:44 ` gbenson at redhat dot com
@ 2014-05-07 15:45 ` gbenson at redhat dot com
2014-05-07 15:45 ` gbenson at redhat dot com
2014-05-08 9:16 ` gbenson at redhat dot com
13 siblings, 0 replies; 15+ messages in thread
From: gbenson at redhat dot com @ 2014-05-07 15:45 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16752
Gary Benson <gbenson at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at sourceware dot org |gbenson at redhat dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/16752] Crash when loading symbols
2014-03-25 13:36 [Bug c++/16752] New: Crash when loading symbols vbotton at gmail dot com
` (11 preceding siblings ...)
2014-05-07 15:45 ` gbenson at redhat dot com
@ 2014-05-07 15:45 ` gbenson at redhat dot com
2014-05-08 9:16 ` gbenson at redhat dot com
13 siblings, 0 replies; 15+ messages in thread
From: gbenson at redhat dot com @ 2014-05-07 15:45 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16752
Gary Benson <gbenson at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2014-05-07
Ever confirmed|0 |1
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c++/16752] Crash when loading symbols
2014-03-25 13:36 [Bug c++/16752] New: Crash when loading symbols vbotton at gmail dot com
` (12 preceding siblings ...)
2014-05-07 15:45 ` gbenson at redhat dot com
@ 2014-05-08 9:16 ` gbenson at redhat dot com
13 siblings, 0 replies; 15+ messages in thread
From: gbenson at redhat dot com @ 2014-05-08 9:16 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16752
Gary Benson <gbenson at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #10 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] 15+ messages in thread