ld hangs indefinitely statically linking binutils on ppc64el
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
binutils |
Unknown
|
Unknown
|
|||
binutils (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The latest util-linux upload, 2.27.1-1ubuntu1, reproducibly fails to build on ppc64el because the build hangs indefinitely:
https:/
The hanging command is:
/usr/bin/ld -plugin /usr/lib/
strace shows it repeatedly calling brk(), so presumably trying to allocate more memory in very small increments.
It doesn't appear to be lto-related. The symptom is reproducible when calling gcc with -fno-lto.
I do not yet have a useful backtrace from ld for this, because for some reason recent versions of binutils are not getting dbgsym packages in the archive.
Changed in binutils (Ubuntu): | |
importance: | Undecided → Medium |
Changed in binutils (Ubuntu): | |
status: | New → Confirmed |
Rebuilding with nostrip, I get a backtrace that looks like this, with at least partial symbols. e-linux- gnu/libc. so.6 e-linux- gnu/libc. so.6 e-linux- gnu/libc. so.6 find_exp_ assignment ( ldemul. c:39
(gdb) bt
#0 0x00003fffb3b8885c in vfprintf () from /lib/powerpc64l
#1 0x00003fffb3c714b8 in __vsprintf_chk ()
from /lib/powerpc64l
#2 0x00003fffb3c713ac in __sprintf_chk ()
from /lib/powerpc64l
#3 0x00003fffb3daa338 in ?? ()
#4 0x00003fffb3db963c in ?? ()
#5 0x0000000010032168 in gldelf64lppc_
exp=<optimized out>) at eelf64lppc.c:1845
#6 0x000000001002824c in ldemul_hll (name=<optimized out>)
at ../../ld/
Backtrace stopped: frame did not save the PC
(gdb)