From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,5f5fdc334849c662 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-06-11 10:25:10 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: pvangara@hotmail.com (Ranga) Newsgroups: comp.unix.tru64 Subject: Re: Program crashing while exiting. Need help!! Date: 11 Jun 2003 10:25:10 -0700 Organization: http://groups.google.com/ Message-ID: <8d55bd93.0306110925.22e68e4d@posting.google.com> References: <8d55bd93.0306091352.4e46ff5@posting.google.com> <3EE5F5EF.FF98B13D@_delete-this_hp.com> NNTP-Posting-Host: 143.127.131.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1055352310 28044 127.0.0.1 (11 Jun 2003 17:25:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 11 Jun 2003 17:25:10 GMT Xref: archiver1.google.com comp.unix.tru64:10049 Joe Mario 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.