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

perl_atexit() considered useless

Thread Next
From:
Alan Burlison
Date:
September 13, 2000 11:02
Subject:
perl_atexit() considered useless
Message ID:
39BFC107.EC11B17B@uk.sun.com
I've been looking at memory errors in perl, and found that if
DL_UNLOAD_ALL_AT_EXIT is defined, it causes heap problems on exit.  The
cause is that the AV holding the references to the dlopen() handles has
been reclaimed before the perl atexit processing takes place to
dlclose() the handles.  I could fix this by keeping a list of the dlopen
handles locally in DynaLoader.xs, but I think there is a more general
problem here - what use is perl_atexit() if it is called after globals
have been destroyed?

-- 
Alan Burlison

Thread Next


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