Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/module/cpyext/test/test_typeobject.py::AppTestSlots::()::test_nanobind3

self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x119a8850>

    def test_nanobind3(self):
            module = self.import_module(name='nanobind3', filename="nanobind3")
            old_list = module.global_list[:]
    
            o = module.my_object()
            c = module.my_callable()
    
            with raises(ValueError):
                c(o)
    
            old_list = module.global_list[:]
            del o
>           self.debug_collect()  # will call gc.collect unless run untranslated
E           (application-level) SystemError: KeyError(<C object Array of void {'nolength': True, 'render_as_void': True}  at 0xd26a600>,)

[/buildbot/slave/own-linux-x86-32/build/pypy/module/cpyext/test/test_typeobject.py:2669]:13: SystemError
---------- Captured stdout call ----------
dealloc_trigger...
deallocating PyObject * <C object Struct _object { c_ob_refcnt, c_ob_pypy_link, c_ob_type } at 0x1003f840>
deallocating PyObject * <C object Struct _object { c_ob_refcnt, c_ob_pypy_link, c_ob_type } at 0xa6745a0>
deallocating PyObject * <C object Struct _object { c_ob_refcnt, c_ob_pypy_link, c_ob_type } at 0x115535c0>
deallocating PyObject * <C object Struct _object { c_ob_refcnt, c_ob_pypy_link, c_ob_type } at 0xd3ade20>
dealloc_trigger DONE
dealloc_trigger...
deallocating PyObject * <C object Struct _object { c_ob_refcnt, c_ob_pypy_link, c_ob_type } at 0xdffa9e0>
deallocating PyObject * <C object Struct _object { c_ob_refcnt, c_ob_pypy_link, c_ob_type } at 0xd26a600>
Error in cpyext, CPython compatibility layer:
The function dict_dealloc was not supposed to fail
Fatal error in cpyext, CPython compatibility layer, calling dict_dealloc
Either report a bug or consider not using this particular extension
---------- Captured stderr call ----------
<function PyModule_Create2 at 0x0b8ed650>  DONE
<function PyList_New at 0x0c54d650>  DONE
<function check at 0x0b8ed890>  DONE
<function PyModule_GetDict at 0x0d5c5b10>  DONE
<function PyDict_SetItemString at 0x0bcb4490>  DONE
<function PyType_FromSpecWithBases at 0x090434d0>  DONE
<function check at 0x0b8ed890>  DONE
<function PyModule_GetDict at 0x0d5c5b10>  DONE
<function PyDict_SetItemString at 0x0bcb4490>  DONE
<function PyType_FromSpecWithBases at 0x090434d0>  DONE
<function check at 0x0b8ed890>  DONE
<function PyModule_GetDict at 0x0d5c5b10>  DONE
<function PyDict_SetItemString at 0x0bcb4490>  DONE
<function PyUnicode_FromString at 0x090371d0>  DONE
<function PyList_Append at 0x0c54d3d0>  DONE
<function PySequence_Fast_ITEMS at 0x0c50c9d0>  DONE
<function PyObject_Size at 0x0ab8a0d0>  DONE
<function PyUnicode_FromString at 0x090371d0>  DONE
<function PyList_Append at 0x0c54d3d0>  DONE
<function PyErr_SetString at 0x0d8b8d10>  DONE
<function PyErr_Occurred at 0x0d8b8bd0>  DONE
<function PyUnicode_FromString at 0x090371d0>  DONE
<function PyList_Append at 0x0c54d3d0>  DONE
<function dict_dealloc at 0x0bcb4850>  DONE
<function dict_dealloc at 0x0bcb4850>  DONE
<function dict_dealloc at 0x0bcb4850>  DONE
<function dict_dealloc at 0x0bcb4850>  File "/opt/pypy2.7-v7.3.22-linux32/lib_pypy/_ctypes/function.py", line 283, in f
    return to_call(*args)
  File "/buildbot/slave/own-linux-x86-32/build/rpython/rtyper/lltypesystem/ll2ctypes.py", line 895, in callback
    return callback_internal(*cargs)
  File "/buildbot/slave/own-linux-x86-32/build/rpython/rtyper/lltypesystem/ll2ctypes.py", line 872, in callback_internal
    llres = container._callable(*llargs)
  File "/buildbot/slave/own-linux-x86-32/build/pypy/module/cpyext/object.py", line 46, in _PyPy_Free
    lltype.free(ptr, flavor='raw')
  File "/buildbot/slave/own-linux-x86-32/build/rpython/rtyper/lltypesystem/lltype.py", line 2253, in free
    leakfinder.remember_free(p._obj0)
  File "/buildbot/slave/own-linux-x86-32/build/rpython/tool/leakfinder.py", line 95, in remember_free
    raise KeyError(obj)
 KeyError: <C object Array of void {'nolength': True, 'render_as_void': True}  at 0xd26a600>
