From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15120 invoked by alias); 4 Jan 2013 23:58:22 -0000 Received: (qmail 14750 invoked by uid 48); 4 Jan 2013 23:57:56 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/55792] Bad memory access with profiledbootstrap and LTO Date: Fri, 04 Jan 2013 23:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com 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 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: 2013-01/txt/msg00354.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55792 --- Comment #4 from H.J. Lu 2013-01-04 23:57:55 UTC --- Created attachment 29085 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29085 A patch to move lto_global_var_decls to lto/lto.c With this patch, I got lto1: internal compiler error: Segmentation fault 0x997fc5 crash_signal /export/gnu/import/git/gcc/gcc/toplev.c:334 0x545095 ggc_get_size(void const*) /export/gnu/import/git/gcc/gcc/ggc-page.c:1531 0x7453cf ggc_realloc_stat(void*, unsigned long) /export/gnu/import/git/gcc/gcc/ggc-common.c:199 0x52b01a void va_gc::reserve(vec*&, unsigned int, bool) /export/gnu/import/git/gcc/gcc/vec.h:379 0x52ae82 bool vec_safe_reserve(vec*&, unsigned int, bool) /export/gnu/import/git/gcc/gcc/vec.h:657 0x53c953 tree_node** vec_safe_push(vec*&, tree_node* const&) /export/gnu/import/git/gcc/gcc/vec.h:749 0x53bee2 lto_main() /export/gnu/import/git/gcc/gcc/lto/lto.c:3407 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. make[5]: *** [/tmp/cci2rOkJ.ltrans0.ltrans.o] Error 1 lto-wrapper: make returned 2 exit status /usr/local/x86_64-unknown-linux-gnu/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status make[4]: *** [build/genhooks] Error 1 make[4]: *** Waiting for unfinished jobs.... rm cpp.pod gfdl.pod gcov.pod gfortran.pod gcc.pod fsf-funding.pod make[4]: Leaving directory `/export/build/gnu/gcc-lto/build-x86_64-linux/gcc' make[3]: *** [all-stage2-gcc] Error 2 make[3]: Leaving directory `/export/build/gnu/gcc-lto/build-x86_64-linux' make[2]: *** [stage2-bubble] Error 2 make[2]: Leaving directory `/export/build/gnu/gcc-lto/build-x86_64-linux' make[1]: *** [bootstrap] Error 2 make[1]: Leaving directory `/export/build/gnu/gcc-lto/build-x86_64-linux'