Summary: | sys-libs/glibc[profile]: programs linked with -lc_p always segfault early | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jeffrey Graham <grahamspam> |
Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED UPSTREAM | ||
Severity: | major | CC: | nbowler, tanarrian |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | https://sourceware.org/bugzilla/show_bug.cgi?id=9689 | ||
See Also: | https://sourceware.org/bugzilla/show_bug.cgi?id=9689 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jeffrey Graham
2007-12-05 16:43:26 UTC
*** Bug 236524 has been marked as a duplicate of this bug. *** still happens with glibc-2.9 :/ $ gcc test.c -g -pg -O0 -o test -static -lc_p $ gdb ./test (gdb) r Starting program: /home/vapier/test Program received signal SIGSEGV, Segmentation fault. 0x000000000042fecb in __mcount_internal () (gdb) bt #0 0x000000000042fecb in __mcount_internal () #1 0x000000000040dc04 in mcount () #2 0x0000000000000000 in ?? () (gdb) Debian bug report (not that it has any info): http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506850 the crash seems to be because mcount uses atomic code which relies on the TLS descriptors being setup, but that doesnt happen until __libc_start_main. but since __libc_start_main itself calls mcount, we crash. at any rate, moved upstream |