Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 670932

Summary: core dump when using example script
Product: Red Hat Enterprise Linux 6 Reporter: Joey Boggs <jboggs>
Component: PyPAMAssignee: Tomas Mraz <tmraz>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.0CC: msuchy, tmraz
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 658955 Environment:
Last Closed: 2011-01-19 20:11:36 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:
Bug Depends On: 658955    
Bug Blocks: 614460    

Description Joey Boggs 2011-01-19 17:12:00 UTC
Cloning for RHEL6 for RHEV-H use.

+++ This bug was initially created as a clone of Bug #658955 +++

Description of problem:
authentication will pass/fail successfully but there is a backtrace each time

python /usr/share/doc/PyPAM-0.5.0/examples/pamtest.py root
<pam object, service="login", user="(null)", conv=0x1cb0980, pamh=0x1cb52a0>
Password: 
Go away! (Error in service module)
*** glibc detected *** python: free(): invalid pointer: 0x00007ff153856d50 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3344e78e53]
/usr/lib64/libpython2.7.so.1.0[0x3351682187]
/usr/lib64/libpython2.7.so.1.0(PyDict_SetItem+0x70)[0x3351684bf0]
/usr/lib64/libpython2.7.so.1.0(_PyModule_Clear+0x13c)[0x335168886c]
/usr/lib64/libpython2.7.so.1.0(PyImport_Cleanup+0x18f)[0x33516fb40f]
/usr/lib64/libpython2.7.so.1.0(Py_Finalize+0x115)[0x33517084e5]
/usr/lib64/libpython2.7.so.1.0(Py_Main+0x52c)[0x33517192dc]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x3344e1ee7d]
python[0x400649]
======= Memory map: ========
00400000-00401000 r-xp 00000000 fd:01 1846460                            /usr/bin/python
00600000-00602000 rw-p 00000000 fd:01 1846460                            /usr/bin/python
01b84000-01cef000 rw-p 00000000 00:00 0                                  [heap]
3344600000-3344621000 r-xp 00000000 fd:01 2097156                        /lib64/ld-2.12.90.so
3344820000-3344821000 r--p 00020000 fd:01 2097156                        /lib64/ld-2.12.90.so
3344821000-3344822000 rw-p 00021000 fd:01 2097156                        /lib64/ld-2.12.90.so
3344822000-3344823000 rw-p 00000000 00:00 0 
3344a00000-3344b06000 r-xp 00000000 fd:01 2097182                        /lib64/libglib-2.0.so.0.2600.0
3344b06000-3344d05000 ---p 00106000 fd:01 2097182                        /lib64/libglib-2.0.so.0.2600.0
3344d05000-3344d06000 rw-p 00105000 fd:01 2097182                        /lib64/libglib-2.0.so.0.2600.0
3344d06000-3344d07000 rw-p 00000000 00:00 0 
3344e00000-3344f9a000 r-xp 00000000 fd:01 2097168                        /lib64/libc-2.12.90.so
3344f9a000-3345199000 ---p 0019a000 fd:01 2097168                        /lib64/libc-2.12.90.so
3345199000-334519d000 r--p 00199000 fd:01 2097168                        /lib64/libc-2.12.90.so
334519d000-334519e000 rw-p 0019d000 fd:01 2097168                        /lib64/libc-2.12.90.so
334519e000-33451a4000 rw-p 00000000 00:00 0 
3345200000-3345218000 r-xp 00000000 fd:01 2097169                        /lib64/libpthread-2.12.90.so
3345218000-3345417000 ---p 00018000 fd:01 2097169                        /lib64/libpthread-2.12.90.so
3345417000-3345418000 r--p 00017000 fd:01 2097169                        /lib64/libpthread-2.12.90.so
3345418000-3345419000 rw-p 00018000 fd:01 2097169                        /lib64/libpthread-2.12.90.so
3345419000-334541d000 rw-p 00000000 00:00 0 
3345600000-3345684000 r-xp 00000000 fd:01 2097219                        /lib64/libm-2.12.90.so
3345684000-3345883000 ---p 00084000 fd:01 2097219                        /lib64/libm-2.12.90.so
3345883000-3345884000 r--p 00083000 fd:01 2097219                        /lib64/libm-2.12.90.so
3345884000-3345885000 rw-p 00084000 fd:01 2097219                        /lib64/libm-2.12.90.so
3345a00000-3345a02000 r-xp 00000000 fd:01 2097189                        /lib64/libdl-2.12.90.so
3345a02000-3345c02000 ---p 00002000 fd:01 2097189                        /lib64/libdl-2.12.90.so
3345c02000-3345c03000 r--p 00002000 fd:01 2097189                        /lib64/libdl-2.12.90.so
3345c03000-3345c04000 rw-p 00003000 fd:01 2097189                        /lib64/libdl-2.12.90.so
3345e00000-3345e16000 r-xp 00000000 fd:01 2097209                        /lib64/libz.so.1.2.5
3345e16000-3346016000 ---p 00016000 fd:01 2097209                        /lib64/libz.so.1.2.5
3346016000-3346017000 rw-p 00016000 fd:01 2097209                        /lib64/libz.so.1.2.5
3346200000-3346207000 r-xp 00000000 fd:01 2097181                        /lib64/librt-2.12.90.so
3346207000-3346407000 ---p 00007000 fd:01 2097181                        /lib64/librt-2.12.90.so
3346407000-3346408000 r--p 00007000 fd:01 2097181                        /lib64/librt-2.12.90.so
3346408000-3346409000 rw-p 00008000 fd:01 2097181                        /lib64/librt-2.12.90.so
3346600000-3346615000 r-xp 00000000 fd:01 2097222                        /lib64/libgcc_s-4.5.1-20100924.so.1
3346615000-3346814000 ---p 00015000 fd:01 2097222                        /lib64/libgcc_s-4.5.1-20100924.so.1
3346814000-3346815000 rw-p 00014000 fd:01 2097222                        /lib64/libgcc_s-4.5.1-20100924.so.1
3346e00000-3346e17000 r-xp 00000000 fd:01 2097196                        /lib64/libresolv-2.12.90.so
3346e17000-3347017000 ---p 00017000 fd:01 2097196                        /lib64/libresolv-2.12.90.so
3347017000-3347018000 r--p 00017000 fd:01 2097196                        /lib64/libresolv-2.12.90.so
3347018000-3347019000 rw-p 00018000 fd:01 2097196                        /lib64/libresolv-2.12.90.so
3347019000-334701b000 rw-p 00000000 00:00 0 
3347200000-3347204000 r-xp 00000000 fd:01 2097184                        /lib64/libgthread-2.0.so.0.2600.0
3347204000-3347403000 ---p 00004000 fd:01 2097184                        /lib64/libgthread-2.0.so.0.2600.0
3347403000-3347404000 rw-p 00003000 fd:01 2097184                        /lib64/libgthread-2.0.so.0.2600.0
3347600000-334764c000 r-xp 00000000 fd:01 2097188                        /lib64/libgobject-2.0.so.0.2600.0
334764c000-334784b000 ---p 0004c000 fd:01 2097188                        /lib64/libgobject-2.0.so.0.2600.0
334784b000-334784d000 rw-p 0004b000 fd:01 2097188                        /lib64/libgobject-2.0.so.0.2600.0
334784d000-334784e000 rw-p 00000000 00:00 0 
334ba00000-334ba43000 r-xp 00000000 fd:01 2097233                        /lib64/libdbus-1.so.3.5.2
334ba43000-334bc43000 ---p 00043000 fd:01 2097233                        /lib64/libdbus-1.so.3.5.2
334bc43000-334bc44000 r--p 00043000 fd:01 2097233                        /lib64/libdbus-1.so.3.5.2
334bc44000-334bc45000 rw-p 00044000 fd:01 2097233                        /lib64/libdbus-1.so.3.5.2
334ee00000-334ee16000 r-xp 00000000 fd:01 2097223                        /lib64/libaudit.so.1.0.0
334ee16000-334f015000 ---p 00016000 fd:01 2097223                        /lib64/libaudit.so.1.0.0
334f015000-334f016000 r--p 00015000 fd:01 2097223                        /lib64/libaudit.so.1.0.0
334f016000-334f017000 rw-p 00016000 fd:01 2097223                        /lib64/libaudit.so.1.0.0
334fe00000-334fe03000 r-xp 00000000 fd:01 2097246                        /lib64/libcom_err.so.2.1
334fe03000-3350002000 ---p 00003000 fd:01 2097246                        /lib64/libcom_err.so.2.1
3350002000-3350003000 rw-p 00002000 fd:01 2097246                        /lib64/libcom_err.so.2.1
3350200000-3350221000 r-xp 00000000 fd:01 1844273                        /usr/lib64/libdbus-glib-1.so.2.1.0

