Re: [linux-audio-dev] LADSPA plugins and RTLD_GLOBAL

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] LADSPA plugins and RTLD_GLOBAL
From: Richard Guenther (rguenth_AT_tat.physik.uni-tuebingen.de)
Date: Fri Apr 05 2002 - 19:45:59 EEST


On Thu, Apr 04, 2002 at 11:03:25PM +0100, Steve Harris wrote:
> On Thu, Apr 04, 2002 at 03:35:59 -0500, Paul Davis wrote:
> > >At least one person is dlopen-ing LADSPA plugins with RTLD_GLOBAL, and this
> > >can potentially cause problems with plugins that have clashing globals.
> >
> > as at least one of those people, i should note that this occurs only
> > because i am using the g_module library, which uses RTLD_GLOBAL
> > implicitly. it is an error to use it in this way, and i plan to move
> > ardour away from this ASAP. other people who think of using g_module
> > should consider this issue too.
>
> Right, but either way I think its wrong for plugins to export irrelvent
> symbols. If I understand whats going on, even without RTLD_GLOBAL global
> variables in the plugin will be exported to the host, which could cause
> problems.

So why do they have non-static globals anyway? (apart from the ladspa
descriptor function) So fix the plugins, not the hosts...

Richard.

-- 
--
Richard Guenther <richard.guenther_AT_uni-tuebingen.de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/
The GLAME Project: http://www.glame.de/


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Apr 05 2002 - 19:36:22 EEST