From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26931 invoked by alias); 10 Feb 2011 17:42:07 -0000 Received: (qmail 26922 invoked by uid 22791); 10 Feb 2011 17:42:06 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 Feb 2011 17:42:00 +0000 From: "mh+gcc at glandium dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/45375] [meta-bug] Issues with building Mozilla with LTO X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: mh+gcc at glandium dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 10 Feb 2011 17:43:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-02/txt/msg01341.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45375 --- Comment #43 from Mike Hommey 2011-02-10 17:41:53 UTC --- (In reply to comment #42) > (In reply to comment #41) > > > > Segfaults or aborts ? > > Segfaults: > > === > === If you get failures below, please file a bug describing the error > === and your environment (compiler and linker versions), and use > === --disable-elf-hack until this is fixed. > === > /home/mjambor/mozilla/mc2/objdir-ff-release/build/unix/elfhack/elfhack -b > test.so > test.so: Reduced by 12128 bytes > # Fail if the backup file doesn't exist > [ -f "test.so.bak" ] > # Fail if the new library doesn't contain less relocations > [ $(objdump -R test.so.bak | wc -l) -gt $(objdump -R test.so | wc -l) ] > /home/mjambor/gcc/icln/inst/bin/gcc -o dummy dummy.o test.so > # Will either crash or return exit code 1 if elfhack is broken > LD_LIBRARY_PATH=/home/mjambor/mozilla/mc2/objdir-ff-release/build/unix/elfhack > /home/mjambor/mozilla/mc2/objdir-ff-release/build/unix/elfhack/dummy > make[6]: *** [libs] Segmentation fault > make[6]: Leaving directory > `/home/mjambor/mozilla/mc2/objdir-ff-release/build/unix/elfhack' > > ...and very early on it seems: > > (gdb) bt > #0 0x00007ffff7ff7040 in frame_dummy () > from /home/mjambor/mozilla/mc2/objdir-ff-release/build/unix/elfhack/test.so > #1 0x00007ffff7ff6f5e in _init () from > /home/mjambor/mozilla/mc2/objdir-ff-release/build/unix/elfhack/test.so > #2 0x00007ffff7ffa710 in ?? () > #3 0x00007ffff7debe18 in call_init () from /lib64/ld-linux-x86-64.so.2 > #4 0x00007ffff7debf47 in _dl_init_internal () from /lib64/ld-linux-x86-64.so.2 > #5 0x00007ffff7ddeb3a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2 Ah, so this is a crash of the test, not of elfhack. Could you attach both test.so and test.so.bak files ?