Bug 2405 - libgs segmentation fault at printing
Summary: libgs segmentation fault at printing
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2011-08-10 14:19 CEST by Martial Montrichard
Modified: 2012-02-24 23:29 CET (History)
5 users (show)

See Also:
Source RPM: ghostscript-9.02-2.mga1.src.rpm
CVE:
Status comment:


Attachments

Description Martial Montrichard 2011-08-10 14:19:09 CEST
Description of problem:
When I want to print an image with rotation option, the printing is stopped with a segmentation fault in libgs.

Two types of crash (extract of dmesg report):
gs[10695]: segfault at 2800088000 ip 00007f5d97ce5daf sp 00007fff505bd4e0 error 6 in libgs.so.9.02[7f5d97a03000+5fc000]
gs[11462] general protection ip:7fc86eea5daf sp:7fff222819f0 error:0 in libgs.so.9.02[7fc86ebc3000+5fc000]

Version-Release number of selected component (if applicable):
libgs.so.9.02
hplip 3.11.3a.5.mga1

How reproducible:
Problem is always reproductible with Gwenview, ShowFoto (seems that they use the same printing module).
Problem is not observed with Gimp.

Steps to Reproduce:
1.Select printing function
2.Configure the printing especially set a rotation option (basically set the landscape option or set the "automatic" rotation in image parameter of showfoto printing manager)
3.Launch the printing
Martial Montrichard 2011-08-10 14:19:23 CEST

CC: (none) => mmontrichard

Comment 1 Dave Hodgins 2011-09-13 05:11:25 CEST
Can you try the testing version of hplip, to see if it fixes the problem?

To install it, run drakrpm-edit-media.  Enable the "Core updates Testing"
repository.
Run urpmi hplip.
Disable the Core Updates Testing" repository.

Test the printing with rotation again.

CC: (none) => davidwhodgins

Comment 2 Martial Montrichard 2011-09-13 21:55:27 CEST
The package hplip-3.11.7-1.1.mga1 is only existing in the 32 bits Core_updates_Testing. I need it in the 64 bits repository to test.

Thanks
Comment 3 Dave Hodgins 2011-09-15 05:38:56 CEST
(In reply to comment #2)
> The package hplip-3.11.7-1.1.mga1 is only existing in the 32 bits
> Core_updates_Testing. I need it in the 64 bits repository to test.
> 
> Thanks

Which mirror are you using?  It's available in
ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/1/x86_64/media/core/updates_testing/hplip-3.11.7-1.1.mga1.x86_64.rpm
Comment 4 Martial Montrichard 2011-09-16 00:08:41 CEST
(In reply to comment #3)
> Which mirror are you using?  It's available in
> ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/1/x86_64/media/core/updates_testing/hplip-3.11.7-1.1.mga1.x86_64.rpm

OK, package is now here.
Unfortunately, after update bug is always here:
gs[3433]: segfault at 2800088000 ip 00007f4c2b75ddaf sp 00007fffd03a46b0 error 6 in libgs.so.9.02[7f4c2b47b000+5fc000]
Comment 5 Dave Hodgins 2011-09-16 01:43:54 CEST
I've updated the rpm package, as it's a ghostscript library module that's
generating the segfault.  The bug squad will have to figure out who the
maintainer is for gs.

Source RPM: libgs; hplip => ghostscript-9.02-2.mga1.src.rpm

Comment 6 Marja Van Waes 2011-11-30 16:17:19 CET
(In reply to comment #5)
> I've updated the rpm package, as it's a ghostscript library module that's
> generating the segfault.  The bug squad will have to figure out who the
> maintainer is for gs.

There isn't a maintainer for gs atm, but anaselli imported some patches from fedora for ghostscript-9.04-3.mga2 in cauldron

@ anaselli
Would those patches solve this?
If so, is it possible to get Mga1 ghostscript patched?

CC: (none) => anaselli, marja11

Comment 7 Angelo Naselli 2011-11-30 23:28:49 CET
as far as i can say they should not. And i tried to port them to fix my printing problem that is fixed in caudron for me, but i was not able to patch the 9.02 with them.
here you can find all:
http://pkgs.fedoraproject.org/gitweb/?p=ghostscript.git
Comment 8 Marja Van Waes 2012-01-25 10:49:13 CET
still no maintainer for ghostscript


@ Martial
Can you please look upstream and see whether you bug was already reported by someome there? http://bugs.ghostscript.com/buglist.cgi?quicksearch=ALL+segmentation+fault+print

If it wasn't, can you please report it? (Not that I know it is an upstream issue, but because if it is, we're wasting time waiting for a ghostscript maintainer here)

Is the bug there with any image you try to print rotated, btw, regardless of file type or size?


Just now, in Mageia 1, I first tried printing a landscape picture with gwenview and a large .jpg file, rotated the picture in gwenview without saving it and printed: that worked fine.

After that, I tried again, without rotating the picture first, but setting the printer to landscape. 
This time, I did get the general protecion message:
gs[22852] general protection ip:358fae2daf sp:7fff6ef80130 error:0 in libgs.so.9.02[358f800000+5fc000]
but I didn't get a segfault message. Nothing was printed of course and there were no messages in /var/log/cups/error_log

After that, it wasn't possible anymore to print using the method I tried first. I have a zombie gs process now, that refuses to get killed
Comment 9 Marja Van Waes 2012-01-25 11:19:10 CET
(In reply to comment #8)

>  a landscape picture with gwenview and a large .jpg file, 

minus "and" plus ","

it should be: a landscape picture with gwenview, a large .jpg file
Comment 10 Angelo Naselli 2012-01-25 11:52:22 CET
So it's hard to be replicated is it?
Anyway can the reporter test if he has the same problem using may packages as in
https://bugs.mageia.org/show_bug.cgi?id=2463#c16?

If the answer is no... maybe we should consider to go against our policy....
Comment 11 Marja Van Waes 2012-02-08 15:14:24 CET
@ Martial Montrichard

Did you try whether Angelo's packages in https://bugs.mageia.org/show_bug.cgi?id=2463#c16 fix your problem, as he asked you to in comment 10? 

Please report whether you still have that segfault or not with his packages.

Keywords: (none) => NEEDINFO
CC: (none) => doktor5000

Comment 12 Marja Van Waes 2012-02-24 23:29:08 CET
@ Angelo

Sorry, the reporter doesn't reply :(

Closing as old

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.