[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/17538] New: --threads options cause random crashes with gcc 4.
From: |
dushistov at mail dot ru |
Subject: |
[Bug gold/17538] New: --threads options cause random crashes with gcc 4.9.2 |
Date: |
Mon, 03 Nov 2014 20:28:34 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=17538
Bug ID: 17538
Summary: --threads options cause random crashes with gcc 4.9.2
Product: binutils
Version: 2.24
Status: NEW
Severity: critical
Priority: P2
Component: gold
Assignee: ccoutant at google dot com
Reporter: dushistov at mail dot ru
CC: ian at airs dot com
With such simple program:
$ cat /tmp/test2.cpp
#include <cstdio>
#include <vector>
int main()
{
std::vector<int> v = {1, 2};
for (auto a : v)
printf("%d\n", a);
return 0;
}
I get:
for i in `seq 1 10`; do g++ -std=c++11 -fuse-ld=gold -Xlinker --threads
test2.cpp; done
collect2: error: ld terminated with signal 11 [Segmentation fault]
*** Error in
`/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../x86_64-pc-linux-gnu/bin/ld.gold':
double free or corruption (fasttop): 0x00007fa66c000d10 ***
collect2: error: ld terminated with signal 11 [Segmentation fault]
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../x86_64-pc-linux-gnu/bin/ld.gold:
fatal error: /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/crtend.o: file too short
collect2: error: ld returned 1 exit status
collect2: error: ld terminated with signal 11 [Segmentation fault]
collect2: error: ld terminated with signal 11 [Segmentation fault]
*** Error in
`/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../x86_64-pc-linux-gnu/bin/ld.gold':
double free or corruption (fasttop): 0x0000000000a50df0 ***
out of memory allocating 47278999994368 bytes after a total of
18446604027574911016 bytes
collect2: error: ld returned 1 exit status
collect2: error: ld terminated with signal 11 [Segmentation fault]
While with gcc 4.8.3 all works fine:
$ for i in `seq 1 10`; do g++ -std=c++11 -fuse-ld=gold -Xlinker --threads
test2.cpp; done
$
PS
I also create gcc bug(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63726), but
they said that this is binutils bug.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/17538] New: --threads options cause random crashes with gcc 4.9.2,
dushistov at mail dot ru <=