anthony shaw <[email protected]> added the comment:
>From lldb
(lldb) run ~/cpython/test_gc_ctypes.py
Process 20059 launched: '/Users/anthonyshaw/CLionProjects/cpython/python.exe'
(x86_64)
Fatal Python error: deallocating None
Current thread 0x00000001005c85c0 (most recent call first):
File "/Users/anthonyshaw/cpython/test_gc_ctypes.py", line 7 in <module>
Objects/typeobject.c:3187: _Py_NegativeRefcount: Assertion failed: object has
negative ref count
Enable tracemalloc to get the memory block allocation traceback
object : <refcnt -1 at 0x10038a2c0>
type : NoneType
refcount: -1
address : 0x10038a2c0
Process 20059 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: 0x00007fff5984f2c6 libsystem_kernel.dylib`__pthread_kill + 10
libsystem_kernel.dylib`__pthread_kill:
-> 0x7fff5984f2c6 <+10>: jae 0x7fff5984f2d0 ; <+20>
0x7fff5984f2c8 <+12>: movq %rax, %rdi
0x7fff5984f2cb <+15>: jmp 0x7fff59849457 ; cerror_nocancel
0x7fff5984f2d0 <+20>: retq
Target 0: (python.exe) stopped.
----------
Added file: https://bugs.python.org/file48326/test_gc_ctypes.py
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue36880>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com