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