[pypy-issue] Issue #2598: pwd.getpwnam throws SystemError with Unicode (pypy/pypy)

Marian Beermann issues-reply at bitbucket.org
Sun Jul 2 08:53:39 EDT 2017


New issue 2598: pwd.getpwnam throws SystemError with Unicode
https://bitbucket.org/pypy/pypy/issues/2598/pwdgetpwnam-throws-systemerror-with

Marian Beermann:

Reproducer:

```
#!python

import pwd
pwd.getpwnam('übel')

RPython traceback:
  File "pypy_interpreter_1.c", line 39108, in execute_frame
  File "rpython_jit_metainterp.c", line 20915, in ll_portal_runner__Unsigned_Bool_pypy_interpreter
  File "pypy_module_pypyjit.c", line 182, in portal_12
  File "pypy_interpreter_1.c", line 37644, in handle__AccessDirect_None_2
  File "pypy_interpreter.c", line 25194, in OperationError_normalize_exception
  File "pypy_interpreter.c", line 55416, in OpErrFmt__compute_value_7
  File "rpython_rtyper_lltypesystem.c", line 11057, in ll_str2unicode__rpy_stringPtr

SystemError: unexpected internal exception (please report a bug): <UnicodeDecodeError object at 0x7fd54b367650>; internal traceback was dumped to stderr
zsh: exit 1     python
```

Python 3.5.3 (a37ecfe5f142bc971a86d17305cc5d1d70abec64, Jun 08 2017, 19:43:54)
[PyPy 5.8.0-beta0 with GCC 6.3.0] on linux




More information about the pypy-issue mailing list