public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/44724] LTO segfault with -fuse-linker-plugin Date: Thu, 01 Jul 2010 11:41:00 -0000 [thread overview] Message-ID: <20100701114054.17102.qmail@sourceware.org> (raw) In-Reply-To: <bug-44724-19380@http.gcc.gnu.org/bugzilla/> ------- Comment #6 from rguenth at gcc dot gnu dot org 2010-07-01 11:40 ------- On trunk with the original testcase we fail with /abuild/rguenther/trunk-g/gcc> ./xgcc -B. -r -nostdlib -O -march=pentium4 -flto -fuse-linker-plugin sid.ii wave.ii -m32 -B ../lto-plugin/.libs lto1: out of memory allocating 8589934596 bytes after a total of 520192 bytes lto-wrapper: ./xgcc returned 1 exit status /usr/bin/gold: fatal error: lto-wrapper failed collect2: ld returned 1 exit status #4 0x00000000007bd6e1 in input_cgraph_1 (file_data=0x7ffff7ee2300, ib=0x166a340) at /space/rguenther/src/svn/trunk/gcc/lto-cgraph.c:1257 1257 char *str = (char *)xmalloc (len + 1); (gdb) l 1252 1253 /* Input toplevel asms. */ 1254 len = lto_input_uleb128 (ib); 1255 while (len) 1256 { 1257 char *str = (char *)xmalloc (len + 1); 1258 for (i = 0; i < len; ++i) 1259 str[i] = lto_input_1_unsigned (ib); 1260 cgraph_add_asm_node (build_string (len, str)); 1261 free (str); (gdb) p len $1 = 8589934595 so somehow the output cgraph is corrupt. Works fine without using the linker-plugin on trunk, too. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44724
next prev parent reply other threads:[~2010-07-01 11:41 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-06-30 12:23 [Bug lto/44724] New: LTO segfault moonshine at kapsi dot fi 2010-06-30 12:28 ` [Bug lto/44724] " moonshine at kapsi dot fi 2010-06-30 13:00 ` rguenth at gcc dot gnu dot org 2010-07-01 10:47 ` moonshine at kapsi dot fi 2010-07-01 11:18 ` moonshine at kapsi dot fi 2010-07-01 11:35 ` [Bug lto/44724] LTO segfault with -fuse-linker-plugin rguenth at gcc dot gnu dot org 2010-07-01 11:41 ` rguenth at gcc dot gnu dot org [this message] 2010-07-06 12:57 ` moonshine at kapsi dot fi
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100701114054.17102.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).