Package: imagemagick Version: 7:6.2.4.5.dfsg1-2 Severity: normal I'm hitting:
2008-02-25T00:04:18-05:00 0:01 0.050u 6.3.7 Cache a.out[10115]: cache.c/unknown/3438/Cache extend test.jpg[0] (/tmp/magick-XXPMBtqf[4], disk, 2.74383gb) 2008-02-25T00:04:18-05:00 0:01 0.050u 6.3.7 Exception a.out[10115]: cache.c/unknown/3568/Exception unable to extend cache `test.jpg': Invalid argument when opening a large (over 15000x25000) JPEG. This only happens with 10.0.9, not 9.0.0. strace shows: pwrite64(13, "\0", 1, 18446744072360754175) = -1 EINVAL (Invalid argument) or 0xFFFFFFFFAF9AFBFF, as if some size is being calculated in signed 32-bit and then sign-extended to 64-bit. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.18.6 (SMP w/1 CPU core; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages imagemagick depends on: ii libbz2-1.0 1.0.4-3 high-quality block-sorting file co ii libc6 2.7-2 GNU C Library: Shared libraries ii libfreetype6 2.3.5-1+b1 FreeType 2 font engine, shared lib ii libice6 2:1.0.4-1 X11 Inter-Client Exchange library ii libjasper1 1.900.1-3 The JasPer JPEG-2000 runtime libra ii libjpeg62 6b-14 The Independent JPEG Group's JPEG ii liblcms1 1.16-6 Color management library ii libmagick9 7:6.2.4.5.dfsg1-2 Image manipulation library ii libpng12-0 1.2.15~beta5-3 PNG library - runtime ii libsm6 2:1.0.3-1+b1 X11 Session Management library ii libtiff4 3.8.2-7 Tag Image File Format (TIFF) libra ii libx11-6 2:1.0.3-7 X11 client-side library ii libxext6 1:1.0.3-2 X11 miscellaneous extension librar ii libxml2 2.6.30.dfsg-2 GNOME XML library ii libxt6 1:1.0.5-3 X11 toolkit intrinsics library ii zlib1g 1:1.2.3.3.dfsg-11 compression library - runtime imagemagick recommends no packages. -- no debconf information
#include <stdio.h> #include <stdlib.h> #include <wand/MagickWand.h> #define ThrowWandException(wand) \ { \ char \ *description; \ \ ExceptionType \ severity; \ \ description=MagickGetException(wand,&severity); \ (void) fprintf(stderr,"%s %s %lu %s\n",GetMagickModule(),description); \ description=(char *) MagickRelinquishMemory(description); \ exit(-1); \ } int main(int argc,char **argv) { MagickBooleanType status; MagickWand *magick_wand; if (argc != 2) { (void) fprintf(stdout,"Usage: %s image\n",argv[0]); exit(0); } MagickWandGenesis(); SetLogEventMask("all"); magick_wand=NewMagickWand(); status=MagickReadImage(magick_wand,argv[1]); if (status == MagickFalse) ThrowWandException(magick_wand); magick_wand=DestroyMagickWand(magick_wand); MagickWandTerminus(); return(0); }