Traceback (most recent call last):
  File "/buildbot/slave/own-linux-x86-32/build/pypy/module/cpyext/api.py", line 1134, in wrapper_second_level
    result = callable(space, *boxed_args)
  File "/buildbot/slave/own-linux-x86-32/build/pypy/module/cpyext/dictobject.py", line 64, in dict_dealloc
    _dealloc(space, py_obj)
  File "/buildbot/slave/own-linux-x86-32/build/pypy/module/cpyext/object.py", line 70, in _dealloc
    generic_cpy_call(space, pto.c_tp_free, obj_voidp)
  File "/buildbot/slave/own-linux-x86-32/build/pypy/module/cpyext/api.py", line 1971, in generic_cpy_call
    return make_generic_cpy_call(FT, False, True)(space, func, *args)
  File "/buildbot/slave/own-linux-x86-32/build/pypy/module/cpyext/api.py", line 2031, in generic_cpy_call
    result = call_external_function(func, *boxed_args)
  File "<4935-codegen /buildbot/slave/own-linux-x86-32/build/pypy/module/cpyext/api.py:2003>", line 4, in cpy_call_external
    res = funcptr(a0)
  File "/buildbot/slave/own-linux-x86-32/build/rpython/rtyper/lltypesystem/lltype.py", line 1384, in __call__
    return callb(*args)
  File "/buildbot/slave/own-linux-x86-32/build/rpython/rtyper/lltypesystem/ll2ctypes.py", line 895, in callback
    return callback_internal(*cargs)
  File "/buildbot/slave/own-linux-x86-32/build/rpython/rtyper/lltypesystem/ll2ctypes.py", line 872, in callback_internal
    llres = container._callable(*llargs)
  File "/buildbot/slave/own-linux-x86-32/build/pypy/module/cpyext/object.py", line 46, in _PyPy_Free
    lltype.free(ptr, flavor='raw')
  File "/buildbot/slave/own-linux-x86-32/build/rpython/rtyper/lltypesystem/lltype.py", line 2253, in free
    leakfinder.remember_free(p._obj0)
  File "/buildbot/slave/own-linux-x86-32/build/rpython/tool/leakfinder.py", line 95, in remember_free
    raise KeyError(obj)
KeyError: <C object Array of void {'nolength': True, 'render_as_void': True}  at 0xd26a600>
Traceback (most recent call last):
  File "/buildbot/slave/own-linux-x86-32/build/pypy/module/cpyext/api.py", line 1161, in wrapper_second_level
    raise not_supposed_to_fail(pname)
  File "/buildbot/slave/own-linux-x86-32/build/pypy/module/cpyext/api.py", line 1015, in not_supposed_to_fail
    raise SystemError
SystemError
  File "/opt/pypy2.7-v7.3.22-linux32/lib_pypy/_ctypes/function.py", line 283, in f
    return to_call(*args)
  File "/buildbot/slave/own-linux-x86-32/build/rpython/rtyper/lltypesystem/ll2ctypes.py", line 895, in callback
    return callback_internal(*cargs)
  File "/buildbot/slave/own-linux-x86-32/build/rpython/rtyper/lltypesystem/ll2ctypes.py", line 872, in callback_internal
    llres = container._callable(*llargs)
  File "/buildbot/slave/own-linux-x86-32/build/pypy/module/cpyext/api.py", line 987, in wrapper
    return wrapper_second_level(callable, pname, *args)
  File "/buildbot/slave/own-linux-x86-32/build/pypy/module/cpyext/api.py", line 1183, in wrapper_second_level
    state.check_and_raise_exception(always=True)
  File "/buildbot/slave/own-linux-x86-32/build/pypy/module/cpyext/state.py", line 79, in check_and_raise_exception
    raise operror
OperationError: [<W_TypeObject 'SystemError' at 0xd85c6f0>: W_BaseExceptionUserWeakrefable([W_UnicodeObject("KeyError(<C object Array of void {'nolength': True, 'render_as_void': True}  at 0xd26a600>,)")])]
builder: own-linux-x86-32 build #9458+
test: pypy/module/cpyext/test/test_typeobject.py::AppTestSlots::()::test_nanobind3