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 1666645

Summary: [modularity] dnf module list: Error in /usr/bin/python2: double free or corruption
Product: Red Hat Enterprise Linux 7 Reporter: Eva Mrakova <emrakova>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: high    
Version: 7.6CC: dmach, jblazek, jmracek
Target Milestone: rcKeywords: Extras, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-18 11:51:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1667942    
Bug Blocks:    

Description Eva Mrakova 2019-01-16 09:45:56 UTC
Description of problem:

when there are some (testing) modules available on rhel-7, 'dnf module list' ends up with 
*** Error in `/usr/bin/python2': double free or corruption (fasttop): 0x0000000000d37ec0 ***

Note: it is possible to enable/install the testing module

Version-Release number of selected component (if applicable):
dnf-4.0.9.2-1.el7_6.noarch
libmodulemd-1.6.3-1.el7.x86_64
libdnf-0.22.5-1.el7_6.x86_64


How reproducible:
always


Steps to Reproduce:
1. create some testing module (available in an enabled repo)
2. run 'dnf module list'

Actual results:
# dnf module list
Last metadata expiration check: 0:03:15 ago on Wed 16 Jan 2019 04:27:56 AM EST.
Detection of Platform Module failed: Missing PLATFORM_ID in /etc/os-release
*** Error in `/usr/bin/python2': double free or corruption (fasttop): 0x0000000000d37ec0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x81489)[0x7fc7e834f489]
/usr/lib64/python2.7/site-packages/libdnf/_smartcols.so(+0x108c4)[0x7fc7d1e648c4]
/lib64/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7fc7e900ba63]
/lib64/libpython2.7.so.1.0(PyObject_CallFunctionObjArgs+0xbc)[0x7fc7e900c35c]
/usr/lib64/python2.7/site-packages/libdnf/_smartcols.so(+0xb6d0)[0x7fc7d1e5f6d0]
/lib64/libpython2.7.so.1.0(+0x811af)[0x7fc7e90411af]
/lib64/libpython2.7.so.1.0(+0x9dc44)[0x7fc7e905dc44]
/lib64/libpython2.7.so.1.0(+0x6f3a2)[0x7fc7e902f3a2]
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x67d9)[0x7fc7e90a46d9]
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x67bd)[0x7fc7e90a46bd]
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7ed)[0x7fc7e90a703d]
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x663c)[0x7fc7e90a453c]
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7ed)[0x7fc7e90a703d]
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x663c)[0x7fc7e90a453c]
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7ed)[0x7fc7e90a703d]
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x663c)[0x7fc7e90a453c]
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7ed)[0x7fc7e90a703d]
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x663c)[0x7fc7e90a453c]
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7ed)[0x7fc7e90a703d]
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x663c)[0x7fc7e90a453c]
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7ed)[0x7fc7e90a703d]
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x663c)[0x7fc7e90a453c]
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7ed)[0x7fc7e90a703d]
/lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x663c)[0x7fc7e90a453c]
/lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7ed)[0x7fc7e90a703d]
/lib64/libpython2.7.so.1.0(PyEval_EvalCode+0x32)[0x7fc7e90a7142]
/lib64/libpython2.7.so.1.0(+0x10057f)[0x7fc7e90c057f]
/lib64/libpython2.7.so.1.0(PyRun_FileExFlags+0x7e)[0x7fc7e90c173e]
/lib64/libpython2.7.so.1.0(PyRun_SimpleFileExFlags+0xe9)[0x7fc7e90c29c9]
/lib64/libpython2.7.so.1.0(Py_Main+0xc9f)[0x7fc7e90d3b7f]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7fc7e82f03d5]
/usr/bin/python2[0x40066e]
======= Memory map: ========
00400000-00401000 r-xp 00000000 fd:01 4270456                            /usr/bin/python2.7
00600000-00601000 r--p 00000000 fd:01 4270456                            /usr/bin/python2.7
00601000-00602000 rw-p 00001000 fd:01 4270456                            /usr/bin/python2.7
00841000-010cc000 rw-p 00000000 00:00 0                                  [heap]
7fc7cc000000-7fc7cc021000 rw-p 00000000 00:00 0 
7fc7cc021000-7fc7d0000000 ---p 00000000 00:00 0 
7fc7d0d12000-7fc7d0de3000 rw-p 00000000 00:00 0 
7fc7d124f000-7fc7d130f000 rw-p 00000000 00:00 0 
7fc7d130f000-7fc7d1313000 r-xp 00000000 fd:01 2286677                    /usr/lib64/python2.7/lib-dynload/termios.so
7fc7d1313000-7fc7d1512000 ---p 00004000 fd:01 2286677                    /usr/lib64/python2.7/lib-dynload/termios.so
7fc7d1512000-7fc7d1513000 r--p 00003000 fd:01 2286677                    /usr/lib64/python2.7/lib-dynload/termios.so
7fc7d1513000-7fc7d1515000 rw-p 00004000 fd:01 2286677                    /usr/lib64/python2.7/lib-dynload/termios.so
7fc7d1515000-7fc7d153a000 r-xp 00000000 fd:01 6341607                    /usr/lib64/libtinfo.so.5.9
7fc7d153a000-7fc7d173a000 ---p 00025000 fd:01 6341607                    /usr/lib64/libtinfo.so.5.9
7fc7d173a000-7fc7d173e000 r--p 00025000 fd:01 6341607                    /usr/lib64/libtinfo.so.5.9
7fc7d173e000-7fc7d173f000 rw-p 00029000 fd:01 6341607                    /usr/lib64/libtinfo.so.5.9
7fc7d173f000-7fc7d1776000 r-xp 00000000 fd:01 6341599                    /usr/lib64/libncursesw.so.5.9
7fc7d1776000-7fc7d1975000 ---p 00037000 fd:01 6341599                    /usr/lib64/libncursesw.so.5.9
7fc7d1975000-7fc7d1976000 r--p 00036000 fd:01 6341599                    /usr/lib64/libncursesw.so.5.9
7fc7d1976000-7fc7d1977000 rw-p 00037000 fd:01 6341599                    /usr/lib64/libncursesw.so.5.9
7fc7d1977000-7fc7d1989000 r-xp 00000000 fd:01 2286597                    /usr/lib64/python2.7/lib-dynload/_curses.so
7fc7d1989000-7fc7d1b88000 ---p 00012000 fd:01 2286597                    /usr/lib64/python2.7/lib-dynload/_curses.so
7fc7d1b88000-7fc7d1b89000 r--p 00011000 fd:01 2286597                    /usr/lib64/python2.7/lib-dynload/_curses.so
7fc7d1b89000-7fc7d1b8b000 rw-p 00012000 fd:01 2286597                    /usr/lib64/python2.7/lib-dynload/_curses.so
7fc7d1b8b000-7fc7d1c4b000 rw-p 00000000 00:00 0 
7fc7d1c4b000-7fc7d1c53000 r-xp 00000000 fd:01 2286605                    /usr/lib64/python2.7/lib-dynload/_json.so
7fc7d1c53000-7fc7d1e52000 ---p 00008000 fd:01 2286605                    /usr/lib64/python2.7/lib-dynload/_json.so
7fc7d1e52000-7fc7d1e53000 r--p 00007000 fd:01 2286605                    /usr/lib64/python2.7/lib-dynload/_json.so
7fc7d1e53000-7fc7d1e54000 rw-p 00008000 fd:01 2286605                    /usr/lib64/python2.7/lib-dynload/_json.so
7fc7d1e54000-7fc7d1e86000 r-xp 00000000 fd:01 23068922                   /usr/lib64/python2.7/site-packages/libdnf/_smartcols.so
7fc7d1e86000-7fc7d2086000 ---p 00032000 fd:01 23068922                   /usr/lib64/python2.7/site-packages/libdnf/_smartcols.so
7fc7d2086000-7fc7d2087000 r--p 00032000 fd:01 23068922                   /usr/lib64/python2.7/site-packages/libdnf/_smartcols.so
7fc7d2087000-7fc7d208a000 rw-p 00033000 fd:01 23068922                   /usr/lib64/python2.7/site-packages/libdnf/_smartcols.so
7fc7d208a000-7fc7d210a000 rw-p 00000000 00:00 0 
7fc7d210a000-7fc7d212e000 r-xp 00000000 fd:01 39846117                   /usr/lib64/python2.7/site-packages/hawkey/_hawkeymodule.so
7fc7d212e000-7fc7d232e000 ---p 00024000 fd:01 39846117                   /usr/lib64/python2.7/site-packages/hawkey/_hawkeymodule.so
7fc7d232e000-7fc7d232f000 r--p 00024000 fd:01 39846117                   /usr/lib64/python2.7/site-packages/hawkey/_hawkeymodule.so
7fc7d232f000-7fc7d2334000 rw-p 00025000 fd:01 39846117                   /usr/lib64/python2.7/site-packages/hawkey/_hawkeymodule.so
7fc7d2334000-7fc7d2374000 rw-p 00000000 00:00 0 
7fc7d2374000-7fc7d2381000 r-xp 00000000 fd:01 4320763                    /usr/lib64/python2.7/site-packages/lzma.so
7fc7d2381000-7fc7d2580000 ---p 0000d000 fd:01 4320763                    /usr/lib64/python2.7/site-packages/lzma.so
7fc7d2580000-7fc7d2581000 r--p 0000c000 fd:01 4320763                    /usr/lib64/python2.7/site-packages/lzma.soAborted


Expected results:
no errors

Comment 2 Daniel Mach 2019-07-18 11:51:31 UTC
Fixed as part of yum4 rebase to dnf 4.x already.