This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/6728] New: abort() seg faults when statically linked in glibc-2.7


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]