Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Joe Mario <joe.mario@_delete-this_hp.com>
Subject: Re: Program crashing while exiting. Need help!!
Date: Tue, 10 Jun 2003 15:33:31 GMT	[thread overview]
Message-ID: <3EE5F5EF.FF98B13D@_delete-this_hp.com> (raw)
In-Reply-To: 8d55bd93.0306091352.4e46ff5@posting.google.com

Ranga wrote:
>  I am having a crash while exiting the program on Tru64. ...

Several things come to mind for crashes during exit.

1: There is a patch available for a crash during exit().  It addresses
   the problem where a dlopen()'d library registers an atexit handler
   to be run when the program exits, but the library is dlclosed and
   unmapped before the program exits.  In this case, the exit() code
   in libc would try to run the registered exit handler and crash.
   The patch properly deregisters the exit handler when the library
   is dlclosed.

2: If your application doesn't link with threads but it does
   dlopen a library that depends on threads, then the application
   will likely crash, sometimes while exitting.  The solution here
   (really a requirement) is to link your main application with 
   threads if any of the libraries it dlopens depend on threads.

    
Joe Mario
HP Tru64 UNIX Development environment.


  parent reply	other threads:[~2003-06-10 15:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-09 21:52 Program crashing while exiting. Need help!! Ranga
2003-06-10 13:48 ` Ranga
2003-06-10 15:32   ` Joe Mario
2003-06-10 15:33 ` Joe Mario [this message]
2003-06-11 17:25   ` Ranga
2003-06-11 19:39     ` Joe Mario
2003-06-12 19:54       ` Ranga
2003-06-14 14:39         ` Joe Mario
2003-08-11  7:30 ` QinFeng
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox