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 1480647 - RFC: setroubleshootd crashing with error: ValueError: list modified during sort
Summary: RFC: setroubleshootd crashing with error: ValueError: list modified during sort
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: setroubleshoot
Version: 6.9
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-11 14:55 UTC by Paulo Andrade
Modified: 2020-09-10 11:13 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-15 17:51:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1315241 1 None None None 2021-01-20 06:05:38 UTC

Internal Links: 1315241

Description Paulo Andrade 2017-08-11 14:55:15 UTC
Backtrace is:

"""
:analyze.py:307:prune:ValueError: list modified during sort
:
:Traceback (most recent call last):
:  File "/usr/lib64/python2.6/atexit.py", line 24, in _run_exitfuncs
:    func(*targs, **kargs)
:  File "/usr/lib64/python2.6/site-packages/setroubleshoot/server.py", line 547, in goodbye
:    database.save()
:  File "/usr/lib64/python2.6/site-packages/setroubleshoot/analyze.py", line 377, in save
:    self.prune()
:  File "/usr/lib64/python2.6/site-packages/setroubleshoot/analyze.py", line 307, 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 0x1042b10>
"""

  My guess is that it is receiving a SIGHUP during exit,
causing the list to be reset.

  I found one extra similar report, but never resolved, at:
https://bugzilla.redhat.com/show_bug.cgi?id=1069203
[[abrt] setroubleshoot-server: analyze.py:283:prune:ValueError: list modified during sort]

  Unless I am missing some other condition where the list may
change during sort, I believe the fix is likely to block SIGHUP
during exit, as there is no point in rereading config files if
exiting.

Comment 3 Petr Lautrbach 2017-08-21 11:14:09 UTC
This bug is reported on Red Hat Enterprise Linux 6 but it seems to be a problem of Red Hat Enterprise Linux 7. There's already a similar bug for this - https://bugzilla.redhat.com/show_bug.cgi?id=1315241 - lets move the discussion there.


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