libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ltdl resident modules are unloaded by lt_dlexit()


From: Ralf Wildenhues
Subject: Re: ltdl resident modules are unloaded by lt_dlexit()
Date: Tue, 29 Dec 2009 19:53:23 +0100
User-agent: Mutt/1.5.20 (2009-10-28)

Hi Bob,

* Bob Friesenhahn wrote on Fri, Dec 25, 2009 at 01:02:37AM CET:
> I have a module which uses a library which sometimes registers an
> atexit() handler to clean itself up.  If lt_dlexit() is invoked,
> then any modules loaded by libltdl are then unloaded.
> Unfortunately, when the module is unloaded, the library it
> referenced crashes due to the atexit().  I tried using both
> lt_dladvise_resident() and lt_dlmakeresident() to mark the module as
> resident so that it can not be unloaded, but the program still
> crashes at exit.  It is not clear to me if the module was still
> unloaded, or if the problem is that the library it depends on was
> still unloaded.

Do you have a small reproducible example (a way to see this easily with
GraphicsMagick would be fine as well)?

Thanks,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]