[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dlopen(), atexit() SEGV in NetBSD
2009/7/8 Thor Lancelot Simon <tls%panix.com@localhost>:
> On Wed, Jul 08, 2009 at 01:10:50PM +0530, Channa wrote:
>> I am facing some issue with atexit handler in NetBSD.
>> The procedure to reproduce the problem i have explained below:
>> Because after a dlopened library that calls atexit() the libexample.so
>> is dlclosed, an executable can't
>> access a registered handler in the library and causes SEGV.
> Well, of course it does. The documentation is quite clear:
> dlclose() unlinks and removes the object referred to by handle from the
> process address space.
Yes but while calling fini functions in the dynamic linker , the
__cxa_finalize is called during that time the atexit() handlers
registered in the library can be called?
Or is there a method to unregister the atexit() handlers registered
Thanks & Regards,
Main Index |
Thread Index |