Bug 620841 - when installed RHATrhncfga, rhnreg_ks will crash with core dump
Summary: when installed RHATrhncfga, rhnreg_ks will crash with core dump
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Solaris
Version: unspecified
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Clifford Perry
QA Contact: Martin Minar
URL:
Whiteboard:
Keywords: Regression
Depends On:
Blocks: sat550-blockers sat550-post-ga, sat550-test-blockers
TreeView+ depends on / blocked
 
Reported: 2010-08-03 15:51 UTC by Jiri Kastner
Modified: 2016-07-04 00:55 UTC (History)
4 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2012-10-02 10:53:23 UTC


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.