Subject: | Crashes reading animated gifs |
Date: | Thu, 21 Jun 2007 00:09:40 +0200 (CEST) |
To: | bug-Imager [...] rt.cpan.org |
From: | Martin Blapp <mb [...] imp.ch> |
Sometime im[0] or im[1] is still ok, and im[2] is then corrupted.
(gdb) bt
#0 i_tags_destroy (tags=0xdc17024) at tags.c:176
#1 0x28572a5c in i_img_exorcise (im=0xdc17000) at image.c:407
#2 0x28572af9 in i_img_destroy (im=0xdc17000) at image.c:438
#3 0x28591a1d in free_images (imgs=0xd50cfe0, count=5) at gif.c:424
#4 0x28593fb3 in i_readgif_multi_low (GifFile=0xd5673c0, count=0xbfbfe658, page=-1) at gif.c:554
#5 0x28594398 in i_readgif_multi (fd=21, count=0xbfbfe658) at gif.c:896
#6 0x285943f1 in i_readgif_multi_wiol (ig=0xd567380, count=0xbfbfe658) at gif.c:850
#7 0x2855c8aa in XS_Imager_i_readgif_multi_wiol (cv=0x93c25cc) at Imager.xs:2869
#8 0x28104cec in Perl_pp_entersub () from /idms/lib/perl5/5.8.8/mach/CORE/libperl.so
#9 0x280fddad in Perl_runops_standard () from /idms/lib/perl5/5.8.8/mach/CORE/libperl.so
#10 0x2812e354 in S_docatch () from /idms/lib/perl5/5.8.8/mach/CORE/libperl.so
#11 0x280fddad in Perl_runops_standard () from /idms/lib/perl5/5.8.8/mach/CORE/libperl.so
#12 0x280a8810 in S_call_body () from /idms/lib/perl5/5.8.8/mach/CORE/libperl.so
#13 0x280ad012 in Perl_call_sv () from /idms/lib/perl5/5.8.8/mach/CORE/libperl.so
#14 0x280ad2cc in Perl_call_pv () from /idms/lib/perl5/5.8.8/mach/CORE/libperl.so
#15 0x280ad379 in Perl_call_argv () from /idms/lib/perl5/5.8.8/mach/CORE/libperl.so
(gdb) f 1
#1 0x28572a5c in i_img_exorcise (im=0xdc17000) at image.c:407
407 i_tags_destroy(&im->tags);
(gdb) p im[0]
$6 = {channels = 269488144, xsize = 269488144, ysize = 269488144, bytes =
269488144, ch_mask = 269488144, bits = 269488144, type = 269488144,
virtual = 269488144, idata = 0x10101010 <Address 0x10101010 out of bounds>,
tags = {count = 269488144, alloc = 269488144, tags = 0x10101010},
ext_data = 0x10101010, i_f_ppix = 0x10101010, i_f_ppixf = 0x10101010, i_f_plin
= 0x10101010, i_f_plinf = 0x10101010, i_f_gpix = 0x10101010,
i_f_gpixf = 0x10101010, i_f_glin = 0x10101010, i_f_glinf = 0x10101010,
i_f_gsamp = 0x10101010, i_f_gsampf = 0x10101010, i_f_gpal = 0x10101010,
i_f_ppal = 0x10101010, i_f_addcolors = 0x10101010, i_f_getcolors = 0x10101010,
i_f_colorcount = 0x10101010, i_f_maxcolors = 0x10101010,
i_f_findcolor = 0x10101010, i_f_setcolors = 0x10101010, i_f_destroy =
0x10101010}
Martin Blapp, <mb@imp.ch> <mbr@FreeBSD.org>
------------------------------------------------------------------
ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
Phone: +41 61 826 93 00 Fax: +41 61 826 93 01
PGP: <finger -l mbr@freebsd.org>
PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E
------------------------------------------------------------------