[Python-Dev] Segmentaion fault with wrongly set PYTHONPATH on Windows
Christian Heimes
christian at python.org
Mon Oct 22 15:37:29 CEST 2012
Am 22.10.2012 15:31, schrieb anatoly techtonik:
> Could anybody reopen http://bugs.python.org/issue8766 ? I can't.
> Reproducible 100% with Python 3.2 and 3.3 (3.1 didn't test).
>
>> set PYTHONHOME=C:\
>> python
The segfault isn't caused by faulty code but by a call to abort() in
Py_FatalError(). The interpreter fails with an hard error because it is
unable to locate the encodings package.
$ PYTHONHOME=/ python3.2
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named encodings
Abgebrochen (Speicherabzug geschrieben)
$ gdb /usr/bin/python3.2 core
[...]
(gdb) bt
#0 0x00007fb05cd37445 in __GI_raise (sig=<optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007fb05cd3abab in __GI_abort () at abort.c:91
#2 0x0000000000482d0e in Py_FatalError ()
#3 0x0000000000482f14 in initfsencoding ()
#4 0x0000000000483e56 in Py_InitializeEx ()
#5 0x0000000000493e1a in Py_Main ()
#6 0x000000000041d307 in main ()
More information about the Python-Dev
mailing list