Re: [info-performer] dynamic loading of performer libraries

Date view Thread view Subject view Author view

From: Marc Mendez (mmendez++at++silicon-worlds.fr)
Date: 06/17/2003 01:36:01


C. Skluzacek wrote:

>Hi,
>I have a program that loads in plugin modules at
>runtime using the libdl family of functions (I've also
>tried using the gnu libtool library and got the same
>result). I get a crash when I try to dynamically load
>a plugin which itself depends on Performer.
>
What kind of crash exactly ? Is this dlopen, dlsym or the (*runPf)()
call that crashes ? That is, are your handles and pointers OK ?

>In test
>code I've also tried dlopening libpf.so and looking
>for (and running) the pfInit symbol, but that crashes
>also. This has worked when I've indirectly loaded my
>own(non-pf) code in this way. It of course runs when I
>link libpf into the executable, but then that defeats
>the purpose of the plugin functionality. My
>configuration is: RH7.3, gcc3.2, pf3.0. Here is the
>test code:
>
>
Let me know more about runtime, we have an app here that uses intensive
dynamic objects loading in DSOs. But our core app (the executable) is
linked against PF, but maybe I ll be able to help you a bit ...

Marc.


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Jun 17 2003 - 01:38:17 PDT