Version-Release number of selected component (if applicable):
PyPAM-0.5.0-7.fc14.x86_64


How reproducible:


Steps to Reproduce:
1. run pamtest.py script provided in /usr/share/doc/PyPAM-0.5.0/examples/
2. enter user/pass

  
Actual results:
backtrace from above

Expected results:
exit successfully w/o backtrace

--- Additional comment from msuchy on 2011-01-19 04:32:29 EST ---

Fixed in PyPAM-0.5.0-8
Thanks to Tomas Mraz for contributing.

--- Additional comment from updates on 2011-01-19 04:47:15 EST ---

PyPAM-0.5.0-8.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/PyPAM-0.5.0-8.fc14

--- Additional comment from updates on 2011-01-19 04:48:08 EST ---

PyPAM-0.5.0-8.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/PyPAM-0.5.0-8.el6

--- Additional comment from tmraz on 2011-01-19 11:07:42 EST ---

*** Bug 670867 has been marked as a duplicate of this bug. ***

--- Additional comment from tmraz on 2011-01-19 11:08:35 EST ---

The patch was not applied correctly in the package.

--- Additional comment from msuchy on 2011-01-19 11:55:03 EST ---

Fixed in PyPAM-0.5.0-9

Comment 2 Tomas Mraz 2011-01-19 20:11:36 UTC
I think we do not need to have this bug open as PyPAM package is only getting included into RHEL-6.1 just now.

The latest build in brew and errata (PyPAM-0.5.0-11.el6) has this bug already fixed.

*** This bug has been marked as a duplicate of bug 667127 ***