From: pvangara@hotmail.com (Ranga)
Subject: Re: Program crashing while exiting. Need help!!
Date: 11 Jun 2003 10:25:10 -0700 [thread overview]
Message-ID: <8d55bd93.0306110925.22e68e4d@posting.google.com> (raw)
In-Reply-To: 3EE5F5EF.FF98B13D@_delete-this_hp.com
Joe Mario <joe.mario@_delete-this_hp.com> wrote in message news:<3EE5F5EF.FF98B13D@_delete-this_hp.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.
Our sysad installed all the patches from the hp site. Still I have the
same problem (if I don't do the weird solution that I have mentioned
previously.). Do you know the exact patch by any chance? [We do have
the dlopen, and dlclose. We use ACE to do all this.]
>
> 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.
>
Our application and the DLLs are all multi-threaded in this case.
Thanks Joe for responding to the mail.
Regards,
Ranga.
>
> Joe Mario
> HP Tru64 UNIX Development environment.
next prev parent reply other threads:[~2003-06-11 17:25 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
2003-06-11 17:25 ` Ranga [this message]
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