develooper Front page | perl.perl5.porters | Postings from September 2006

shared library excpetions thrown are unhanlded

Kalpana Shetty
September 27, 2006 23:37
shared library excpetions thrown are unhanlded
Message ID:


We need info regarding shared library throwing an exception which are
kind of ignored. 


Let me explain the scenario:

We have a shared library which is loaded through dlopen of DynaLoader.
As per the Sun doc we need to use RTLD_GLOBAL for exception to work. We
have changed the Solaris where dl_load_file(...,...) been
passed with flag 

RTLD_LAZY | RTLD_GLOBAL) ie 0x00101 as second param to
dl_load_file(...). Though the flag been set correctly but still we see
problem of exception are not handled in shared library which results in
core dump where program receives SIGABRT.


Through dbx we have seen dlopen with RTLD_GLOBAL flag set for dlopened
shared library. Also, we have seen this problem only on Solaris. Do let
us know what could be the problem? Do we need to set any linker option
to make exceptions to work    in shared library.



 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About