File: plpython.c
Function: PLy_init_interp
Error: ob_refcnt of '*PLy_interp_globals' is 1 too low
4116 static void
4117 PLy_init_interp(void)
4118 {
4119 	PyObject   *mainmod;
4120 
4121 	mainmod = PyImport_AddModule("__main__");
when PyImport_AddModule() succeeds
4122 	if (mainmod == NULL || PyErr_Occurred())
taking False path
PyErr_Occurred()
taking False path
4123 		PLy_elog(ERROR, "could not import \"__main__\" module");
4124 	Py_INCREF(mainmod);
4125 	PLy_interp_globals = PyModule_GetDict(mainmod);
borrowed reference returned by PyModule_GetDict() allocated at: 	PLy_interp_globals = PyModule_GetDict(mainmod);
ob_refcnt is now refs: 0 + N where N >= 1
'*PLy_interp_globals' is now referenced by 1 non-stack value(s): PLy_interp_globals
4126 	PLy_interp_safe_globals = PyDict_New();
when PyDict_New() succeeds
4127 	PyDict_SetItemString(PLy_interp_globals, "GD", PLy_interp_safe_globals);
when PyDict_SetItemString() succeeds
4128 	Py_DECREF(mainmod);
when taking True path
4129 	if (PLy_interp_globals == NULL || PyErr_Occurred())
taking False path
PyErr_Occurred()
taking False path
4130 		PLy_elog(ERROR, "could not initialize globals");
4131 }
returning
ob_refcnt of '*PLy_interp_globals' is 1 too low
was expecting final ob_refcnt to be N + 1 (for some unknown N)
due to object being referenced by: PLy_interp_globals
but final ob_refcnt is N + 0
found 3 similar trace(s) to this

File: plpython.c
Function: PLy_init_interp
Error: calling PyDict_SetItemString with NULL as argument 3 (PLy_interp_safe_globals.6) at plpython.c:4127
4116 static void
4117 PLy_init_interp(void)
4118 {
4119 	PyObject   *mainmod;
4120 
4121 	mainmod = PyImport_AddModule("__main__");
when PyImport_AddModule() succeeds
4122 	if (mainmod == NULL || PyErr_Occurred())
taking False path
PyErr_Occurred()
taking False path
4123 		PLy_elog(ERROR, "could not import \"__main__\" module");
4124 	Py_INCREF(mainmod);
4125 	PLy_interp_globals = PyModule_GetDict(mainmod);
4126 	PLy_interp_safe_globals = PyDict_New();
when PyDict_New() fails
4127 	PyDict_SetItemString(PLy_interp_globals, "GD", PLy_interp_safe_globals);
calling PyDict_SetItemString with NULL as argument 3 (PLy_interp_safe_globals.6) at plpython.c:4127
4128 	Py_DECREF(mainmod);
4129 	if (PLy_interp_globals == NULL || PyErr_Occurred())
4130 		PLy_elog(ERROR, "could not initialize globals");
4131 }

File: plpython.c
Function: PLy_init_interp
Error: dereferencing NULL (mainmod->ob_refcnt) at plpython.c:4124
4116 static void
4117 PLy_init_interp(void)
4118 {
4119 	PyObject   *mainmod;
4120 
4121 	mainmod = PyImport_AddModule("__main__");
when PyImport_AddModule() fails
4122 	if (mainmod == NULL || PyErr_Occurred())
taking True path
4123 		PLy_elog(ERROR, "could not import \"__main__\" module");
4124 	Py_INCREF(mainmod);
dereferencing NULL (mainmod->ob_refcnt) at plpython.c:4124
4125 	PLy_interp_globals = PyModule_GetDict(mainmod);
4126 	PLy_interp_safe_globals = PyDict_New();
4127 	PyDict_SetItemString(PLy_interp_globals, "GD", PLy_interp_safe_globals);
4128 	Py_DECREF(mainmod);
4129 	if (PLy_interp_globals == NULL || PyErr_Occurred())
4130 		PLy_elog(ERROR, "could not initialize globals");
4131 }