bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/14262] New: icf corrupts unwind info and makes exception throw


From: vincenzo.innocente at cern dot ch
Subject: [Bug gold/14262] New: icf corrupts unwind info and makes exception throwing to abort
Date: Mon, 18 Jun 2012 12:37:20 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=14262

             Bug #: 14262
           Summary: icf corrupts unwind info and makes exception throwing
                    to abort
           Product: binutils
           Version: 2.22
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: address@hidden
        ReportedBy: address@hidden
                CC: address@hidden
    Classification: Unclassified


This is a crosspost from gcc http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43581
please refer to the code in first comment there

on fedora17
c++ -Wl,-v -g -fno-omit-frame-pointer -pthread -O2 lib.cpp -flto
-ffunction-sections -fPIC -fvisibility-inlines-hidden -shared -Wl,-rpath ./ -o
liblib.so -Wl,-E  -Wl,--icf=all
c++ -g -fno-omit-frame-pointer -pthread -O2 main.cpp  -flto -ffunction-sections
-fPIC -fvisibility-inlines-hidden  -Wl,-rpath ./ -Wl,-E  -Wl,--icf=all -L ./
-llib
gdb ./a.out




(gdb) run
Starting program: /home/innocent/ctest/bugs48/ex43581/a.out 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGABRT, Aborted.
0x0000003a45635965 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.15-37.fc17.x86_64
libgcc-4.7.0-5.fc17.x86_64 libstdc++-4.7.0-5.fc17.x86_64
(gdb) where
#0  0x0000003a45635965 in raise () from /lib64/libc.so.6
#1  0x0000003a45637118 in abort () from /lib64/libc.so.6
#2  0x0000003a49a101f0 in ?? () from /lib64/libgcc_s.so.1
#3  0x0000003a49a115c1 in ?? () from /lib64/libgcc_s.so.1
#4  0x0000003a4572cf46 in dl_iterate_phdr () from /lib64/libc.so.6
#5  0x0000003a49a11ad2 in _Unwind_Find_FDE () from /lib64/libgcc_s.so.1
#6  0x0000003a49a0efeb in ?? () from /lib64/libgcc_s.so.1
#7  0x0000003a49a0fafb in _Unwind_RaiseException () from /lib64/libgcc_s.so.1
#8  0x0000003a52e5ef41 in __cxa_throw () from /lib64/libstdc++.so.6
#9  0x00007ffff7ffb25a in libbar () at lib.cpp:6
#10 0x00007fffffffe3e8 in ?? ()
#11 0x00000000004030c8 in ?? ()
#12 0x0000003a459b1f40 in ?? () from /lib64/libc.so.6
#13 0x0000000000000000 in ?? ()
(gdb) q
A debugging session is active.

    Inferior 1 [process 6370] will be killed.

Quit anyway? (y or n) y
address@hidden ex43581]$ c++ -v
Using built-in specs.
COLLECT_GCC=/bin/c++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.7.0/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --disable-build-with-cxx
--disable-build-poststage1-with-cxx --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-linker-hash-style=gnu
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin
--enable-initfini-array --enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.7.0 20120507 (Red Hat 4.7.0-5) (GCC) 
address@hidden ex43581]$ ld -vc
GNU gold (version 2.22.52.0.1-10.fc17 20120131) 1.11

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]