From issues-reply at bitbucket.org Mon Apr 13 05:31:22 2020 From: issues-reply at bitbucket.org (Hiroshi Miura) Date: Mon, 13 Apr 2020 09:31:22 +0000 (UTC) Subject: [pypy-issue] Issue #3172: memoryview of LitteleEndianStructure cause error (pypy/pypy) Message-ID: <20200413093122.31301.69868@celery-worker-111.ash1.bb-inf.net> New issue 3172: memoryview of LitteleEndianStructure cause error https://bitbucket.org/pypy/pypy/issues/3172/memoryview-of-litteleendianstructure-cause Hiroshi Miura: When adding following test case in extra\_tests/ctypes\_test/test\_structure.py ``` def test_memoryview_endian(): class LES(LittleEndianStructure): _pack_ = 1 _fields_ = [ ('a', c_ubyte * 16), ('i', c_uint64) ] c_les = LES() mv = memoryview(c_les) ``` The test fails as TypeError on pypy3.6.9 -7.3.1 alpha with following log. ``` $ pypy3 -m pytest extra_tests/ctypes_tests/test_structures.py ========================================================= test session starts ========================================================== platform linux -- Python 3.6.9[pypy-7.3.1-alpha], pytest-2.9.2, py-1.4.29, pluggy-0.3.1 rootdir: /home/miurahr/projects/pypy/extra_tests, inifile: pytest.ini collected 15 items extra_tests/ctypes_tests/test_structures.py ..............F =============================================================== FAILURES =============================================================== ________________________________________________________ test_memoryview_endian ________________________________________________________ def test_memoryview_endian(): class LES(LittleEndianStructure): _pack_ = 1 _fields_ = [ ('a', c_ubyte * 16), ('i', c_uint64) ] c_les = LES() > mv = memoryview(c_les) extra_tests/ctypes_tests/test_structures.py:217: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /opt/pypy3/lib_pypy/_ctypes/structure.py:309: in __buffer__ fmt = get_format_str(self) /opt/pypy3/lib_pypy/_ctypes/array.py:309: in get_format_str ch = get_format_str(obj)[1:] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ typ = def get_format_str(typ): if hasattr(typ, '_fields_'): if hasattr(typ, '_swappedbytes_'): bo = swappedorder[sys.byteorder] else: bo = byteorder[sys.byteorder] flds = [] cum_size = 0 for name, obj in typ._fields_: padding = typ._ffistruct_.fieldoffset(name) - cum_size if padding: flds.append('%dx' % padding) # Trim off the leading '<' or '>' ch = get_format_str(obj)[1:] if (ch) == 'B': flds.append(byteorder[sys.byteorder]) else: flds.append(bo) flds.append(ch) flds.append(':') flds.append(name) flds.append(':') cum_size += typ._ffistruct_.fieldsize(name) return 'T{' + ''.join(flds) + '}' elif hasattr(typ, '_type_'): ch = typ._type_ > return byteorder[sys.byteorder] + ch E TypeError: unsupported operand type(s) for +: 'str' and 'SimpleType' /opt/pypy3/lib_pypy/_ctypes/array.py:322: TypeError ======================================== 1 failed, 14 passed, 1 pytest-warnings in 0.49 seconds ======================================== miurahr at miurahr-note:~/projects/pypy$ ``` ? From issues-reply at bitbucket.org Thu Apr 16 00:00:14 2020 From: issues-reply at bitbucket.org (Anonymous) Date: Thu, 16 Apr 2020 04:00:14 +0000 (UTC) Subject: [pypy-issue] Issue #3173: debug: operror-value: unexpected internal exception (please report a bug): ; internal traceback was dumped to stderr (pypy/pypy) Message-ID: <20200416040014.28266.86043@celery-worker-109.ash1.bb-inf.net> New issue 3173: debug: operror-value: unexpected internal exception (please report a bug): ; internal traceback was dumped to stderr https://bitbucket.org/pypy/pypy/issues/3173/debug-operror-value-unexpected-internal Former user: Executing pypy3.exe in command line from pypy3.6-v7.3.1-win32 (cmd.exe) on Windows 10 give this error: G:\ProgramData\pypy3.6-v7.3.1-win32>pypy3 Python 3.6.9 (2ad108f17bdb, Apr 07 2020, 03:05:35) [PyPy 7.3.1 with MSC v.1912 32 bit] on win32 Type "help", "copyright", "credits" or "license" for more information. RPython traceback: File "pypy_interpreter.c", line 44716, in BuiltinCode2_fastcall_2 File "pypy_objspace_std_6.c", line 30863, in W_UnicodeObject_descr_partition debug: OperationError: debug: operror-type: SystemError debug: operror-value: unexpected internal exception (please report a bug): ; internal traceback was dumped to stderr From issues-reply at bitbucket.org Thu Apr 16 23:25:02 2020 From: issues-reply at bitbucket.org (Anonymous) Date: Fri, 17 Apr 2020 03:25:02 +0000 (UTC) Subject: [pypy-issue] Issue #3174: Crash when running PyPy3 on windows (pypy/pypy) Message-ID: <20200417032502.32447.43318@celery-worker-110.ash1.bb-inf.net> New issue 3174: Crash when running PyPy3 on windows https://bitbucket.org/pypy/pypy/issues/3174/crash-when-running-pypy3-on-windows Former user: When I run the PyPy3 interpreter on Windows, it crashes rapidly: Python 3.6.9 (2ad108f17bdb, Apr 07 2020, 03:05:35) [PyPy 7.3.1 with MSC v.1912 32 bit] on win32 Type "help", "copyright", "credits" or "license" for more information. RPython traceback: File "pypy_interpreter.c", line 47746, in BuiltinCode1_fastcall_1 File "implement_1.c", line 57386, in fastfunc_descr_lower_1_1 File "pypy_objspace_std_7.c", line 41150, in _lower_unicode File "rpython_rlib.c", line 15063, in _nonascii_unichr_as_utf8_append debug: OperationError: debug: operror-type: SystemError debug: operror-value: unexpected internal exception (please report a bug): ; internal traceback was dumped to stderr