LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-29-2013, 03:25 PM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
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?
 
Old 08-29-2013, 04:36 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,147

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
Try validating the file:
http://www.validatepdfa.com/
 
Old 08-29-2013, 04:43 PM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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.
 
Old 08-29-2013, 06:23 PM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
What version of "convert" do you use? Maybe it need upgrading (with libraries).
 
Old 08-30-2013, 02:17 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 08-30-2013, 07:41 AM   #6
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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.
 
Old 08-30-2013, 09:01 AM   #7
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
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.
 
1 members found this post helpful.
Old 08-30-2013, 10:37 AM   #8
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
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.
 
Old 08-30-2013, 12:53 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] The expect -c "spawn ls" check in section 6.12 of the book gives a segmentation fault ezekielrage Linux From Scratch 1 05-18-2011 08:58 AM
"Segmentation Fault" in gtkpod-git, should I try Amarok? [iPod Nano 5G] atari/ Linux - Software 4 04-19-2010 01:19 PM
"netstat -l" gives "segmentation fault" Earwig Linux - Newbie 2 03-31-2010 04:12 PM
sunbird 0.3 does not start, error: Segmentation fault : "$prog" ${1+"$@"} polemon Ubuntu 8 01-08-2007 04:22 AM
why iam getting problems like "...too many files opened" or "segmentation fault" naren_0101bits Linux - Newbie 2 07-19-2004 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration