Here is a simple test case to trigger this crash:

$ gcc -c -fPIC -o truc.o truc.c
$ file truc.o
truc.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
$ gcc -m32 -o truc truc.o
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/usr/bin/ld: i386:x86-64 architecture of input file `truc.o' is incompatible 
with i386 output

If the "-fPIC" option is omitted in the first step, no crash occurs.

** Attachment added: "truc.c"
   http://launchpadlibrarian.net/23548615/truc.c

-- 
ld crashed with SIGSEGV in memcpy()
https://bugs.launchpad.net/bugs/287264
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to