[Bug gold/23607] New: gold linker --threads --thread-count,2 causes ld segmentation fault

2018-09-05 Thread alexandru.dascalu94 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23607

Bug ID: 23607
   Summary: gold linker --threads --thread-count,2 causes ld
segmentation fault
   Product: binutils
   Version: 2.31
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gold
  Assignee: ccoutant at gmail dot com
  Reporter: alexandru.dascalu94 at gmail dot com
CC: ian at airs dot com
  Target Milestone: ---

The gold linker segfault at linking if it uses multiple threads.

The scenario:
  1. I have multiple source files which are compiled with gcc 8.2 with some
optimization flags
  2. I use cmake to generate the makefile.
  3. The linker crashes with segfault:  

```  
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core
dumped
compilation terminated.  
```  

  I have obtained the crash on centos 7.5, ubuntu and debian 9.5.



Test case here:
 https://github.com/alexandrudsc/gold-linker-threads-segfault  

There is a docker file, based on which you can re-create the environment I
used. 

For a simple test just run
```
bash build-docker-image.sh 
```  
this will create the docker image, it compile the code and will try to link.  


But you can start your own container if you want to run this multiple times.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/23607] gold linker --threads --thread-count,2 causes ld segmentation fault

2018-09-05 Thread alexandru.dascalu94 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23607

--- Comment #1 from Alexandru Dascalu  ---
I forgot to mention that on centos and ubuntu I have compiled binutils from
sources.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/23607] gold linker --threads --thread-count,2 causes ld segmentation fault

2019-03-01 Thread alexandru.dascalu94 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23607

--- Comment #2 from Alexandru Dascalu  ---
Hi guys, I have reproduced the same bug using gold linker from binutils 2.32. I
don't know if there are any news on this, but this is a gentle reminder

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils