[ python-Bugs-528990 ] bug? in PyImport_ImportModule under AIX
SourceForge.net
noreply at sourceforge.net
Sat Jun 5 17:17:19 EDT 2004
Bugs item #528990, was opened at 2002-03-12 11:19
Message generated for change (Comment added) made by akuchling
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=528990&group_id=5470
Category: Python Interpreter Core
Group: Python 2.2
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: Fanny Wattez (wattez)
>Assigned to: A.M. Kuchling (akuchling)
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.
----------------------------------------------------------------------
>Comment By: A.M. Kuchling (akuchling)
Date: 2004-06-05 17:17
Message:
Logged In: YES
user_id=11375
No response in over a year, so we may as well close this one. If the
original reporter appears, the bug can be re-opened.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2003-02-07 17:31
Message:
Logged In: YES
user_id=33168
This problem may be fixed by adding a period (.) to the
first line of the Modules/python.exp file created. The
first line should contain the following 3 characters: #!.
This is documented in Misc/AIX-NOTES. Fanny, if you are
there, let me know. I'd like to try to close this bug report.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2003-01-13 17:40
Message:
Logged In: YES
user_id=33168
Fanny, did this problem happen to occur when running in
64-bit mode? There was another bug that was similar which
changed an (unsigned int) to a (char *). The change was in
Python/dynload_aix.c Could you test with the CVS version of
2.2.2+ or 2.3a1?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=528990&group_id=5470
More information about the Python-bugs-list
mailing list