[pypy-issue] Issue #1951: Pypy3 2.4.0 crashes when using ctypes.CDLL('asdf') on Windows8 x64 Chinese Language (pypy/pypy)

ggg ggg issues-reply at bitbucket.org
Sun Dec 28 14:34:45 CET 2014


New issue 1951: Pypy3 2.4.0 crashes when using ctypes.CDLL('asdf') on Windows8 x64 Chinese Language
https://bitbucket.org/pypy/pypy/issue/1951/pypy3-240-crashes-when-using-ctypescdll

ggg ggg:

I guess that 's because the OSError contains unicode information. Some modules seem to have the same problem.

Python3.3 x64:
>>> import ctypes
>>> ctypes.CDLL('asdf')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python\Python3364\lib\ctypes\__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模組。
>>>

Pypy3 2.4.0 win32:
>>>> import ctypes
>>>> ctypes.CDLL('asdf')
RPython traceback:
  File "pypy_goal_targetpypystandalone.c", line 2522, in entry_point
  File "pypy_interpreter_pyframe.c", line 3110, in PyFrame_execute_frame
  File "rpython_jit_metainterp_warmspot.c", line 1143, in ll_portal_runner__Unsigned_Bool_pypy_interpreter
  File "pypy_module_pypyjit_interp_jit.c", line 107, in portal_3
  File "pypy_interpreter_pyopcode.c", line 7496, in handle_bytecode__AccessDirect_None
  File "pypy_interpreter_pyopcode.c", line 10979, in dispatch_bytecode__AccessDirect_None
  File "pypy_interpreter_pyopcode.c", line 19359, in call_function__AccessDirect_None
  File "pypy_interpreter_pyframe.c", line 3110, in PyFrame_execute_frame
  File "rpython_jit_metainterp_warmspot.c", line 1143, in ll_portal_runner__Unsigned_Bool_pypy_interpreter
  File "pypy_module_pypyjit_interp_jit.c", line 107, in portal_3
  File "pypy_interpreter_pyopcode.c", line 7496, in handle_bytecode__AccessDirect_None
  File "pypy_interpreter_pyopcode.c", line 10932, in dispatch_bytecode__AccessDirect_None
  File "pypy_interpreter_pyopcode.c", line 19359, in call_function__AccessDirect_None
  File "pypy_interpreter_pyframe.c", line 3110, in PyFrame_execute_frame
  File "rpython_jit_metainterp_warmspot.c", line 1143, in ll_portal_runner__Unsigned_Bool_pypy_interpreter
  File "pypy_module_pypyjit_interp_jit.c", line 107, in portal_3
  File "pypy_interpreter_pyopcode.c", line 7496, in handle_bytecode__AccessDirect_None
  File "pypy_interpreter_pyopcode.c", line 11085, in dispatch_bytecode__AccessDirect_None
  File "pypy_interpreter_pyopcode.c", line 19359, in call_function__AccessDirect_None
  File "pypy_interpreter_pyframe.c", line 3110, in PyFrame_execute_frame
  File "rpython_jit_metainterp_warmspot.c", line 1143, in ll_portal_runner__Unsigned_Bool_pypy_interpreter
  File "pypy_module_pypyjit_interp_jit.c", line 107, in portal_3
  File "pypy_interpreter_pyopcode.c", line 7496, in handle_bytecode__AccessDirect_None
  File "pypy_interpreter_pyopcode.c", line 10932, in dispatch_bytecode__AccessDirect_None
  File "pypy_interpreter_pyopcode.c", line 18987, in CALL_FUNCTION__AccessDirect_None
  File "pypy_interpreter_pyframe.c", line 3110, in PyFrame_execute_frame
  File "rpython_jit_metainterp_warmspot.c", line 1143, in ll_portal_runner__Unsigned_Bool_pypy_interpreter
  File "pypy_module_pypyjit_interp_jit.c", line 107, in portal_3
  File "pypy_interpreter_pyopcode.c", line 7496, in handle_bytecode__AccessDirect_None
  File "pypy_interpreter_pyopcode.c", line 11118, in dispatch_bytecode__AccessDirect_None
  File "pypy_objspace_std_callmethod.c", line 2767, in CALL_METHOD__AccessDirect_star_1
  File "pypy_interpreter_pyframe.c", line 3110, in PyFrame_execute_frame
  File "rpython_jit_metainterp_warmspot.c", line 1143, in ll_portal_runner__Unsigned_Bool_pypy_interpreter
  File "pypy_module_pypyjit_interp_jit.c", line 107, in portal_3
  File "pypy_interpreter_pyopcode.c", line 7496, in handle_bytecode__AccessDirect_None
  File "pypy_interpreter_pyopcode.c", line 11118, in dispatch_bytecode__AccessDirect_None
  File "pypy_objspace_std_callmethod.c", line 2767, in CALL_METHOD__AccessDirect_star_1
  File "pypy_interpreter_pyframe.c", line 3110, in PyFrame_execute_frame
  File "rpython_jit_metainterp_warmspot.c", line 1143, in ll_portal_runner__Unsigned_Bool_pypy_interpreter
  ...
Fatal RPython error: UnicodeDecodeError

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.




More information about the pypy-issue mailing list