Bug 61460 - Demangler crash (GDB PR 17043)
Summary: Demangler crash (GDB PR 17043)
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: demangler (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks: 72822
  Show dependency treegraph
 
Reported: 2014-06-10 08:02 UTC by Gary Benson
Modified: 2016-12-18 22:35 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Benson 2014-06-10 08:02:26 UTC
The demangler crashes when given this symbol:

_ZNK6clover6detail11basic_rangeINS_13adaptor_rangeINS_9addressesEINS2_IRFRNS_5eventEP9_cl_eventEINS_14iterator_rangeIPKS7_EEEEEEEENS0_16iterator_adaptorIS3_INSG_IS9_ISC_EEEEEESI_EcvT_ISt6vectorIPS4_SaISN_EEvEEv

See https://sourceware.org/bugzilla/show_bug.cgi?id=17043
Comment 1 Stephan Bergmann 2016-08-23 13:43:43 UTC
Experienced a similar c++filt SIGSEV (due to recursive stack overflow) now with the symbol

_ZNK6clover6detail11basic_rangeINS_13adaptor_rangeIZNS_6kernel6launchERNS_13command_queueERKSt6vectorImSaImEESA_SA_EUlmE_JRS8_EEENS0_16iterator_adaptorISB_JN9__gnu_cxx17__normal_iteratorIPmS8_EEEEESJ_EcvT_IS6_IPjSaISN_EEvEEv

(also while debugging a process involving libMesaOpenCL; on Fedora 24).  Bug 70909 presumably discusses the root cause of these crashes.
Comment 2 Mark Wielaard 2016-11-19 12:25:08 UTC
Both symbols still crash the unwinder with current libiberty (gcc svn r242587).
Comment 3 Mark Wielaard 2016-12-04 23:29:24 UTC
The patch proposed in bug #70909 does prevent the infinite recursiong crashing the demangler. But it doesn't demangle the symbol (just rejects it).