ld.bfd crashed with SIGSEGV in bfd_elf_final_link()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
binutils (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
Binary package hint: binutils
Was building a program and I think this was triggered by attempting to link with 32-bit libraries when building on a 64-bit system. The output of 'make' gave this sort of message:
gcc -Wall -DLINUX -O2 -DDUNDEE_COMPILE -D_LARGEFILE64_
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/usr/bin/ld: i386 architecture of input file `/home/
Using 10.04 LTS with 64-bit version on quad core "Intel(R) Core(TM) i5 CPU 760 @ 2.80GHz" machine. I have it dual-boot so I also have 32-bit 10.04 for some things that need it, hence the library issue.
$ lsb_release -rd
Description: Ubuntu 10.04.2 LTS
Release: 10.04
I expect, under these circumstances, to get a warning and error exit, not a core-dump due to segfault.
ProblemType: Crash
DistroRelease: Ubuntu 10.04
Package: binutils 2.20.1-3ubuntu7.1
ProcVersionSign
Uname: Linux 2.6.32-31-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Fri Apr 22 11:42:12 2011
ExecutablePath: /usr/bin/ld.bfd
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
ProcCmdline: /usr/bin/ld --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=both -dynamic-linker /lib64/
ProcEnviron:
PATH=(custom, user)
LANG=en_GB.utf8
SHELL=/bin/bash
SegvAnalysis:
Segfault happened at: 0x2b3d2ed5255a: mov %rdx,0x30(%rax)
PC (0x2b3d2ed5255a) ok
source "%rdx" ok
destination "0x30(%rax)" (0x200000030) not located in a known VMA region (needed writable region)!
SegvReason: writing unknown VMA
Signal: 11
SourcePackage: binutils
StacktraceTop:
?? () from /usr/lib/
bfd_elf_final_link ()
?? ()
?? ()
__libc_start_main () from /lib/libc.so.6
Title: ld.bfd crashed with SIGSEGV in bfd_elf_
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
StacktraceTop: x86_64_ relocate_ section ( ldwrite. c:568 e7f8)
elf64_
bfd_elf_final_link (abfd=<value optimized out>,
ldwrite () at ../../ld/
main (argc=46, argv=0x7fff139c