Bug 673147

Summary: [abrt] setroubleshoot-server-3.0.23-1.fc14: browser.py:648:on_details_button_clicked:IndexError: list index out of range
Product: [Fedora] Fedora Reporter: Don Vogt <dnvot>
Component: setroubleshootAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, jopires0, mgrepl, tadej.j, wspivak
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:7e974099
Fixed In Version: setroubleshoot-3.0.25-1.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-02 14:08:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
SE browser before the crash (3.0.25-1.fc14 update already applied) none

Description Don Vogt 2011-01-27 14:51:47 UTC
abrt version: 1.1.14
architecture: i686
cmdline: /usr/bin/python -Es /usr/bin/sealert -s
comment: I seem to have  a mixture of fc12 and 13 packages here.
component: setroubleshoot
executable: /usr/bin/sealert
kernel: 2.6.35.10-74.fc14.i686
package: setroubleshoot-server-3.0.23-1.fc14
reason: browser.py:648:on_details_button_clicked:IndexError: list index out of range
release: Fedora release 14 (Laughlin)
time: 1296138519
uid: 500

backtrace
-----
browser.py:648:on_details_button_clicked:IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/setroubleshoot/browser.py", line 648, in on_details_button_clicked
    message = self.alert_list[self.current_alert].format_text()
IndexError: list index out of range

Local variables in innermost frame:
widget: <gtk.Button object at 0x9c5ef54 (GtkButton at 0x8539888)>
self: <setroubleshoot.browser.BrowserApplet instance at 0x89daf0c>

How to reproduce
-----
1.I installed policycoreutils-sandbox and used it for a while successfully. I then did a yum update, after which snandboxx -X -t  sandbox_web_t firefox will not work. I only get a "flash" of the window, then nothing.
2. I can find no error messages, not in /var/log or in selinux trouble shoot. I tried uninstalling and re-installing policycoreutils-sandbox (and its' dependencies) with no change.
3. when Itried to look for an AVG using setroubleshoot I got this crash.

Comment 1 Don Vogt 2011-01-27 14:51:49 UTC
Created attachment 475615 [details]
File: backtrace

Comment 2 Daniel Walsh 2011-01-27 15:21:39 UTC
Fixed in setroubleshoot-server-3.0.25-1.fc14

Comment 3 Fedora Update System 2011-01-27 15:22:16 UTC
setroubleshoot-3.0.25-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/setroubleshoot-3.0.25-1.fc14

Comment 4 Daniel Walsh 2011-01-27 15:23:16 UTC
*** Bug 666622 has been marked as a duplicate of this bug. ***

Comment 5 Wayne Spivak 2011-01-29 23:25:09 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1.Executed program
2.
3.

Comment 6 Tadej Janež 2011-02-02 08:50:13 UTC
Package: setroubleshoot-server-3.0.23-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Laughlin)


How to reproduce
-----
1. I opened setroubleshoot and it had no alerts.
2. I clicked on Details button.
3. ABRT reported a crash.

Comment 7 Tadej Janež 2011-02-02 09:20:08 UTC
I just updated to setroubleshoot-3.0.25-1.fc14.i686 and it fixes the problem for me.

Comment 8 Fedora Update System 2011-02-08 23:00:00 UTC
setroubleshoot-3.0.25-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Jose Pires 2011-02-27 13:50:29 UTC
I have applied all pending updates to my Fedora 14, which includes the new version of setroubleshoot-3.0.25-1.fc14. Crash that I originally reporting in bug 666622 is still occurring. Steps:

- I received an notification that a SE alert occurred. I clicked on the icon to see the SE alert.
- The SELinux Alert Browser opened with no alerts and I see information "label" beside the 3 lines on the top.
- When I click Details, the crash occurs. I will attach a screen shot of SELinux Alert Browser for reference.

Comment 10 Jose Pires 2011-02-27 13:52:17 UTC
Package:    	setroubleshoot-server-3.0.25-1.fc14
Latest Crash:	Sun 27 Feb 2011 10:37:33 AM 
Command:    	/usr/bin/python -Es /usr/bin/sealert -s
Reason:     	browser.py:618:on_details_button_clicked:IndexError: list index out of range
Comment:    	None
Bug Reports:

Comment 11 Jose Pires 2011-02-27 13:56:08 UTC
Created attachment 481243 [details]
SE browser before the crash (3.0.25-1.fc14 update already applied)

Comment 12 Daniel Walsh 2011-02-28 18:32:20 UTC
I have an idea you have bad data, somehow.  Can you attach the /var/lib/setroubleshoot/setroubleshoot_database.xml

You probably can clear the database, by clicking list_all and then deleting the all records.

Comment 13 Jose Pires 2011-03-04 10:38:35 UTC
This is the /var/lib/setroubleshoot/setroubleshoot_database.xml content:

<?xml version="1.0" encoding="utf-8"?>
<sigs version="3.0">
  <users version="1.0">
    <user_list>
      <user username="pires" version="1.0">
        <email_alert>False</email_alert>
      </user>
    </user_list>
  </users>
</sigs>

Currently the database is empty. When I start the SELinux Alert Browser it says "No Alerts" and the List All Alerts button is disabled.

Comment 14 Daniel Walsh 2011-03-08 19:39:19 UTC
3.0.30-1.fc14

Should fix all the crashes.