[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/28844] New: ld (bfd) segfaults on building efivar-38 with
From: |
sam at gentoo dot org |
Subject: |
[Bug binutils/28844] New: ld (bfd) segfaults on building efivar-38 with -flto |
Date: |
Sun, 30 Jan 2022 23:02:11 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28844
Bug ID: 28844
Summary: ld (bfd) segfaults on building efivar-38 with -flto
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: sam at gentoo dot org
Target Milestone: ---
Created attachment 13944
--> https://sourceware.org/bugzilla/attachment.cgi?id=13944&action=edit
build.log
Originally reported downstream in Gentoo here: https://bugs.gentoo.org/831366.
Snippet from build log:
```
x86_64-pc-linux-gnu-gcc -O2 -flto -ggdb3 -std=gnu11 -funsigned-char
-fvisibility=hidden
-specs=/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/gcc.specs
-fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden
-specs=/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/gcc.specs
-fno-merge-constants -L. -O2 -flto -ggdb3 -std=gnu11 -funsigned-char
-fvisibility=hidden
-specs=/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/gcc.specs
-fno-merge-constants -L. -Wl,-O1 -Wl,--as-needed
-Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--add-needed -Wl,--build-id
-Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now
-Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -Wl,--add-needed
-Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version
-Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings
-DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE
-I/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/ -shared
-Wl,-soname,libefivar.so.1 -Wl,--version-script=libefivar.map \
-T guids.lds \
-o libefivar.so crc32.o dp.o dp-acpi.o dp-hw.o dp-media.o dp-message.o
efivarfs.o error.o export.o guid.o guid-symbols.o lib.o vars.o time.o -ldl
x86_64-pc-linux-gnu-gcc -O2 -flto -ggdb3 -std=gnu11 -funsigned-char
-fvisibility=hidden
-specs=/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/gcc.specs
-fno-merge-constants -std=gnu11 -funsigned-char -fvisibility=hidden
-specs=/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/gcc.specs
-fno-merge-constants -L. -O2 -flto -ggdb3 -std=gnu11 -funsigned-char
-fvisibility=hidden
-specs=/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/gcc.specs
-fno-merge-constants -L. -Wl,-O1 -Wl,--as-needed
-Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--add-needed -Wl,--build-id
-Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version -Wl,-z,now
-Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings -Wl,--add-needed
-Wl,--build-id -Wl,--no-allow-shlib-undefined -Wl,--no-undefined-version
-Wl,-z,now -Wl,-z,muldefs -Wl,-z,relro -Wl,--fatal-warnings
-DLIBEFIVAR_VERSION=38 -D_GNU_SOURCE
-I/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/ -shared
-Wl,-soname,libefisec.so.1 -Wl,--version-script=libefisec.map \
\
-o libefisec.so sec.o secdb.o esl-iter.o util.o
ln -vfs libefisec.so libefisec.so.1
'libefisec.so.1' -> 'libefisec.so'
collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core
dumped
compilation terminated.
make[1]: ***
[/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src/include/rules.mk:39:
libefivar.so] Error 1
rm thread-test.o
make[1]: Leaving directory
'/var/tmp/portage/sys-libs/efivar-38/work/efivar-38/src'
make: *** [Makefile:14: all] Error 2
* ERROR: sys-libs/efivar-38::gentoo failed (compile phase):
* emake failed
```
I'm trying to figure out how I can actually get the coredump or a backtrace
given that one doesn't seem to be created (nor does coredumpctl show one). gdb
doesn't pick one up either, I guess due to the indirection with gcc->ld?
Versions:
- Gentoo Linux
- gcc (Gentoo Hardened 11.2.1_p20220115 p4) 11.2.1 20220115
- GNU ld (Gentoo 2.37_p1 p2) 2.37
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/28844] New: ld (bfd) segfaults on building efivar-38 with -flto,
sam at gentoo dot org <=
- [Bug ld/28844] ld (bfd) segfaults on building efivar-38 with -flto, sam at gentoo dot org, 2022/01/30
- [Bug ld/28844] ld (bfd) segfaults on building efivar-38 with -flto, sam at gentoo dot org, 2022/01/30
- [Bug ld/28844] ld (bfd) segfaults on building efivar-38 with -flto, sam at gentoo dot org, 2022/01/30
- [Bug ld/28844] ld (bfd) segfaults on building efivar-38 with -flto, nickc at redhat dot com, 2022/01/31
- [Bug ld/28844] ld (bfd) segfaults on building efivar-38 with -flto, amodra at gmail dot com, 2022/01/31
- [Bug ld/28844] ld (bfd) segfaults on building efivar-38 with -flto, dilfridge at gentoo dot org, 2022/01/31
- [Bug ld/28844] ld (bfd) segfaults on building efivar-38 with -flto, sam at gentoo dot org, 2022/01/31
- [Bug ld/28844] ld (bfd) segfaults on building efivar-38 with -flto, sam at gentoo dot org, 2022/01/31
- [Bug ld/28844] ld (bfd) segfaults on building efivar-38 with -flto, hjl.tools at gmail dot com, 2022/01/31
- [Bug ld/28844] ld (bfd) segfaults on building efivar-38 with -flto, sam at gentoo dot org, 2022/01/31