[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: alexandru.dascalu94 at gmail dot com
Subject: [Bug gold/23607] New: gold linker --threads --thread-count,2 causes ld segmentation fault
Date: Wed, 05 Sep 2018 15:26:46 +0000


            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
compilation terminated.  

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

Test case here:

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

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]