RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 507944 - Slight chance for uninitialized self.kdumpEnabled variable
Summary: Slight chance for uninitialized self.kdumpEnabled variable
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kexec-tools
Version: 6.0
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Neil Horman
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-24 19:40 UTC by Jay Turner
Modified: 2015-01-08 00:16 UTC (History)
2 users (show)

Fixed In Version: kexec-tools-2.0.0-33.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-20 13:14:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jay Turner 2009-06-24 19:40:43 UTC
Description of problem:
kexec-tools-2.0.0-16.el6 has a slight exposure for an uninitialized variable.

Version-Release number of selected component (if applicable):
2.0.0-16.el6

How reproducible:
Always

Steps to Reproduce:
1. Install a system where crashkernel is on the cmdline but the kdump service itself is chkconfig'd off
2. Boot up the system into firstboot
  
Actual results:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/firstboot/interface.py", line 274,
in createScreens
    module.createScreen()
  File "/usr/share/firstboot/modules/firstboot_kdump.py", line 158, in
createScreen
    self.initialState = self.kdumpEnabled
AttributeError: moduleClass instance has no attribute 'kdumpEnabled'  

Expected results:
Love, luck and lollipops!

Additional info:
While fairly contrived, I could see the case where this might happen somehow.  And given that the fix is simply initializing the self.kdumpEnabled variable in the createScreen function, makes more sense to just initialize instead of risk customers hitting the error.

Comment 1 RHEL Program Management 2009-06-24 20:07:44 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 2 Neil Horman 2009-06-25 18:12:19 UTC
fixed in -17.el6.  I actually found several variables that were previously global but needed to be made part of the class instance here, so I've fixed them all.  Thanks!

Comment 3 releng-rhel@redhat.com 2009-10-30 22:11:15 UTC
Fixed in 'kexec-tools-2.0.0-33.el6'. 'kexec-tools-2.0.0-36.el6' included in compose 'RHEL6.0-20091029.0'.
Moving to ON_QA.

Comment 4 Jay Turner 2009-11-05 12:48:10 UTC
Fix confirmed with 2.0.0-37.el6 which is included in the 20091103.0 tree.

Comment 5 Jay Turner 2010-01-20 13:14:41 UTC
kexec-tools-2.0.0-48.el6 included in RHEL6.0-20100116.0.


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