Hi,

I'm currently working on a perl module for an existing program. The perl 
programs to be evaluated in turn depends on perl modules that include shared 
object files:

Program A -> Module B with perl -> Perl Module C -> Library D

The module mechanism in the program is realized via the dlopen function. 
Unfortunately, there seems to exist some type of problem when program A 
dlopens a library B that again dlopens a library D; program A segfaults.

There seem to exist some dependencies on the flags used in the dlopen call - I 
have been successful in a few cases but am not too confident that the problem 
in fact has disappeared.

The procedure described here is similar to what happens in apache's mod_perl; 
there _seem_ to exist some workarounds there - which I frankly currently do 
not understand.

Can you give me any information on that topic?

* Am I doing something terribly wrong, and the behavior described _should_
  work?
* Do you have any additional hints?

Any help is greatly appreciated.

Thx in advance,
   Bastian

-- 
Collax GmbH . Burkheimer Straße 3 . 79111 Freiburg . Germany
p: +49 (0) 761-45684-24
f: +49 (0) 761-45684-10        www.collax.com

\ Hard work never killed anyone, but why chance it?

Reply via email to