LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Segfaults when trying to print (https://www.linuxquestions.org/questions/linux-software-2/segfaults-when-trying-to-print-598884/)

RemusX2 11-11-2007 05:41 PM

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

matthewg42 11-12-2007 10:13 AM

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.

matthewg42 11-12-2007 10:19 AM

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.

RemusX2 11-13-2007 02:24 PM

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

matthewg42 11-13-2007 03:51 PM

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?

RemusX2 11-13-2007 06:30 PM

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


All times are GMT -5. The time now is 11:38 AM.