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

            Bug ID: 110130
           Summary: the rust demangling trap in long hangs , causing
                    binutils/nm hangs for a long time to be killed.
           Product: gcc
           Version: rust/master
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: demangler
          Assignee: unassigned at gcc dot gnu.org
          Reporter: swj22 at mails dot tsinghua.edu.cn
  Target Milestone: ---

Created attachment 55264
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55264&action=edit
the test case

## Write in front ,  i use afl to fuzz binutils2.40-nm-new , and then find this
bug. Then i file the bug file to binutils/bugzilla . The answer is:
"""
This is a problem demangling the rust symbol _RYODGYODGpe__RYODGpe.
"""
So , i report bug to here .


## command i used: nm-new -C file

this test case , may make nm-new hang for much time until the system kill it ,
i have test it in ubuntu20.04 (compiler test: gcc 7.4 and 9.5). 

it seems like a infinite loop  , i use gdb to debug it , it behaves like
infinite loop , but my level is to low , can not analyse the root cause , so i
report the bug here.

## the attachment is the test case
  • [Bug demangler/110130] New... swj22 at mails dot tsinghua.edu.cn via Gcc-bugs

Reply via email to