Bug 23045 - Ice in demangler
Summary: Ice in demangler
Status: RESOLVED MOVED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.31
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-11 11:20 UTC by fiesh
Modified: 2018-04-12 10:55 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fiesh 2018-04-11 11:20:39 UTC
The following leads to cxxfilt running with 100% CPU indefinitely:

/tmp/binutils-gdb/binutils (master✗) % echo '_ZN9QtPrivate18QFunctorSlotObjectIZN9MainOwner20setupCommandLineModeEvEUlT_E_Li1ENS_4ListIJN5boost6fusion3mapIJNS6_4pairIN3row12ManufacturerESt10shared_ptrIKSt6vectorISA_SaISA_EEEEENS8_INS9_8MaterialESB_IKSC_ISI_SaISI_EEEEENS8_INS9_12UserMaterialESB_IKSC_ISO_SaISO_EEEEENS8_INS9_13UpperDieGroupESB_IKSC_ISU_SaISU_EEEEENS8_INS9_13LowerDieGroupESB_IKSC_IS10_SaIS10_EEEEENS8_INS9_16AirBendDeductionESB_IKSC_IS16_SaIS16_EEEEENS8_INS9_8UpperDieESB_IKSC_IS1C_SaIS1C_EEEEENS8_INS9_8LowerDieESB_IKSC_IS1I_SaIS1I_EEEEENS8_INS9_12UpperDieUnitESB_IKSC_IS1O_SaIS1O_EEEEENS8_INS9_12LowerDieUnitESB_IKSC_IS1U_SaIS1U_EEEEENS8_INS9_16LaserCuttingTypeESB_IKSC_IS20_SaIS20_EEEEENS8_INS9_22LaserCuttingTechnologyESB_IKSC_IS26_SaIS26_EEEEENS8_INS9_8WorkStepESB_IKSC_IS2C_SaIS2C_EEEEENS8_INS9_14CalcPriceBlockESB_IKSC_IS2I_SaIS2I_EEEEENS8_INS9_19CalcSheetMetalPriceESB_IKSC_IS2O_SaIS2O_EEEEENS8_INS9_26CalcLaserCuttingTechnologyESB_IKSC_IS2U_SaIS2U_EEEEENS8_INS9_16CalcAirBendTimesESB_IKSC_IS30_SaIS30_EEEEENS8_INS9_19CalcWorkStepPricingESB_IKSC_IS36_SaIS36_EEEEENS8_INS9_19UserDefinedWorkStepESB_IKSC_IS3C_SaIS3C_EEEEENS8_INS9_14CalcSurchargesESB_IKSC_IS3I_SaIS3I_EEEEENS8_INS9_15UserContactDataESB_IKSC_IS3O_SaIS3O_EEEEENS8_INS9_15TermsOfDeliveryESB_IKSC_IS3U_SaIS3U_EEEEENS8_INS9_14TermsOfPaymentESB_IKSC_IS40_SaIS40_EEEEENS8_INS9_8CustomerESB_IKSC_IS46_SaIS46_EEEEENS8_INS9_21CustomerContactPersonESB_IKSC_IS4C_SaIS4C_EEEEENS8_INS9_15CustomerAddressESB_IKSC_IS4I_SaIS4I_EEEEENS8_INS9_12SupplierTypeESB_IKSC_IS4O_SaIS4O_EEEEENS8_INS9_8SupplierESB_IKSC_IS4U_SaIS4U_EEEEENS8_INS9_21SupplierContactPersonESB_IKSC_IS50_SaIS50_EEEEENS8_INS9_15SupplierAddressESB_IKSC_IS56_SaIS56_EEEEENS8_INS9_20CalcLaserCuttingTypeESB_IKSC_IS5C_SaIS5C_EEEEENS8_INS9_22CalcCustomerPriceBlockESB_IKSC_IS5I_SaIS5I_EEEEENS8_INS9_29CommonConstraintsSheetCuttingESB_IKSC_IS5O_SaIS5O_EEEEENS8_INS9_31SpecificConstraintsSheetCuttingESB_IKSC_IS5U_SaIS5U_EEEEEEEEEEEvE4implEiPNS_15QSlotObjectBaseEP7QObjectPPvPb' | ./cxxfilt
Comment 1 Nick Clifton 2018-04-12 10:38:31 UTC
Hi Fiesh,

  Thanks for reporting this problem.  Unfortunately the bug is actually
  in the C++ demangling functions which are part of the libiberty library.
  Libiberty is part of the GCC project, it just happens to be used by the
  binutils project, so it is not maintained by us.

  Please could you refile this bug report on the gcc bugzilla system here:

https://gcc.gnu.org/bugzilla/enter_bug.cgi?product=gcc

  Thanks very much.

Cheers
  Nick
Comment 2 fiesh 2018-04-12 10:55:50 UTC
Oh, I didn't know it should be reported with GCC!

I reported it here:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85373

Thank you for your response!