[Python-bugs-list] [ python-Bugs-443005 ] 2.2a1: crash via posix_do_stat
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 20 Jul 2001 01:48:24 -0700
Bugs item #443005, was opened at 2001-07-20 01:48
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=443005&group_id=5470
Category: Python Interpreter Core
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Uwe Zessin (zessin_5)
Assigned to: Nobody/Anonymous (nobody)
Summary: 2.2a1: crash via posix_do_stat
Initial Comment:
I've done a port to OpenVMS.
I get a crash during Python initialization (import
of SITE.PY). A work-around for me is to replace the
format-string for posix_do_stat() of "et" with "s".
Here is the traceback. I have removed the line numbers,
because they apply to the compiler listings.
$ python
%SYSTEM-F-ACCVIO, access violation, ...
%TRACE-F-TRACEBACK, symbolic stack dump follows
image module routine
PYTHON GETARGS convertsimple
PYTHON GETARGS convertitem
PYTHON GETARGS vgetargs1
PYTHON GETARGS PyArg_ParseTuple
PYTHON POSIXMODULE posix_do_stat
PYTHON POSIXMODULE posix_stat
PYTHON CEVAL call_cfunction
PYTHON CEVAL eval_frame
PYTHON CEVAL PyEval_EvalCodeEx
PYTHON CEVAL fast_function
PYTHON CEVAL eval_frame
PYTHON CEVAL PyEval_EvalCodeEx
PYTHON CEVAL PyEval_EvalCode
PYTHON IMPORT PyImport_ExecCodeModuleEx
PYTHON IMPORT load_source_module
PYTHON IMPORT load_module
PYTHON IMPORT import_submodule
PYTHON IMPORT load_next
PYTHON IMPORT import_module_ex
PYTHON IMPORT PyImport_ImportModuleEx
PYTHON BLTINMODULE builtin___import__
PYTHON METHODOBJECT meth_call
PYTHON ABSTRACT PyObject_Call
PYTHON CEVAL PyEval_CallObjectWithKeywords
PYTHON ABSTRACT PyObject_CallObject
PYTHON ABSTRACT PyObject_CallFunction
PYTHON IMPORT PyImport_Import
PYTHON IMPORT PyImport_ImportModule
PYTHON PYTHONRUN initsite
PYTHON PYTHONRUN Py_Initialize
PYTHON MAIN Py_Main
PYTHON PYTHON main
PYTHON PYTHON __main
And here is the failing code in GETARGS.C:
if ((int)strlen(PyString_AS_STRING(s)) != size)
return converterr(
"(encoded string without NULL b...
arg, msgbuf);
-> *buffer = PyMem_NEW(char, size + 1);
if (*buffer == NULL) {
Py_DECREF(s);
return converterr("(memory error)",
arg, msgbuf);
}
-----
I'm sorry, but I can't debug that any better.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=443005&group_id=5470