[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/29998] New: ld terminated with signal 11 [Segmentation fault] un
From: |
medhefgo at web dot de |
Subject: |
[Bug ld/29998] New: ld terminated with signal 11 [Segmentation fault] under mingw with LTO |
Date: |
Fri, 13 Jan 2023 14:25:08 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=29998
Bug ID: 29998
Summary: ld terminated with signal 11 [Segmentation fault]
under mingw with LTO
Product: binutils
Version: 2.39
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: medhefgo at web dot de
Target Milestone: ---
The following build steps will result in bfd crashing. This only seems to
happen with a mingw gcc toolchain and only if LTO is used. I can reproduce this
with mingw gcc 12 on arch and debian unstable. This does not happen with the
mingw gcc 10 from debian stable. This crash only happens with mingw, I was not
able to reproduce with a regular gcc targeting ELF.
$ cat test1.c
void test1(void) {
}
$ cat test2.c
void test1(void);
void test2(void) {
char a[4096];
test1();
}
$ rm -f libtest.a *.obj
lto="-flto=auto"
x86_64-w64-mingw32-gcc $lto -o test1.obj -c test1.c
x86_64-w64-mingw32-gcc $lto -o test2.obj -c test2.c
x86_64-w64-mingw32-gcc-ar csrDT libtest.a test1.obj
x86_64-w64-mingw32-gcc $lto -nostdlib -o test test2.obj libtest.a -lgcc
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core
dumped
compilation terminated.
$ x86_64-w64-mingw32-gcc --version
x86_64-w64-mingw32-gcc (GCC) 12-win32
$ x86_64-w64-mingw32-ld --version
GNU ld (GNU Binutils) 2.39.90.20230110
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/29998] New: ld terminated with signal 11 [Segmentation fault] under mingw with LTO,
medhefgo at web dot de <=
- [Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO, nickc at redhat dot com, 2023/01/14
- [Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO, medhefgo at web dot de, 2023/01/14
- [Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO, medhefgo at web dot de, 2023/01/14
- [Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO, medhefgo at web dot de, 2023/01/14
- [Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO, medhefgo at web dot de, 2023/01/14
- [Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO, nickc at redhat dot com, 2023/01/17
- [Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO, medhefgo at web dot de, 2023/01/17
- [Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO, medhefgo at web dot de, 2023/01/17
- [Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO, nickc at redhat dot com, 2023/01/18
- [Bug ld/29998] ld terminated with signal 11 [Segmentation fault] under mingw with LTO, medhefgo at web dot de, 2023/01/18