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

perl_atexit() considered useless

Thread Next
Alan Burlison
September 13, 2000 11:02
perl_atexit() considered useless
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About