This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6728] New: abort() seg faults when statically linked in glibc-2.7
- From: "shal1783 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 8 Jul 2008 11:55:59 -0000
- Subject: [Bug libc/6728] New: abort() seg faults when statically linked in glibc-2.7
- Reply-to: sourceware-bugzilla at sourceware dot org
Hello,
When I tried to link my program using static it exited with seg fault in glibc-
2.7 but i didnt noticed same thing in glibc-2.3.I analysed this is becuse of
using abort().
Here is sample test code..
$cat test_abort.c
#include <stdio.h>
int main()
{
abort();
}
$gcc -static -L/usr/glibcs/glibc-2.7/usr/lib -o test_abort test_abort.c
$./test_abort
Segmentation fault
When I tried same test with shared it didnt gave seg fault.
Also tested with glibc-2.3 and i didnt got seg fault with static and shared.
Thanks,
BOB
--
Summary: abort() seg faults when statically linked in glibc-2.7
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: shal1783 at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6728
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.