[Python-bugs-list] [ python-Bugs-528990 ] bug? in PyImport_ImportModule under AIX
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 12 Mar 2002 08:19:21 -0800
Bugs item #528990, was opened at 2002-03-12 17:19
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=528990&group_id=5470
Category: Python Interpreter Core
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Fanny Wattez (wattez)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug? in PyImport_ImportModule under AIX
Initial Comment:
Here is a description of the problem we encounter.
platform : AIX 4.3.3
Python 2.2
environment variables :
----------------------------------------
PATH=/home/soft/ccm_gdc7/bin:/bin:/usr/sbin:/usr/etc:/u
sr/lpp/X11/bin:/usr/wf/bin:/usr/local/bin:/usr/local/ad
min/etc:/lbin:/usr/bin/etc:/usr/ucb:/home/users/wattez/
lbin:/sbin:.:/usr/bin/X11:/sbin:/home/users/wattez/lbin
/fvwm-
exec:/tools/versant/6.0.0/rs6000/bin:/tools/views402/st
udio/rs6000:/tools/sp1.3.4/bin:/tools/imagemagick5.4.2/
bin:/tools/python2.2.debug/bin
PYTHON_ROOT=/tools/python2.2.debug
PYTHONPATH=/tools/python2.2.debug/lib/python2.2:/tools/
python2.2.debug/lib/python2.2/lib-
tk:/tools/xmlproc0.70:/tools/doctemplate2.2.1:/tools/py
thon2.2.debug/lib/python2.2/plat-
aix4:/tools/python2.2.debug/lib/python2.2/lib-
dynload:/tools/python2.2.debug/lib/python2.2/site-
packages
test program :
-------------------
#include <iostream.h>
#include <Python.h>
int main(int i__argc,char* i__argv[])
{
Py_Initialize();
cout << endl << "CALL of PyImport_ImportModule
with argument " << getenv("NAME_MODULE") << endl;
PyObject * l__obj = PyImport_ImportModule
(getenv("NAME_MODULE"));
if (l__obj == NULL)
cout << "importation of module " << getenv
("NAME_MODULE") << " does not work well!" << endl;
return 1;
}
We ran this test program for different values of
$NAME_MODULE.
$NAME_MODULE | does the test program
work well?
----------------------------------------------------
base64 | KO (Segmentation fault)
at the call of PyImport_ImportModule
os | OK
strop | KO (Segmentation fault)
at the call of PyImport_ImportModule
string | KO (Segmentation fault)
at the call of PyImport_ImportModule
What do we see with dbx (Python 2.2 is compiled in
debug mode)?
-------------------------------------
The last instructions in the stack are :
stropmodule.split_whitespace(s = "strop", len =
806723600, maxsplit = 806727672), line 80
in "stropmodule.c"
initstrop(), line 1221 in "stropmodule.c"
_PyImport_LoadDynamicModule(0x2ff1d2b0, 0x2ff1cdc0,
0xf0004d40), line 53 in "importdl.c"
with 0x2ff1d2b0 = "strop"
0x2ff1cdc0
= "/tools/python2.2.debug/lib/python2.2/lib-
dynload/strop.so"
Could you help us understand the problem?
Note : under the interactive Python interpreter, we
have no problems importing each of these modules. The
test program only crashes under AIX 4.3.3 not under
Windows 2000.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=528990&group_id=5470