https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99935
--- Comment #1 from Nick Clifton <nickc at gcc dot gnu.org> --- Created attachment 50777 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50777&action=edit Proposed patch Here is a possible patch for the problem, adding a recursion limit to the demangle_path() function. Note - a variation of this bug appears to have been reported on the Ubuntu mailing lists with a different reproducer: https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1925348