[Bug 1266492] Re: ld:i386 crashes with -static -fPIE -pie
Launchpad Bug Tracker
1266492 at bugs.launchpad.net
Mon Feb 24 23:33:23 UTC 2014
This bug was fixed in the package eglibc - 2.19-0ubuntu2
---------------
eglibc (2.19-0ubuntu2) trusty; urgency=medium
* Merge with unreleased 2.19 from Debian experimental, fixing some bugs:
- debian/patches/any/local-no-malloc-backtrace.diff: Lower the default
for MALLOC_CHECK_ to 1, and add it to the list of insecure variables
that can't be set for suid binaries. This allows us to not backtrace
malloc failures by default (Closes: #739913, LP: #1266492) and skips
backtrace for suid binaries where an attacker calling into a corrupt
malloc internal data structure with malloc could lead to Bad Things.
- Make ldconfig stop operating on the linker entirely, so our packaged
symlinks take precedence and hack the postinst to skip ldconfig when
we detect a broken setup that the old ldconfig mangles (LP: #915995)
-- Adam Conrad <adconrad at ubuntu.com> Sun, 23 Feb 2014 22:39:18 -0700
** Changed in: eglibc (Ubuntu Trusty)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eglibc in Ubuntu.
https://bugs.launchpad.net/bugs/1266492
Title:
ld:i386 crashes with -static -fPIE -pie
Status in The GNU C Library:
Incomplete
Status in “binutils” package in Ubuntu:
Confirmed
Status in “eglibc” package in Ubuntu:
Fix Released
Status in “evolution-data-server” package in Ubuntu:
Fix Committed
Status in “xorg-server” package in Ubuntu:
Fix Released
Status in “binutils” source package in Trusty:
Confirmed
Status in “eglibc” source package in Trusty:
Fix Released
Status in “evolution-data-server” source package in Trusty:
Fix Committed
Status in “xorg-server” source package in Trusty:
Fix Released
Bug description:
Making a simple file conftest.c with the following contents:
int main() { return 0; }
And then compiling it on i386 with gcc -fPIE -pie -static conftest.c
returns:
*** Error in `/usr/bin/ld': corrupted double-linked list: 0x08dddb38
***
This breaks compilation xorg-server on i386. I believe that -static
-fPIE -pie is probably invalid, and it fails on amd64 too.
$ gcc -fPIE -pie -static conftest.c
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginT.o: relocation R_X86_64_32 against `__TMC_END__' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginT.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
But autoconf hangs on the corrupted double-linked list, which times
out the xorg-server build.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1266492/+subscriptions
More information about the foundations-bugs
mailing list