Bug 783393

Summary: sealert tracebacks with "ZeroDivisionError: float division"
Product: Red Hat Enterprise Linux 5 Reporter: Milos Malik <mmalik>
Component: setroubleshootAssignee: Daniel Walsh <dwalsh>
Status: CLOSED NEXTRELEASE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.8CC: mgrepl
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-24 19:47:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Milos Malik 2012-01-20 09:06:57 UTC
Description of problem:


Version-Release number of selected component (if applicable):
setroubleshoot-plugins-2.0.4-2.el5
setroubleshoot-server-2.0.5-5.el5
setroubleshoot-2.0.5-5.el5

How reproducible:
always

Steps to Reproduce:
# rm -f dummy-audit.log 
# touch dummy-audit.log
# sealert -a dummy-audit.log 
100% doneTraceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/setroubleshoot/analyze.py", line 620, in task
    self.progress = float(self.n_bytes_read) / float(self.file_size)
ZeroDivisionError: float division

  
Actual results:
* a traceback

Expected results:
* no traceback, sealert skips the processing of empty file

Comment 1 Miroslav Grepl 2012-01-23 15:04:11 UTC
We have a fix for this in Fedora/RHEL.

Comment 2 RHEL Program Management 2012-06-12 01:33:02 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.