Bug 860469

Summary: RHEL6.4 python import distutils.version returns ValueError: bad marshal data
Product: Red Hat Enterprise Linux 6 Reporter: Scott Poore <spoore>
Component: pythonAssignee: Dave Malcolm <dmalcolm>
Status: CLOSED NOTABUG QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-26 19:12:47 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:

Description Scott Poore 2012-09-25 21:55:10 UTC
Description of problem:

Seeing an error with python importing distutils.version.

[root@vm1 lib]# python
Python 2.6.6 (r266:84292, Aug 28 2012, 10:55:56) 
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import distutils.version
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: bad marshal data


Version-Release number of selected component (if applicable):
python-2.6.6-29.el6_3.3.x86_64 
from nightly RHEL6.4 test repo RHEL6.4-20120925.n.0


How reproducible:
seems very reproducible at the moment but not entirely known yet.


Steps to Reproduce:
1.  run python in interactive mode
python
2.  at prompt enter import distutils.version
>>>> import distutils.version

  
Actual results:

returns error listed above.

Expected results:

no error returned.

Additional info:

Comment 2 Scott Poore 2012-09-25 22:32:06 UTC
A reboot of my KVM guest where I saw this appears to have resolved the issue:

[root@vm1 ~]# python
Python 2.6.6 (r266:84292, Aug 28 2012, 10:55:56) 
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import distutils.version
>>> quit()

So, I'm not sure what happened there or how reproducible it is.

Comment 3 Dave Malcolm 2012-09-26 00:54:24 UTC
"bad marshal data" suggests a corrupt .pyc or .pyo file; given what you were importing, it sounds like:
  /usr/lib64/python2.6/distutils/version.pyc
was corrupt.  What does rpm -V say?

Maybe an issue at the virtualization level?

Comment 4 Scott Poore 2012-09-26 19:12:47 UTC
A corruption issue makes sense.  I thought I ran rpm -V python yesterday and didn't see anything.  Maybe that was after the reboot though.

I wasn't able to reproduce on another guest that was a clone of the same original.  And after the reboot it worked fine.  So, yeah, maybe an issue at the virtualization level like you're thinking.

I'm just going to close this one as NOTABUG since it looks like it's corruption and not reproducible.

Thanks for the info.