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-10 08:13:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail Message-ID: <3EE5F59E.9A02B78B@_delete-this_hp.com> From: Joe Mario X-Mailer: Mozilla 4.79 [en] (X11; U; OSF1 V5.1 alpha) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: Program crashing while exiting. Need help!! References: <8d55bd93.0306091352.4e46ff5@posting.google.com> <8d55bd93.0306100548.4259838@posting.google.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Date: Tue, 10 Jun 2003 15:32:11 GMT NNTP-Posting-Host: 16.141.0.18 X-Complaints-To: abuse@HP.com X-Trace: news.cpqcorp.net 1055259131 16.141.0.18 (Tue, 10 Jun 2003 08:32:11 PDT) NNTP-Posting-Date: Tue, 10 Jun 2003 08:32:11 PDT Organization: Hewlett-Packard Company Xref: archiver1.google.com comp.unix.tru64:10040 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.