https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87335
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Cheng Wen from comment #5) > (In reply to Jonathan Wakely from comment #4) > > Are you sure you attached the right file? When I try to demangle the > > attachment it doesn't crash, the __cxa_demangle file returns -2, meaning the > > name is not valid. That seems like the right result. > > I have tried to reproduce this bug on different machines. > There are some questions to be confirmed. > > (1) Do you use the latest version of binutils(binutils-2.32/binutils-2.31)? > I downloaded the package from here. > https://www.gnu.org/software/binutils/ Built from the binutils-gdb git repo: $ /tmp/binutils/bin/c++filt -v GNU c++filt (GNU Binutils) 2.31.51.20180918 Copyright (C) 2018 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) any later version. This program has absolutely no warranty. > (2) Please confirm that you have used the option "-t". > The command should be "./c++filt -t < $POC" $ /tmp/binutils/bin/c++filt -t < POC-t | wc 0 1 26539 $ echo $? 0 > (3) Do you confirm this POC with address sanitizer? Yes it's linked to libasan $ ldd /tmp/binutils/bin/c++filt linux-vdso.so.1 (0x00007fff0618b000) libasan.so.4 => /lib64/libasan.so.4 (0x00007fc372241000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fc37203d000) libc.so.6 => /lib64/libc.so.6 (0x00007fc371c87000) librt.so.1 => /lib64/librt.so.1 (0x00007fc371a7f000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc371861000) libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fc3714d9000) libm.so.6 => /lib64/libm.so.6 (0x00007fc37118e000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fc370f77000) /lib64/ld-linux-x86-64.so.2 (0x00007fc3731f9000)