Subject: Re: Side-effects dlopening libstdc++?
To: Julio M. Merino Vidal <>
From: Todd Vierling <>
List: tech-userlevel
Date: 11/10/2004 17:01:03
On Wed, 10 Nov 2004, Julio M. Merino Vidal wrote:

> beep-media-player crashes when it is closed.  During shutdown, it dlclose(3)s
> all plugins that were loaded during initialization, and the first call to this
> function causes a segfault.

> I mean, can't libstdc++ be dlopened without side effects in a non-c++
> program?  If not, may this be a bug in our dynamic loading code?

NetBSD's dlclose(3) has always been a little ... strange.  It's possible
that the C++ destructor table in libstdc++, which should be called on
dlclose(), is causing a problem somehow.  In any case, gdb is probably the
best bet.

-- Todd Vierling <> <>