|Subject:||Infinite recursion in binutils 2.27 (ld, gdb, c++filt)|
|Date:||Thu, 29 Sep 2016 15:20:49 +0000|
We are hitting an infinite recursion in "ld", eventually leading to a stackoverflow and segfault, when using the --version-script option with a C++ symbol (which "forces" ld to demangle symbols).
This bug also affects our versions of c++filt and gdb.
$ /opt/imc/gcc-6.2.0/bin/g++ -fPIC -std=c++14 -O3 -ggdb -o main.cpp.o -c main.cpp
$ c++filt _ZSt7forwardIRP22XxxxxxxxXxxxxxxXxxxxxxI28XxxxxxxxXxxxXxxxXxxxXxxxxxxxZN3TBQ26XxxxxxxxXxxxXxxxXxxxxxxxxxINS2_14TBQXxxxXxxxxxxINS2_8TBQXxxxxINS2_12XxXxxXxxxxxxINS2_15XxxxxxxxXxxxxxxEEEEEEENS2_10TBQXxxxxxxEE5xxxxxEvEUlRT_RT0_PT1_E_Z28xxxxxxXxxxxxxxXxxxxxxXxxxxxxIS1_SJ_ESt10unique_ptrI31XxxxxxxxXxxxxxxXxxxxxxXxxxxxxxxISD_ESt14default_deleteISN_EESF_EUlR5XxxxxE_ZSK_IS1_SJ_ESQ_SF_EUlvE0_EEOSD_RNSt16remove_referenceISD_E4typeE
$ cat /etc/centos-release
$ /opt/imc/gcc-6.2.0/bin/g++ --version
$ c++filt --version
$ /opt/imc/gcc-6.2.0/bin/ld --version
$ gdb --version
However the symbol reported in this one does crash c++filt (although not ld):
IMC financial markets | Strawinskylaan 377, WTC D-tower, 1077 XX Amsterdam | www.imc.com
P +31 (0)20 798 8601 | E address@hidden
The information in this e-mail is intended only for the person or entity to which it is addressed.
It may contain confidential and /or privileged material. If someone other than the intended recipient should receive this e-mail, he / she shall not be entitled to read, disseminate, disclose or duplicate it.
If you receive this e-mail unintentionally, please inform us immediately by "reply" and then delete it from your system. Although this information has been compiled with great care, neither IMC Financial Markets & Asset Management nor any of its related entities shall accept any responsibility for any errors, omissions or other inaccuracies in this information or for the consequences thereof, nor shall it be bound in any way by the contents of this e-mail or its attachments. In the event of incomplete or incorrect transmission, please return the e-mail to the sender and permanently delete this message and any attachments.
Messages and attachments are scanned for all known viruses. Always scan attachments before opening them.
|[Prev in Thread]||Current Thread||[Next in Thread]|