Program abort and dlopen()
Phil Edwards
phil@jaj.com
Tue Jun 4 08:34:00 GMT 2002
On Mon, Jun 03, 2002 at 05:22:01PM -0700, Bill Moseley wrote:
> >On Mon, Jun 03, 2002 at 11:15:34AM -0700, Bill Moseley wrote:
> >> My primary question is: does libstdc++ call dlopen() during an exception,
> >> or does it call any functions that might cause dlopen() to be called?
> >
> >No and no. libstdc++ is self-contained. (Well, it depends on libc.)
>
> >> My secondary question is: how do I debug this problem?
> >
> >Search the mail archives for RTLD_NOW and RTLD_LAZY. There are some loader
> >flags that will cause some C++ features to simply not work in a sane manner.
>
> Hum, I did search the archives and didn't see anything. Did you mean the
> libstdc++ archive? Four hits for RTLD_LAZY and none for RTLD_NOW. Sorry
> if I missed what you meant.
Actually, anything with RTLD, and any of the lists: gcc.gnu.org/lists.html.
I should have been more clear.
> You say libstdc++ is self-contained. Ok, I guess I was wondering if
> anything that happens when processing an exception might cause a dlopen
> (perhaps in another library used by libstdc++).
Not inherently. If "another library used by libstdc++" wants to do
try { ..... }
catch (whatever)
{
... dlopen() ...
}
then that's up to that library and the program using the library.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams
More information about the Libstdc++
mailing list