This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
exit with success core dumps.
- To: glibc-linux@ricardo.ecn.wfu.edu
- Subject: exit with success core dumps.
- From: Jean Pierre Belanger <jpbelanger@originalsim.com>
- Date: Wed, 2 Jun 1999 11:12:03 -0400
- Organization: OriginalSim
- Reply-To: glibc-linux@ricardo.ecn.wfu.edu
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