https://sourceware.org/bugzilla/show_bug.cgi?id=23607
--- Comment #6 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.