Author Topic: [SOLVED] can't print: segfault in libgs.so.9.0.2  (Read 421 times)

Offline gilado

  • Hero Member
  • *****
  • Posts: 524
[SOLVED] can't print: segfault in libgs.so.9.0.2
« on: July 20, 2012, 11:34:03 PM »
Found this post elsewhere

http://us.generation-nt.com/answer/bug-639827-gstoraster-segfaults-attempt-print-help-204626081.html

Here's the log line from my /var/log/messages

Jul 20 22:28:18 machine klogd: gs[4276]: segfault at 80000000 ip b67fe200 sp bf9a55f0 error 6 in libgs.so.9.02[b6581000+5ce000]

However, Synaptic reports my installed libgs9 to be 9.04-2pclos2011

« Last Edit: July 21, 2012, 02:15:52 PM by gilado »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: can't print: segfault in libgs.so.9.0.2
« Reply #1 on: July 21, 2012, 12:49:58 AM »

However, Synaptic reports my installed libgs9 to be 9.04-2pclos2011


Same here.

Code: [Select]
[darrel@Duron ~]$ rpm -q --provides libgs9-9.04-2pclos2011
libgs.so.9
libgs9 = 9.04-2pclos2011
[darrel@Duron ~]$ ls -l /usr/lib/libgs.so.*
lrwxrwxrwx 1 root root       13 Sep 29  2011 /usr/lib/libgs.so.9 -> libgs.so.9.02*
-rwxr-xr-x 1 root root 18166512 Sep 23  2011 /usr/lib/libgs.so.9.02*
[darrel@Duron ~]$
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline gilado

  • Hero Member
  • *****
  • Posts: 524
Re: can't print: segfault in libgs.so.9.0.2
« Reply #2 on: July 21, 2012, 12:04:43 PM »
I found the mandrake 9.04 which provides libgs.so.9.04

It won't install because of four dependencies.
Quote
libjasper.so.1 is needed by libgs9-9.04-4.i586
libjpeg.so.8 is needed by libgs9-9.04-4.i586
libpng15.so.15 is needed by libgs9-9.04-4.i586
libtiff.so.5 is needed by libgs9-9.04-4.i586

I resolved two of them by installing from Synaptic libjasper1 (the default is libjaspar.1.701_1 ?) and libtiff4

I now have to resolve these two:
Quote
libjpeg.so.8 is needed by libgs9-9.04-4.i586
libpng15.so.15 is needed by libgs9-9.04-4.i586
But there nothing in Synpatic that would do that.

Another option is to revert to older ghostscript that uses libgs.so.8.  On my other machine, where printing works, I find
Quote
# rpm -q --whatrequires libgs.so.8
ghostscript-8.64-71pclos2010
ghostscript-X-8.64-71pclos2010

A third option is to create a symlink replacing libgs.so.9 with libgs.so.8. On this machine, The only other thing that uses libgs.so.9 (indirectly) is okular.




Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: can't print: segfault in libgs.so.9.0.2
« Reply #3 on: July 21, 2012, 01:03:06 PM »
gilado,

Although I'm showing the same files on my computers as yours, I have no problems printing. I just noticed, after reading the link you posted again, that it was posted almost one year ago. I believe your problem lies elsewhere, but I can't tell you where. Have you tried completely removing libgs9 and whatever packages rely on it, then reinstalling?
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline gilado

  • Hero Member
  • *****
  • Posts: 524
Re: can't print: segfault in libgs.so.9.0.2
« Reply #4 on: July 21, 2012, 02:15:22 PM »
I think it depends on what and how you print.

I am printing from Firefox, a page that includes text and images. It seems to be first converted to postscript then sent to the machine to which the printer is connected to.

I linked libg.so.9 to the lib.gs.so.8.64 and now printing works. Okular does too!
Quote
cd /usr/lib
ls -l libgs.so*
ln -sf libgs.so.8.64 libgs.so.9
ls -l libgs.so*

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: can't print: segfault in libgs.so.9.0.2
« Reply #5 on: July 21, 2012, 02:19:20 PM »

I linked libg.so.9 to the lib.gs.so.8.64 and now printing works. Okular does too!

Quote
cd /usr/lib
ls -l libgs.so*
ln -sf libgs.so.8.64 libgs.so.9
ls -l libgs.so*

Persistence and knowledge pay off! Glad you solved it.  ;D
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline hal8000

  • Sr. Member
  • ****
  • Posts: 346
Re: can't print: segfault in libgs.so.9.0.2
« Reply #6 on: July 22, 2012, 03:08:14 AM »
I think it depends on what and how you print.

I am printing from Firefox, a page that includes text and images. It seems to be first converted to postscript then sent to the machine to which the printer is connected to.

I linked libg.so.9 to the lib.gs.so.8.64 and now printing works. Okular does too!
Quote
cd /usr/lib
ls -l libgs.so*
ln -sf libgs.so.8.64 libgs.so.9
ls -l libgs.so*

I know you solved it, but at what point did printing not work for you?
I am using kernel 3.2.18 but not still using kde4.65, was it after an
update or some other event?
Printing is working fine for me, HP970CXi with duplex (both sides).

Offline gilado

  • Hero Member
  • *****
  • Posts: 524
Re: [SOLVED] can't print: segfault in libgs.so.9.0.2
« Reply #7 on: July 25, 2012, 02:21:04 AM »
It was after an update. I'm running  4.6.5

Quote
$ kde-open -v
Qt: 4.8.2
KDE Development Platform: 4.6.5 (4.6.5)
KIO Client: 2.0

The other machine where printing has always worked:

Quote
$ kde-open -v
Qt: 4.7.1
KDE Development Platform: 4.5.4 (KDE 4.5.4)
KIO Client: 2.0



Offline symcbean

  • New Friend
  • *
  • Posts: 1
Re: [SOLVED] can't print: segfault in libgs.so.9.0.2
« Reply #8 on: March 07, 2013, 02:40:51 AM »
I've recently started experiencing the same problem with my PCLinuxOS 2012 installation. Surprisingly I've found that the fault occurs reproducibly when printing in landscape orientation - i.e. when ghostscript has to rotate the content through 90 deg - but never in portrait mode.