STINNER Victor <vstin...@python.org> added the comment:

> visit_decref() is commonly found in C traceback (ex: gdb backtrace) of bugs 
> related to the garbage collector.

Example with attached bpo-38037-bug.patch: you can apply this patch on the 
master branch to reintroduce  bpo-38037 bug.

vstinner@apu$ git apply bpo-38037-bug.patch
vstinner@apu$ make

Without PR 15782:

vstinner@apu$ ./python -c pass 
Segmentation fault (core dumped)


With PR 15782:

vstinner@apu$ ./python -c pass 
Modules/gcmodule.c:379: visit_decref: Assertion "!_PyObject_IsFreed(op)" failed
<object: freed>
Fatal Python error: _PyObject_AssertFailed

Current thread 0x00007f171a280740 (most recent call first):
Aborted (core dumped)


The bug is catched earlier. And Python provides more information.

----------
Added file: https://bugs.python.org/file48602/bpo-38037-bug.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38070>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to