LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 04:25 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Rep: Reputation: 46
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, 05:36 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,609

Rep: Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702Reputation: 702
Try validating the file:
http://www.validatepdfa.com/
 
Old 08-29-2013, 05:43 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
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, 07:23 PM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

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

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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, 08:41 AM   #6
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
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, 10:01 AM   #7
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,252

Rep: Reputation: 313Reputation: 313Reputation: 313Reputation: 313
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, 11:37 AM   #8
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
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, 01:53 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:58 AM
"Segmentation Fault" in gtkpod-git, should I try Amarok? [iPod Nano 5G] atari/ Linux - Software 4 04-19-2010 02:19 PM
"netstat -l" gives "segmentation fault" Earwig Linux - Newbie 2 03-31-2010 05:12 PM
sunbird 0.3 does not start, error: Segmentation fault : "$prog" ${1+"$@"} polemon Ubuntu 8 01-08-2007 05:22 AM
why iam getting problems like "...too many files opened" or "segmentation fault" naren_0101bits Linux - Newbie 2 07-19-2004 01:20 PM


All times are GMT -5. The time now is 10:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration