Your message dated Tue, 18 Mar 2008 23:56:50 -0300
with message-id <[EMAIL PROTECTED]>
and subject line Closing 225538
has caused the Debian Bug report #225538,
regarding perlmagick segfaults perl in cleanup
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
225538: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=225538
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: perlmagick
Version: 5.5.7.9-1.1

CloseBlob for some reason tries to call ferror with a null pointer;
see the stack trace below.  (It happens without the /usr/lib/debug
libraries too.)  It doesn't happen with stable's perl/imagemagick.

lyonesse$ uname -a
Linux lyonesse 2.4.23 #1 Sat Nov 29 13:06:17 GMT 2003 i686 GNU/Linux
lyonesse$ dpkg -l libc6 perl perlmagick libmagick\*|grep ^i
ii  libc6          2.3.2.ds1-10   GNU C Library: Shared libraries and Timezone
ii  perl           5.8.2-2        Larry Wall's Practical Extraction and Report
ii  perlmagick     5.5.7.9-1.1    A perl interface to the libMagick graphics r
ii  libmagick5.5.7 5.5.7.9-1.1    Image manipulation library (free version)

lyonesse$ LD_LIBRARY_PATH=/usr/lib/debug  perl -MImage::Magick -MIO::File -e 
'$i=Image::Magick->new();$i->Read("/home/richard/work/web/photos/2003-05-17/dcp01096.jpg");$i->Scale(0.1);$f=new
 IO::File(">/dev/null");$i->Write(file => $f);'
Segmentation fault (core dumped)
lyonesse$ gdb /usr/bin/perl core
GNU gdb 5.3-debian
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...(no debugging symbols found)...
Core was generated by `perl -MImage::Magick -MIO::File -e 
$i=Image::Magick->new();$i->Read("/home/rich'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/debug/libdl.so.2...done.
Loaded symbols for /usr/lib/debug/libdl.so.2
Reading symbols from /usr/lib/debug/libm.so.6...done.
Loaded symbols for /usr/lib/debug/libm.so.6
Reading symbols from /usr/lib/debug/libpthread.so.0...done.
Loaded symbols for /usr/lib/debug/libpthread.so.0
Reading symbols from /usr/lib/debug/libc.so.6...done.
Loaded symbols for /usr/lib/debug/libc.so.6
Reading symbols from /usr/lib/debug/libcrypt.so.1...done.
Loaded symbols for /usr/lib/debug/libcrypt.so.1
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/perl5/auto/Image/Magick/Magick.so...done.
Loaded symbols for /usr/lib/perl5/auto/Image/Magick/Magick.so
Reading symbols from /usr/lib/libMagick.so.0...done.
Loaded symbols for /usr/lib/libMagick.so.0
Reading symbols from /usr/lib/liblcms.so.1...done.
Loaded symbols for /usr/lib/liblcms.so.1
Reading symbols from /usr/lib/libtiff.so.3...done.
Loaded symbols for /usr/lib/libtiff.so.3
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libpng12.so.0...done.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /usr/lib/libwmf-0.2.so.7...done.
Loaded symbols for /usr/lib/libwmf-0.2.so.7
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXt.so.6
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/lib/libbz2.so.1.0...done.
Loaded symbols for /usr/lib/libbz2.so.1.0
Reading symbols from /usr/lib/libxml2.so.2...done.
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libwmflite-0.2.so.7...done.
Loaded symbols for /usr/lib/libwmflite-0.2.so.7
Reading symbols from /usr/lib/libexpat.so.1...done.
Loaded symbols for /usr/lib/libexpat.so.1
Reading symbols from /usr/lib/perl/5.8.2/auto/IO/IO.so...done.
Loaded symbols for /usr/lib/perl/5.8.2/auto/IO/IO.so
Reading symbols from /usr/lib/perl/5.8.2/auto/Fcntl/Fcntl.so...done.
Loaded symbols for /usr/lib/perl/5.8.2/auto/Fcntl/Fcntl.so
#0  0x40043b02 in pthread_mutex_lock () from /usr/lib/debug/libpthread.so.0
(gdb) bt
#0  0x40043b02 in pthread_mutex_lock () from /usr/lib/debug/libpthread.so.0
#1  0x40046084 in flockfile () from /usr/lib/debug/libpthread.so.0
#2  0x400f52a8 in _IO_ferror (fp=0x0) at ferror.c:41
#3  0x4027b8cc in CloseBlob () from /usr/lib/libMagick.so.0
#4  0x4027bb34 in DestroyBlob () from /usr/lib/libMagick.so.0
#5  0x402f118c in DestroyImage () from /usr/lib/libMagick.so.0
#6  0x40217acd in XS_Image__Magick_DESTROY ()
   from /usr/lib/perl5/auto/Image/Magick/Magick.so
#7  0x080cd986 in Perl_pp_entersub ()
#8  0x08063dcc in Perl_call_sv ()
#9  0x08063ba3 in Perl_call_sv ()
#10 0x080d5de5 in Perl_sv_clear ()
#11 0x080d6640 in Perl_sv_free ()
#12 0x080d5fa3 in Perl_sv_clear ()
#13 0x080d6640 in Perl_sv_free ()
#14 0x080c6922 in Perl_av_undef ()
#15 0x080d6350 in Perl_sv_clear ()
#16 0x080d6640 in Perl_sv_free ()
#17 0x080e2900 in Perl_sv_clean_objs ()
#18 0x08061c05 in perl_destruct ()
#19 0x0805fa4d in main ()
#20 0x400a4da6 in __libc_start_main (main=0x805f990 <main>, argc=5,
    ubp_av=0xbffffa34, init=0x813fcc0 <__libc_csu_init>,
    fini=0x813fd20 <__libc_csu_fini>, rtld_fini=0x400164e0 <_rtld_global>,
    stack_end=0x2fa) at ../sysdeps/generic/libc-start.c:242
(gdb)

By comparison, under stable the same one-liner works fine:

sfere$ uname -a
Linux sfere 2.4.23 #1 Sun Dec 14 21:14:17 GMT 2003 i586 unknown
sfere$ dpkg -l libc6 perl perlmagick libmagick\*|grep ^i
ii  libc6          2.2.5-11.5     GNU C Library: Shared libraries and Timezone
ii  perl           5.6.1-8.3      Larry Wall's Practical Extraction and Report
ii  perlmagick     5.4.4.5-1woody A perl interface to the libMagick graphics r
ii  libmagick5     5.4.4.5-1woody Image manipulation library (free version).
sfere$ perl -MImage::Magick -MIO::File -e 
'$i=Image::Magick->new();$i->Read("/home/richard/work/web/photos/2003-05-17/dcp01096.jpg");$i->Scale(0.1);$f=new
 IO::File(">/dev/null");$i->Write(file => $f);'
sfere$ echo $?
0
sfere$


--- End Message ---
--- Begin Message ---
Version: 6:6.2.3.0-1

I am closing this bug as it seems to be fixed since version 6.0.7.1

Best regards,
Nelson


--- End Message ---

Reply via email to