[Pkg-gmagick-im-team] Bug#777158: libimage-magick-perl: QueryFontMetrics segfaults on i386
Matthias Großmann
grossmms at googlemail.com
Thu Feb 5 18:05:37 UTC 2015
Package: libimage-magick-perl
Version: 8:6.8.9.9-5
Severity: normal
Dear Maintainer,
the attached Perl program segfaults while calling QueryFontMetrics.
I tested this on two different Jessie i386 systems. The progam
works fine on Jessie armel.
-- System Information:
Debian Release: 8.0
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libimage-magick-perl depends on:
ii libimage-magick-q16-perl 8:6.8.9.9-5
ii perl 5.20.1-5
libimage-magick-perl recommends no packages.
Versions of packages libimage-magick-perl suggests:
pn imagemagick-doc <none>
-- no debconf information
*** TestQueryFontMetrics.pl
#!/usr/bin/perl
use Image::Magick;
$image = Image::Magick->new(size=>"720x576", depth=>8);
$image->Read('canvas:blue');
$image->QueryFontMetrics(text=>'Test', font=>'Liberation-Sans', pointsize=>12);
*** TestQueryFontMetrics.backtrace
(gdb) r
Starting program: /usr/bin/perl TestQueryFontMetrics.pl
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
__GI___libc_realloc (oldmem=0x1, bytes=4096) at malloc.c:2977
2977 malloc.c: No such file or directory.
(gdb) bt
#0 __GI___libc_realloc (oldmem=0x1, bytes=4096) at malloc.c:2977
#1 0xb7b3c320 in ResizeMagickMemory (memory=0x1, size=4096) at ../../magick/memory.c:1140
#2 0xb7b3c396 in ResizeQuantumMemory (memory=0x1, count=4096, quantum=1) at ../../magick/memory.c:1205
#3 0xb7bc6c8e in CloneString (destination=0x823c80c, source=0xb7d4ef1f "") at ../../magick/string.c:287
#4 0xb7d2b692 in XS_Image__Magick__Q16_QueryFontMetrics (my_perl=0x8214008, cv=0xfffffff9) at Q16.xs:12322
#5 0x080f1554 in Perl_pp_entersub ()
#6 0x080ea237 in Perl_runops_standard ()
#7 0x0807f61a in perl_run ()
#8 0x0805ee4a in main ()
(gdb) q
More information about the Pkg-gmagick-im-team
mailing list