core dump when converting pdf to tif

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
TOP
Posts: 3
Joined: 2017-05-18T06:50:38-07:00
Authentication code: 1151

core dump when converting pdf to tif

Post by TOP »

ImageMagick convert should exit gracefully instead of core dumping.

When using

Code: Select all

convert file1.pdf file1.tif
I get a core dump every time. I am able to convert the pdf to tif in gimp and then reverse the process back to pdf using convert.

Code: Select all

gimp file1.pdf
(work on file and export to file1.tif)

When I try to round trip the converted file, again there is a core dump.

Code: Select all

convert file1.tif file1.pdf
convert file1.pdf file1.tif
Core dump

Code: Select all

 convert -verbose file1.pdf file1.tif
[ghostscript library 9.10] -sstdout=%stderr -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 '-sDEVICE=pngalpha' -dTextAlphaBits=4 -dGraphicsAlphaBits=4 '-r72x72'  '-sOutputFile=/tmp/magick-16633_cBCw-bmiZRd%d' '-f/tmp/magick-16633AQAb5zwzPWcP' '-f/tmp/magick-16633vX70LEuwe0xq'Aborted (core dumped)

Code: Select all

Linux LAP1 4.4.0-75-generic #96~14.04.1-Ubuntu SMP Thu Apr 20 11:06:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

 convert -version
Version: ImageMagick 7.0.5-3 Q16 x86_64 2017-03-24 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP 
Delegates (built-in): autotrace bzlib djvu fftw fontconfig freetype gslib gvc jbig jng jpeg lcms lqr lzma openexr pangocairo png ps tiff webp wmf x xml zlib

Code: Select all

 gs -version
GPL Ghostscript 9.10 (2013-08-30)
Copyright (C) 2013 Artifex Software, Inc.  All rights reserved.
Log files:
dpkg.log

Code: Select all

configure imagemagick:amd64 8:6.7.7.10-6ubuntu3.6 <none>
2017-05-11 16:54:16 status unpacked imagemagick:amd64 8:6.7.7.10-6ubuntu3.6
2017-05-11 16:54:16 status half-configured imagemagick:amd64 8:6.7.7.10-6ubuntu3.6
2017-05-11 16:54:17 status installed imagemagick:amd64 8:6.7.7.10-6ubuntu3.6
syslog has nothing
no core dump files
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: core dump when converting pdf to tif

Post by fmw42 »

You might try upgrading Ghostscript. Version 9.10 is rather old. It is at least at 9.21. Or post your PDF file and we can test. You can post to any free hosting service and put the URL here.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: core dump when converting pdf to tif

Post by magick »

Its also likely that Ghostscript is core dumping rather than ImageMagick. An upgrade to Ghostscript may resolve the problem.
TOP
Posts: 3
Joined: 2017-05-18T06:50:38-07:00
Authentication code: 1151

Re: core dump when converting pdf to tif

Post by TOP »

Hmmm. Core dumping is still impolite.

Ghostscript on it's own has no problem8 with the files in question. If it is ghostscript and it is is only choking on the pdf files (and these files contain only scan data) then it is still up to ImageMagick to check that GS is at least the right version, don't you think?

But I'll try and upgrade it if I can.

I'll also try and place (a) file(s) on an accessible file sharing service and post a link later.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: core dump when converting pdf to tif

Post by fmw42 »

Try upgrading IM to the latest version 7.0.5.6 and the latest GS (9.21?) or post your failing PDF. There was some problems creating PDFs recently, though your issue is the opposite.
configure imagemagick:amd64 8:6.7.7.10-6ubuntu3.6 <none>
2017-05-11 16:54:16 status unpacked imagemagick:amd64 8:6.7.7.10-6ubuntu3.6
2017-05-11 16:54:16 status half-configured imagemagick:amd64 8:6.7.7.10-6ubuntu3.6
2017-05-11 16:54:17 status installed imagemagick:amd64 8:6.7.7.10-6ubuntu3.6
This seems to suggest that your are using IM 6.7.7.10 and not IM 7.0.5.3. Do I misunderstand?

Might you have a conflict between two active versions of ImageMagick?
TOP
Posts: 3
Joined: 2017-05-18T06:50:38-07:00
Authentication code: 1151

Re: core dump when converting pdf to tif

Post by TOP »

I installed a newer version of IM because I needed the hdri functionality to run retinex. Apparently I didn't remove the old version. Now trying to recompile it.
Post Reply