Issue 31181: Segfault in gcmodule.c:360 visit_decref (PyObject_IS_GC(op)) (original) (raw)

When running a python script with YML data as input, it stopped with segmentation fault

/home/appuser/pyETL/tableTrimmer.py /home/appuser/pyETL/csidPyLib/etlConfig/ip4AuditSync.yml

(gdb) bt

Core was generated by `python2.7 tableTrimmer.py csidPyLib/etlConfig/ip4AuditSync.yml'. Program terminated with signal 11, Segmentation fault. #0 visit_decref (op=0x7f08c1afb320, data=0x0) at Modules/gcmodule.c:360 360 if (PyObject_IS_GC(op)) {

I am sorry, but without further information, we cannot fix your issue.

Usually, a crash in visit_decref() means that a C extension corrupted a random Python object. Try to run your test on Python 3 using PYTHONMALLOC=debug.