LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   convert giving "Segmentation fault" as only output and not converting file (https://www.linuxquestions.org/questions/linux-newbie-8/convert-giving-segmentation-fault-as-only-output-and-not-converting-file-4175475226/)

anon091 08-29-2013 03:25 PM

convert giving "Segmentation fault" as only output and not converting file
 
Hi guys. We have a process that runs a convert command line and every once it fails with a "Segmentation fault", but even if i throw in a -verbose that's all it says.

Any ideas how to tell what in the PDF that it's trying to convert to a PNG that it doesn't like?

smallpond 08-29-2013 04:36 PM

Try validating the file:
http://www.validatepdfa.com/

anon091 08-29-2013 04:43 PM

I used Acrobat to confirm it wasn't pdf/a, but none of them are. Although if I use acrobat to convert it to pdf/a compliant, convert then works on it.

eSelix 08-29-2013 06:23 PM

What version of "convert" do you use? Maybe it need upgrading (with libraries).

John VV 08-30-2013 02:17 AM

What "Convert" program ?
imagemagick ?
if so what version ?
or some other program ?

ghostscript ?
or netpbm ?

and what IS the command you are using ?
there is no useful information in the first post

anon091 08-30-2013 07:41 AM

here's the convert --version
Version: ImageMagick 6.2.8 03/31/08

This is running on RHEL 5.4. Unfortunately on this server yum no longer pulls updates so it's kinda stuck in time in that regard.

The command I'm using is /usr/bin/convert -scale 145 -depth 8 then the two file names, which works 95% of the time, but every once in a while we get segmentation errors, so wondering if there's a way to have convert tell me what it's failing on, or some trick to get it to still convert.

Does ghostscript even have a command named "convert"?

Sorry for not including more info on the how can I get more details out of convert question, thought it was a general enough output question that more details would be just fluff and get in the way.

eSelix 08-30-2013 09:01 AM

It is very old. It was 7 years ago and many bug fixes has been done since then. I am afraid that without updating you will not force this tool to work better. For converting PDF to image format you can also use "pdftocairo" from Poppler tools, also Gimp can do that.

anon091 08-30-2013 10:37 AM

I wouldn't even know how to manually update it, so I guess i'll try to tackle the originating PDFs. It has to be something odd with the PDFs as it happens rarely.

John VV 08-30-2013 12:53 PM

for RHEL 5.4 to the current older RHEL 5.9
1)
buy the required support contract
2)
register the install with redhat
3)
Code:

su -
yum --releserver=5.9 upgrade

or

port it over to CentOS
BUT CentOS recommends doing RHEL 5.9 to CentOS 5.9 ( or rhel6.4 to CentOS 6.4)
a fully updated install of red hat , to the current updated centos


now you might be able to use the "CentOS" historical archive "The Vault" to update 5.4 to the lase update of 5.4
then upgrade cent to 5.9


All times are GMT -5. The time now is 12:14 AM.