Bug 458473

Summary: segfault in glabels-batch
Product: [Fedora] Fedora Reporter: Casey Harkins <charkins>
Component: glabelsAssignee: Peter Gordon <peter>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: jspaleta
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://sourceforge.net/tracker/index.php?func=detail&aid=2043356&group_id=46122&atid=445116
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-05 12:18:35 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:
Attachments:
Description Flags
initialize preferences subsystem in glabels-batch to avoid segfault none

Description Casey Harkins 2008-08-08 17:43:51 UTC
Created attachment 313822 [details]
initialize preferences subsystem in glabels-batch to avoid segfault

Description of problem:

A bug exists in glabels which will always cause the glabels-batch command line utility to segfault. It is attempting to access a member of a preferences structure which is NULL. 

Version-Release number of selected component (if applicable):

At least 2.2.1 and 2.2.2. We just noticed this problem as Fedora 8 updated from version 2.0.2 (which does not have this bug) to 2.2.2.

How reproducible:

100% of the time for all valid inputs.

Steps to Reproduce:
1. Run the glabels-batch utility with any valid *.glabels file.
  
Actual results:

Segfault.

Expected results:

Depends on your parameters, but in most cases you would be generating a postscript file based on the specified label template using a merge data file specified on the command line. If a full test case is desired (sample *.glabels file and sample merge data), I would be happy to provide it. However, this is a pretty simple bug to track down and a one liner patch is available to fix it.

Additional info:

This bug was previously reported upstream. I've just submitted a one line patch to resolve this bug upstream. I recommend that Fedora apply the patch to the Fedora 8 and 9 packages to resolve this crash until it is fixed upstream.

Patch submitted upstream: https://sourceforge.net/tracker/index.php?func=detail&aid=2043356&group_id=46122&atid=445116

Comment 1 Peter Gordon 2008-08-09 03:05:09 UTC
Thanks for the bug report, and submitting the patch upstream. Will be committed to Fedora momentarily.

Comment 2 Fedora Update System 2008-08-09 04:21:11 UTC
glabels-2.2.2-2.fc9 has been submitted as an update for Fedora 9

Comment 3 Fedora Update System 2008-08-09 04:28:48 UTC
glabels-2.2.2-2.fc8 has been submitted as an update for Fedora 8

Comment 4 Fedora Update System 2008-08-12 18:21:07 UTC
glabels-2.2.2-2.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update glabels'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-7161

Comment 5 Fedora Update System 2008-08-12 18:24:29 UTC
glabels-2.2.2-2.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update glabels'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-7203

Comment 6 Fedora Update System 2008-09-05 12:18:33 UTC
glabels-2.2.2-2.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2008-09-10 06:51:27 UTC
glabels-2.2.2-2.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2008-09-10 07:02:06 UTC
glabels-2.2.2-2.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.