Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1096147

Summary: [abrt] yum: history.py:1440:search:AssertionError
Product: Red Hat Enterprise Linux 7 Reporter: Martin <mholec>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED ERRATA QA Contact: Karel Srot <ksrot>
Severity: low Docs Contact:
Priority: low    
Version: 7.0CC: james.antill, ksrot, tpelka, vmukhame
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:751d1f006bb67840b692cb3b94e438597241de7e
Fixed In Version: yum-3.4.3-121.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1143824 1155994 (view as bug list) Environment:
Last Closed: 2015-03-05 09:04:01 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: backtrace
none
File: environ
none
File: sosreport.tar.xz none

Description Martin 2014-05-09 10:00:05 UTC
Version-Release number of selected component:
yum-3.4.3-117.el7

Additional info:
reporter:       libreport-2.1.11
cmdline:        /usr/bin/python /usr/bin/yum history info '\x1b[B'
executable:     /usr/bin/yum
kernel:         3.10.0-121.el7.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
history.py:1440:search:AssertionError

Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 355, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 174, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 571, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 3064, in doCommand
    ret = base.historyInfoCmd(extcmds)
  File "/usr/share/yum-cli/output.py", line 2192, in historyInfoCmd
    tids.update(self.history.search(pats))
  File "/usr/lib/python2.7/site-packages/yum/history.py", line 1440, in search
    assert nps
AssertionError

Local variables in innermost frame:
need_full: False
ignore_case: True
cur: <sqlite3.Cursor object at 0x2975260>
pkgtupids: set([])
fields: ['name']
self: <yum.history.YumHistory instance at 0x2950cb0>
ret: []
patterns: ['\x1b[B']
names: False
pat_max: 128
npatterns: ['\x1b[B']
data: (False, [], ['name'], False)
nps: []

Comment 1 Martin 2014-05-09 10:00:08 UTC
Created attachment 893940 [details]
File: backtrace

Comment 2 Martin 2014-05-09 10:00:14 UTC
Created attachment 893941 [details]
File: environ

Comment 3 Martin 2014-05-09 10:00:45 UTC
Created attachment 893942 [details]
File: sosreport.tar.xz

Comment 6 James Antill 2014-09-16 21:20:37 UTC
Mostly fixed by:

commit 5efc1e1b88398da7f89dcb9055d62481bb288a8a
Author: James Antill <james>
Date:   Tue Sep 16 16:33:33 2014 -0400

    Workaround history searching for [abc] character lists failures. BZ 1096147.

Comment 11 errata-xmlrpc 2015-03-05 09:04:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0398.html