This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author anthonypjshaw
Recipients anthonypjshaw, dgelessus
Date 2019-05-11.06:10:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557555016.99.0.315426253682.issue36880@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-05-11 06:10:17anthonypjshawsetrecipients: + anthonypjshaw, dgelessus
2019-05-11 06:10:16anthonypjshawsetmessageid: <1557555016.99.0.315426253682.issue36880@roundup.psfhosted.org>
2019-05-11 06:10:16anthonypjshawlinkissue36880 messages
2019-05-11 06:10:16anthonypjshawcreate