LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-11-2007, 06:41 PM   #1
RemusX2
Member
 
Registered: Oct 2003
Location: Bozeman, Montana
Distribution: Gentoo 2010, Ubuntu 9.04
Posts: 175

Rep: Reputation: 30
Segfaults when trying to print


A few days ago, I could print normally, but now whenever I try to print I keep getting this error:

Code:
remus@Remus_Dinosaur ~ $ lpr -PHP_Deskjet_3900_USB_TH63I122VP04CG_HPLIP *pdf
remus@Remus_Dinosaur ~ $ dmesg
gs[28545]: segfault at 0000000000001274 rip 00000000005dd879 rsp 00007fff292e3388 error 4
gs[28696]: segfault at 0000000000001274 rip 00000000005dd879 rsp 00007fffc8c3bcd8 error 4
gs[5698]: segfault at 0000000000001274 rip 00000000005dd879 rsp 00007fff917b0848 error 4
remus@Remus_Dinosaur ~ $
I reinstalled cups with no luck.

Thanks
Brandon
 
Old 11-12-2007, 11:13 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
gs (the "ghostscript" postscript interpretter) is the name of the executable which is crashing. Try printing one file at a time, and seeing it it is just one of them which is causing the problem (I assume there is more than one file as you are using the pattern *pdf).

Also, try printing from kpdf or some other GUI-based PDF viewer.
 
Old 11-12-2007, 11:19 AM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Oh, one way to verify if it's just gs and not gs/cups communication - you can try to display the file with gs like this:
Code:
gs -sDEVICE=x11 *pdf
See if this also causes the crash.
 
Old 11-13-2007, 03:24 PM   #4
RemusX2
Member
 
Registered: Oct 2003
Location: Bozeman, Montana
Distribution: Gentoo 2010, Ubuntu 9.04
Posts: 175

Original Poster
Rep: Reputation: 30
Printing one file at a time still causes the segfault.
Code:
gs -sDEVICE=x11 QQplot.pdf
Displays the pdf file fine. And printing from Xpdf yields the same problems. A little more from dmesg appeared, which might help:

Code:
...
drivers/usb/class/usblp.c: usblp0: removed
gs[30078]: segfault at 0000000000001274 rip 00000000005ded99 rsp 00007fff11f5aff8 error 4
gs[30242]: segfault at 0000000000001274 rip 00000000005ded99 rsp 00007fff2b7647f8 error 4
remus@Remus_Dinosaur ~ $
I have also tried reinstalling ghostscript to see if that was the problem. No luck

Thanks
Brandon

Last edited by RemusX2; 11-13-2007 at 03:25 PM.
 
Old 11-13-2007, 04:51 PM   #5
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Hmm, curious! It looks like it's something in CUPS rather than the postscript rendering with gs, which is useful to know (narrows it down a little anyway). Further than that, I'm afraid I'm stumped. If you can post a link to the PDF file, maybe some users here can see if that file causes the same problem on their systems?
 
Old 11-13-2007, 07:30 PM   #6
RemusX2
Member
 
Registered: Oct 2003
Location: Bozeman, Montana
Distribution: Gentoo 2010, Ubuntu 9.04
Posts: 175

Original Poster
Rep: Reputation: 30
Here's a link to the PDF file

http://www.sendspace.com/file/51kjy1

The file is ~5kb. Don't know how long the server will host the file though. Few days probably

I did print a text document and it printed fine. I should have at least tested printing other things a while ago, silly me. I will just convert the PDF files into jpeg files in order to print them, or try. (Assignment due tomorrow) But I would still like to explore this problem

Thanks
Brandon
 
  


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
Print-to-file print driver to print PDF Bill Fox Linux - General 3 05-02-2006 05:15 PM
Gnomad 2 Segfaults doralsoral Linux - Software 0 12-12-2005 05:02 PM
X segfaults on startup... please help :( Napalm Llama Linux - Software 3 08-06-2005 07:02 AM
gimp-2.2 segfaults pingu Linux - Software 1 03-22-2005 07:03 AM
startssl segfaults :'( chr15t0 Linux - Software 7 01-21-2003 04:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:35 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