This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu 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]

exit with success core dumps.


Hi!

I just start my application freshly compiled on RedHat 6.0
using g++ with glibc-2.1.1-6. The source is quite complex so
I do not have a small example illustrating the problem.
However, my application perform a call to exit(0) resulting
in a segmentation fault. I am including stdlib.h for exit definition.

Program terminated with signal 11, Segmentation fault.
#0  0x407ba098 in _IO_cleanup () at genops.c:734
#1  0x407845e4 in exit (status=0) at exit.c:62
#2  0x4030639a in OSimUtTerminate::exitWithSuccess ()

Evevything was working fine with older versions of RedHat.

Should I instead use _exit(0) after including unistd.h ???
What's the difference with exit(0) ???

Thanks,
JP

--
Jean-Pierre Belanger, OSim Product Development Manager
OriginalSim  - Framework for building distributed simulations.
Tel: 514-766-8868 Ex:28, Fax: 514-766-8861
mailto:jpbelanger@originalsim.com, http://www.originalsim.com




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