bug-binutils
[Top][All Lists]
Advanced

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

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


From: rijard.barnes at gmail dot com
Subject: [Bug gold/23607] gold linker --threads --thread-count,2 causes ld segmentation fault
Date: Wed, 03 Jun 2020 22:08:23 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23607

--- Comment #5 from Richard <rijard.barnes at gmail dot com> ---
I've made a repo with a Makefile that reproduces the bug here:
https://github.com/r-barnes/gold_segfault_reproducer

The program I'm trying to compile is a simple "Hello, World!".

The compilation string is:

clang main.c -flto -fuse-ld=gold -Wl,--threads -Wl,--thread-count,4 -v
--save-temps

I observe the segfault with both clang-8 and clang-10 using `GNU gold (GNU
Binutils for Ubuntu 2.34) 1.16` running on Lubuntu 20.04.

The segfault is intermittent: not every run will trigger the segfault.

Removing `-flto` seems to stop the segfault.

Using `-Wl,--thread-count,1` stops the segfault.

-- 
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]