Bug 620841

Summary: when installed RHATrhncfga, rhnreg_ks will crash with core dump
Product: Red Hat Satellite 5 Reporter: Jiri Kastner <jkastner>
Component: SolarisAssignee: Clifford Perry <cperry>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Minar <mminar>
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedCC: cperry, jhutar, mkoci, mminar
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rhn-solaris-bootstrap-5.3.4-1-sat Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-02 10:53:23 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:    
Bug Blocks: 818987, 819024    

Comment 1 Miroslav Suchý 2010-08-04 11:45:22 UTC
Minimalistic reproducer is:

# python
Python 2.4.1 (#1, Mar 14 2008, 04:08:13)
[GCC 3.3.2] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.append('/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/actions')
>>> file='ModeControllerCreator'
>>> __import__(file, {})
Fatal Python error: PyString_InternInPlace: strings only please!
Abort (core dumped)
bash-2.05# python -c "import sys;  sys.path.append('/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/actions'); file='ModeControllerCreator'; __import__(file);'
>
bash-2.05# python -c "import sys;  sys.path.append('/opt/redhat/rhn/solaris/lib/python2.4/site-packages/rhn/actions'); file='ModeControllerCreator'; __import__(file);"
Fatal Python error: PyString_InternInPlace: strings only please!

and when I touch ModeControllerCreator, things start working.
So it seems there is wrong .pyo files.

Comment 2 Miroslav Suchý 2010-08-04 12:18:31 UTC
That pkg file is created from el5 version where .pyc are created for python 2.6, whereas on Solaris is python 2.4.
Since rhel4 will be with us only limited amount of time,  we should rather do not .pyc files at all for Solaris.

Comment 3 Miroslav Suchý 2010-08-04 13:12:04 UTC
We will do not package .pyc and .pyo files. Commit b4692ff095f4d2895c2c8781ca89f2fb53799018

I rebuild rhncfg and rnpush and reupload them to barn.