Hi,
I am using dlfcn to load and unload plugins in an app I am currently
porting from linux to QNX RTP 6.1
All runs well until the calls to dlclose at the end of the program :
-
I tried dlopen(…, RTLD_NOW | RTLD_GLOBAL) first, and QNX reported a
SIGSEGV Memory fault when dlclosing the !!LAST!! plugin, as if it were
already dlclosed, I guess, -
So I tried dlopen(…, RTLD_NOW) assuming it might be a problem of who
depends on whom, and then I got SIGSEGV Memory fault when dlclosing the
!!FIRST!! plugin, which I can’t explain -
On linux 2.4.21 it worked well…
Does anyone see what happens there ?
And what if I don’t dlclose the modules ? aren’t they automatically
removed from memory space when the process exits ?
Thanks,
Yvain Thonnart