[pypy-issue] [issue1520] Fatal RPython error: OSError when working dir is removed

Kenny Levinsen tracker at bugs.pypy.org
Sat Jun 22 15:31:01 CEST 2013


New submission from Kenny Levinsen <kennylevinsen at gmail.com>:

Issue:
If the current directory is removed, attempts to execute a script in it will cause an 
OSError:

RPython traceback:
  File "pypy_goal_targetpypystandalone.c", line 2558, in entry_point
  File "pypy_interpreter_pyframe.c", line 1344, in PyFrame_execute_frame
  File "rpython_jit_metainterp_warmspot.c", line 1496, in 
ll_portal_runner__Unsigned_Bool_pypy_interpreter
  File "pypy_module_pypyjit_interp_jit.c", line 258, in portal_4
  File "pypy_interpreter_pyopcode.c", line 3422, in handle_bytecode__AccessDirect_None
  File "pypy_interpreter_pyopcode.c", line 9401, in 
dispatch_bytecode__AccessDirect_None
  File "pypy_interpreter_pyopcode.c", line 17875, in call_function__AccessDirect_None
  File "pypy_interpreter_pyframe.c", line 1344, in PyFrame_execute_frame
  File "rpython_jit_metainterp_warmspot.c", line 1496, in 
ll_portal_runner__Unsigned_Bool_pypy_interpreter
  File "pypy_module_pypyjit_interp_jit.c", line 258, in portal_4
  File "pypy_interpreter_pyopcode.c", line 3422, in handle_bytecode__AccessDirect_None
  File "pypy_interpreter_pyopcode.c", line 12722, in 
dispatch_bytecode__AccessDirect_None
  File "pypy_objspace_std_callmethod.c", line 4110, in CALL_METHOD__AccessDirect_star_1
  File "pypy_interpreter_gateway.c", line 411, in BuiltinCode1_fastcall_1
  File "pypy_interpreter_gateway.c", line 2747, in BuiltinCode_handle_exception
Fatal RPython error: OSError

An example scenario of this happening would be changing branches in version control 
back and 
forth between branches containing a directory. Going back to an old shell that was in 
that 
directory, and trying to execute a script in the directory will fail, as it was removed 
and 
recreated under your feet.

Reproduction:
mkdir dir
cd dir
rmdir ../dir
pypy test.py
Watch pypy crash and burn

----------
messages: 5876
nosy: joushou, pypy-issue
priority: bug
release: 2.0
status: unread
title: Fatal RPython error: OSError when working dir is removed

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1520>
________________________________________


More information about the pypy-issue mailing list