The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
Date: Wed, 26 Jul 2000 13:32:31 +0200
From: Mark Overmeer <markov@ATComputing.nl>
To: Chris Wareham <chris.wareham@catchword.com>
Subject: Re: core dump in simple ImageMagick example
Message-ID: <20000726133231.G25170@atcmpg.ATComputing.nl>
References: <397C6C6B.989E4BB2@catchword.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 1.0pre4i
In-Reply-To: <397C6C6B.989E4BB2@catchword.com>; from chris.wareham@catchword.com on Mon, Jul 24, 2000 at 05:18:51PM +0100
Status: RO
Content-Length: 2223
Lines: 55

* Chris Wareham (chris.wareham@catchword.com) [000724 18:24]:
> ***********************************************************************
> This list is being decommissioned.  Please join one or more of the new
> ImageMagick mailing lists as described at
> http://www.imagemagick.org/www/magick-list.html.
> ***********************************************************************
> 
> The following snippet of code coew dumps on ReadImage():
> 
>  GetExceptionInfo(&exception);
>  image_info = CloneImageInfo((ImageInfo *)NULL);
> 
>  strcpy(image_info->filename, IMAGEDIR);
>  strcat(image_info->filename, "/");
>  strcat(image_info->filename, filename);
> 
>  image = ReadImage(image_info, &exception);
>  if(image == (Image *)NULL) {
>    log_error("unable to read image '%s'", filename);
>    return;
>  }
> 
> The debugger output is the following:
> 
>  Program received signal SIGSEGV, Segmentation fault.
>  0x403a0058 in _IO_getc (fp=0x67616d69) at getc.c:39
>  39     getc.c: No such file or directory.
>  (gdb) bt
>  #0  0x403a0058 in _IO_getc (fp=0x67616d69) at getc.c:39
>  #1  0x4005eb8d in SetImageInfo () from /usr/local/lib/libMagick.so.5
>  #2  0x4003c91e in ReadImage () from /usr/local/lib/libMagick.so.5
>  #3  0x80491dd in process_image (dbm=0x804bea0, filename=0x806a157
> "00132aac.tif") at tif2png.c:107
>  #4  0x8048fd3 in convert_images (args=0xbffff9f4) at tif2png.c:55
>  #5  0x8048e6c in main (argc=1, argv=0xbffff9f4) at tif2png.c:21

I have the same problem using PerlMagick 5.2.2 calling ReadImage.
However, it is only reproduceable when this statement is included in
my huge Perl program with a small IM part, not is a smaller sample
as you have.

I run Solaris 2.5.1 and all newest image-libs attached.

Did you get any useful reply which fixed your problem.
Didi you know there is a bug-list:
http://www.simplesystems.org/ImageMagick/bugs/

Please let me know.
-- 
               MarkOv       %-]

------------------------------------------------------------------------
drs Mark A.C.J. Overmeer                           markov@ATComputing.nl
AT Computing, UNIX Training and Consultancy    http://www.ATComputing.nl
http://www.dhp.nl/~markov/                         http://satfoto.dhp.nl