[Magick-bugs] Re: [magick-developers] segmentation fault
Dmitry Karasik
dmitry at karasik.eu.org
Sun Oct 1 16:30:41 CDT 2006
Hi,
I wrote earlier about ImageMagick-perl coredumping on FreeBSD, you chose
to ignore the letter but anyway, I hope my fix helps someone. In short,
add
END { UNLOAD };
in Magick.pm . The problem this patch fixes is triggered when Magic.pm is
loaded from inside modperl, which does dlload for libperl, then which does
dlload for libmagick, then modperl does dlclose for libperl and exits. During
the exit atexit() callbacks of libmagic coredump, because libmagick is already
implicitly dlclose'd . On Linux this works ok because linux 2.6 tracks atexit()
calls and detaches these on exit().
I'm not writing a complete step-by-step scenario how to reproduce the bug because
I suspect this will be a waste of time because the letter might again be ignored,
but, well, if not, I'll be glad to help.
--
Sincerely,
Dmitry Karasik
More information about the Magick-bugs
mailing list