Bug 215933

Summary: segfault in the cups print backend
Product: Red Hat Enterprise Linux 5 Reporter: Matthias Clasen <mclasen>
Component: gtksourceviewAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED WONTFIX QA Contact: desktop-bugs <desktop-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: cschalle, desktop-bugs, mclasen
Target Milestone: ---Keywords: Desktop, Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-02 13:17:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthias Clasen 2006-11-16 13:06:17 UTC
Under certain circumstances, the gtk cups print backend passes NULL to strncpy.
This was reported upstream as http://bugzilla.gnome.org/show_bug.cgi?id=359537

Comment 1 Matthias Clasen 2006-11-16 13:12:15 UTC
Fixed in gtk2-2.10.4-5.el5

Comment 2 RHEL Program Management 2006-11-16 13:20:32 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 4 Xiaohong Wang 2007-01-02 06:24:19 UTC
Did following testing in RHEL5-Client-20061226.nightly with gtk2-2.10.4-14.el5

test1:
1. run gedit in g-t
2. in gedit, select File -> Print (Print window pops up)
3. select "Create a PDF document" in "Printer" tab
4. Custom Paper size to be 8x6 in "Paper" tab
5. click "Print"
result: no PDF document created and in g-t, there is error message
----
(gedit:4997): GtkSourceView-CRITICAL **: update_page_size_and_margins: assertion
`job->priv->text_width > CM(5.0)' failed

** (gedit:4997): WARNING **: Async print preview failed
----

test2:
1. run gedit in g-t
2. in gedit, select File -> Print (Print window pops up)
3. Custom Paper size to be 8x6 in "Paper" tab
4. select "Create a PDF document" in "Printer" tab
5. click "Print"
result: a PDF document was created successuflly, but it is not the custom size
in page.



Comment 6 Matthias Clasen 2007-01-02 16:59:24 UTC
No.

The testing did not at all test the fix in this bug, since gedit does not even
use the gtk print support yet. 

The testing did reveal some bugs in the gedit print support, but they need to be
filed against gedit (the async preview failure) and gtksourceview (the
update_page_size_and_margins assertion). I don't think they qualify as blockers
at this point.

The async preview failure has a simple workaround: select a real printer in the
print dialog, then the preview works.

The failure to create a document with the proper dimensions, I could not
reproduce that here. C5/C6 and some other paper sizes worked fine here, and
I don't have 8x6 in my list of paper sizes...

Comment 9 RHEL Program Management 2007-06-05 20:50:27 UTC
This request was evaluated by Red Hat Product Management for
inclusion in a Red Hat Enterprise Linux release.  Since this
bugzilla is in a component that is not approved for the current
release, it has been closed with resolution deferred.  You may
reopen this bugzilla for consideration in the next release.

Comment 12 Ray Strode [halfline] 2007-12-18 22:28:45 UTC
The problem seems to be that:

- the default units is centimeters
- 8x6 centimeters is too small for gtksourceview

we should just clamp the values in the dialog to the gtksourceview minimums i guess

Comment 13 Ray Strode [halfline] 2007-12-19 16:47:49 UTC
or rather remove the limits, they're arbitrary

Comment 15 RHEL Program Management 2014-03-07 13:42:43 UTC
This bug/component is not included in scope for RHEL-5.11.0 which is the last RHEL5 minor release. This Bugzilla will soon be CLOSED as WONTFIX (at the end of RHEL5.11 development phase (Apr 22, 2014)). Please contact your account manager or support representative in case you need to escalate this bug.

Comment 16 RHEL Program Management 2014-06-02 13:17:17 UTC
Thank you for submitting this request for inclusion in Red Hat Enterprise Linux 5. We've carefully evaluated the request, but are unable to include it in RHEL5 stream. If the issue is critical for your business, please provide additional business justification through the appropriate support channels (https://access.redhat.com/site/support).