[issue11320] Usage of API method Py_SetPath causes errors in Py_Initialize() (Posix ony))
Antoine Pitrou
report at bugs.python.org
Thu Mar 17 23:23:18 CET 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
Ok, Palm's example even segfaults here:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff72452bc in free () from /lib64/libc.so.6
(gdb) bt
#0 0x00007ffff72452bc in free () from /lib64/libc.so.6
#1 0x000000000042a591 in Py_SetPath (
path=0x88c330 L"/home/antoine/cpython/default/usr/lib/python33.zip:/home/antoine/cpython/default/usr/lib/python3.3/:/home/antoine/cpython/default/usr/lib/python3.3/plat-linux2:/home/antoine/cpython/default/usr/lib/py"...)
at ./Modules/getpath.c:729
#2 0x0000000000416600 in main ()
The problem is calling free() on a pointer to statically allocated memory.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11320>
_______________________________________
More information about the Python-bugs-list
mailing list