Bug 848900

Summary: [abrt] setroubleshoot-server-3.1.15-1.fc17: analyze.py:283:prune:ValueError: list modified during sort
Product: [Fedora] Fedora Reporter: Jose Mendoza <joseomendoza>
Component: setroubleshootAssignee: Daniel Walsh <dwalsh>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f2de01059fedce31648d2f72ae60b9944e2e25b3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-24 19:42:30 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
File: core_backtrace
none
Here is the requested output none

Description Jose Mendoza 2012-08-16 18:22:02 UTC
Description of problem:
I am unable to tell you what happenned. Last thing I did on the fedora box was, that I was chatting with a co-worker in pidgin but had been idle for about a minute or so, then I heard a pop sound from the desktop and when I looked at the find bar, I saw the notification. I am not sure how long it was there. Yesterday I installed security patches and rebooted. Last Friday, I  installed vlc for watching video clips from my family pictures.

Version-Release number of selected component:
setroubleshoot-server-3.1.15-1.fc17

Additional info:
libreport version: 2.0.12
abrt_version:   2.0.11
cmdline:        /usr/bin/python -Es /usr/sbin/setroubleshootd -f ''
kernel:         3.5.1-1.fc17.x86_64

backtrace:
:analyze.py:283:prune:ValueError: list modified during sort
:
:Traceback (most recent call last):
:  File "/usr/lib64/python2.7/site-packages/setroubleshoot/analyze.py", line 366, in auto_save_callback
:    self.save()
:  File "/usr/lib64/python2.7/site-packages/setroubleshoot/analyze.py", line 344, in save
:    self.prune()
:  File "/usr/lib64/python2.7/site-packages/setroubleshoot/analyze.py", line 283, in prune
:    self.sigs.signature_list.sort(lambda a,b: cmp(a.last_seen_date, b.last_seen_date))
:ValueError: list modified during sort
:
:Local variables in innermost frame:
:self: <setroubleshoot.analyze.SETroubleshootDatabase object at 0xec0910>

Comment 1 Jose Mendoza 2012-08-16 18:22:06 UTC
Created attachment 604989 [details]
File: core_backtrace

Comment 2 Daniel Walsh 2012-08-16 18:37:52 UTC
Can you attach the output of 

# ausearch -m avc

Comment 3 Jose Mendoza 2012-08-16 20:16:17 UTC
Created attachment 605005 [details]
Here is the requested output

I am not sure this is related but, I think there might be a problem with my /tmp partition filling up. it has 140892 files from systemd-namespace.

thanks,

Comment 4 Jose Mendoza 2012-08-16 20:18:20 UTC
ALso mailScanner is flooding my temp partition. I will clean it up.

Comment 5 Daniel Walsh 2012-08-16 20:22:05 UTC
Should have compressed the file.  :^(

Comment 6 Daniel Walsh 2012-08-16 20:28:23 UTC
Jose 

If you run 

restorecon -R -v /var/spool

Does that change any labels?

You also have a process that is creating files in /tmp/MailScanner.WyIslz

Comment 7 Jose Mendoza 2012-08-16 20:36:15 UTC
I am not familiar with the restorecon selinux terminology so here is the output from the restorecon

[root@C0PSMS1 ~]# restorecon -R -v /var/spool
restorecon reset /var/spool/MailScanner context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/mcafee6Busy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/MS.bayes.starting.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/symscanengineBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/sophosBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/f-secureBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/vexiraBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/antivirBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/mcafeeBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/esetsBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/MS.bayes.rebuild.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/clamavBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/avastBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/f-protBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/vba32Busy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/trendBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/bitdefenderBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/f-prot-6Busy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/normanBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/kasperskyBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/genericBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/inoculanBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/etrustBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/pandaBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/nod32Busy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/avgBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/ravBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/incoming/Locks/cssBusy.lock context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/quarantine context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/quarantine/phishingupdate context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/quarantine/phishingupdate/cache context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/quarantine/phishingupdate/cache/2012-334.95 context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/quarantine/phishingupdate/cache/2012-334 context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0
restorecon reset /var/spool/MailScanner/quarantine/phishingupdate/status context system_u:object_r:var_spool_t:s0->system_u:object_r:clamd_var_run_t:s0

Comment 8 Daniel Walsh 2012-08-17 10:09:31 UTC
SELinux is a labeling system, It puts labels on all files/directories and processes.  If the labels are in correct SELinux will generate errors.

restorecon is a command that will put files back to the default label.  In this case you were getting lots of denials because of /var/spool being mislabeled.

I also see lots of files being created in /tmp with the wrong label on them. Although I don't know how they are being mislabeled.