[issue34087] Segmentation fault on visit_decref

Rodrigo Pinheiro Marques de Araújo report at bugs.python.org
Tue Jul 10 15:36:06 EDT 2018


New submission from Rodrigo Pinheiro Marques de Araújo <fenrrir at gmail.com>:

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x656d6f6e2236)
    frame #0: 0x000000010014c819 python3`visit_decref(op=0x0000656d6f6e222e, data=0x0000000000000000) at gcmodule.c:271 [opt]
   268 	visit_decref(PyObject *op, void *data)
   269 	{
   270 	    assert(op != NULL);
-> 271 	    if (PyObject_IS_GC(op)) {
   272 	        PyGC_Head *gc = AS_GC(op);
   273 	        /* We're only interested in gc_refs for objects in the
   274 	         * generation being collected, which can be recognized
Target 0: (python3) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x656d6f6e2236)
  * frame #0: 0x000000010014c819 python3`visit_decref(op=0x0000656d6f6e222e, data=0x0000000000000000) at gcmodule.c:271 [opt]
    frame #1: 0x000000010003af38 python3`list_traverse(o=0x0000000116971608, visit=(python3`visit_decref at gcmodule.c:269), arg=0x0000000000000000) at listobject.c:2574 [opt]
    frame #2: 0x000000010014aca3 python3`collect [inlined] subtract_refs at gcmodule.c:296 [opt]
    frame #3: 0x000000010014ac72 python3`collect(generation=2, n_collected=0x00007ffeefbff0a8, n_uncollectable=0x00007ffeefbff0b0, nofail=0) at gcmodule.c:853 [opt]
    frame #4: 0x000000010014a8f5 python3`PyGC_Collect [inlined] collect_with_callback(generation=2) at gcmodule.c:1028 [opt]
    frame #5: 0x000000010014a8cc python3`PyGC_Collect at gcmodule.c:1573 [opt]
    frame #6: 0x000000010011f7a8 python3`Py_FinalizeEx at pylifecycle.c:1087 [opt]
    frame #7: 0x0000000100149605 python3`pymain_main(pymain=<unavailable>) at main.c:2664 [opt]
    frame #8: 0x000000010014a280 python3`_Py_UnixMain(argc=5, argv=0x00007ffeefbff4b8) at main.c:2697 [opt]
    frame #9: 0x00007fff5869a015 libdyld.dylib`start + 1
    frame #10: 0x00007fff5869a015 libdyld.dylib`start + 1

----------
components: Interpreter Core
messages: 321394
nosy: fenrrir
priority: normal
severity: normal
status: open
title: Segmentation fault on visit_decref
type: crash
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34087>
_______________________________________


More information about the Python-bugs-list mailing list