[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/28844] ld (bfd) segfaults on building efivar-38 with -flto
From: |
dilfridge at gentoo dot org |
Subject: |
[Bug ld/28844] ld (bfd) segfaults on building efivar-38 with -flto |
Date: |
Mon, 31 Jan 2022 19:18:03 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28844
Andreas K. Huettel <dilfridge at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dilfridge at gentoo dot org
--- Comment #5 from Andreas K. Huettel <dilfridge at gentoo dot org> ---
Sam asked me to reproduce this; here's the resulting backtrace:
huettel@pinacolada ~ $ coredumpctl debug 1001324
PID: 1001324 (ld)
UID: 1000 (huettel)
GID: 1000 (huettel)
Signal: 11 (SEGV)
Timestamp: Mon 2022-01-31 02:40:33 CET (2min 42s ago)
Command Line:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld
-plugin /usr/libexec/gcc/x86_64-pc-linux-gnu/11.2.0/liblto_plugin.so
-plugin-opt=/usr/libexec/gcc/x86_64-pc-linux-gnu/11.2.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/portage/sys-libs/efivar-38/temp/ccGm7cTv.res
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s
-plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m elf_x86_64 -shared
--no-undefined-version --no-allow-shlib-undefined --add-needed -z now
--build-id -z relro --no-undefined-version --no-allow-shlib-undefined
--add-needed -z now --build-id -z relro --no-undefined-version
--no-allow-shlib-undefined --add-needed -z now --build-id -z relro -o
libefivar.so /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/crtbeginS.o -L. -L.
-L/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0
-L/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../.. -O1 --as-needed --add-needed
--build-id --no-allow-shlib-undefined --no-undefined-version -z now -z muldefs
-z relro --fatal-warnings --add-needed --build-id --no-allow-shlib-undefined
--no-undefined-version -z now -z muldefs -z relro --fatal-warnings -soname
libefivar.so.1 --version-script=libefivar.map 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 -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc
--push-state --as-needed -lgcc_s --pop-state
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/crtendS.o
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib64/crtn.o -T guids.lds
Executable: /usr/x86_64-pc-linux-gnu/binutils-bin/2.37_p1/ld
Control Group:
/user.slice/user-1000.slice/user@1000.service/app.slice/app-org.kde.konsole\x20\x281\x29-396082e66f1f4eebad232d9b0f7e0414.scope
Unit: user@1000.service
User Unit:
app-org.kde.konsole\x20\x281\x29-396082e66f1f4eebad232d9b0f7e0414.scope
Slice: user-1000.slice
Owner UID: 1000 (huettel)
Boot ID: 09285116397b43cf8efdfe10efc785a7
Machine ID: 7c495b4863a12cc008574dfa604a257d
Hostname: pinacolada
Storage:
/var/lib/systemd/coredump/core.ld.1000.09285116397b43cf8efdfe10efc785a7.1001324.1643593233000000.zst
(present)
Disk Size: 240.1K
Message: Process 1001324 (ld) of user 1000 dumped core.
GNU gdb (Gentoo 11.1 vanilla) 11.1
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/x86_64-pc-linux-gnu/binutils-bin/2.37_p1/ld...
Reading symbols from
/usr/lib/debug//usr/x86_64-pc-linux-gnu/binutils-bin/2.37_p1/ld.bfd.debug...
[New LWP 1001324]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by
`/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 __strcmp_avx2_rtm () at ../sysdeps/x86_64/multiarch/strcmp-avx2.S:106
106 VPCMPEQ (%rsi), %ymm1, %ymm0
(gdb) bt
#0 __strcmp_avx2_rtm () at ../sysdeps/x86_64/multiarch/strcmp-avx2.S:106
#1 0x00007f1b63cd57fe in _bfd_generic_link_add_one_symbol
(info=info@entry=0x55ec85623c80 <link_info>, abfd=0x55ec86e76c90,
name=0x55ec8708626d "_efi_set_variable",
flags=<optimized out>, section=0x55ec87074d88, value=3376, string=0x0,
copy=false, collect=false, hashp=0x55ec870822a8)
at
/tmp/portage/sys-devel/binutils-2.37_p1/work/binutils-2.37/bfd/linker.c:1685
#2 0x00007f1b63d1427e in elf_link_add_object_symbols (info=<optimized out>,
abfd=0x55ec86e76c90)
at
/tmp/portage/sys-devel/binutils-2.37_p1/work/binutils-2.37/bfd/elflink.c:4957
#3 bfd_elf_link_add_symbols (abfd=0x55ec86e76c90, info=<optimized out>) at
/tmp/portage/sys-devel/binutils-2.37_p1/work/binutils-2.37/bfd/elflink.c:5971
#4 0x000055ec854efd6c in load_symbols (entry=entry@entry=0x55ec86e64c80,
place=place@entry=0x7fffe8dc2a40)
at
/tmp/portage/sys-devel/binutils-2.37_p1/work/binutils-2.37/ld/ldlang.c:3157
#5 0x000055ec854f0951 in load_symbols (place=0x7fffe8dc2a40,
entry=0x55ec86e64c80) at
/tmp/portage/sys-devel/binutils-2.37_p1/work/binutils-2.37/ld/ldlang.c:3027
#6 open_input_bfds (s=0x55ec86e64c80, mode=mode@entry=OPEN_BFD_NORMAL) at
/tmp/portage/sys-devel/binutils-2.37_p1/work/binutils-2.37/ld/ldlang.c:3627
#7 0x000055ec854f47af in lang_process () at
/tmp/portage/sys-devel/binutils-2.37_p1/work/binutils-2.37/ld/ldlang.c:7986
#8 0x000055ec854df619 in main (argc=<optimized out>, argv=<optimized out>) at
/tmp/portage/sys-devel/binutils-2.37_p1/work/binutils-2.37/ld/ldmain.c:502
(gdb)
--
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, 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, 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 <=
- [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