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 yselivanov
Recipients eric.snow, gregory.p.smith, josh.r, lisroach, ncoghlan, pablogsal, pitrou, rhettinger, serhiy.storchaka, yselivanov
Date 2018-01-30.20:32:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1517344373.99.0.467229070634.issue31356@psf.upfronthosting.co.za>
In-reply-to
Content
A bug found by coverity:

(PyErr_WarnEx might error out; please update the code to handle that)


________________________________________________________________________________________________________ *** CID 1428756: Error handling issues (CHECKED_RETURN)
/Modules/gcmodule.c: 1071 in gc_enable_impl()
1065
1066 static PyObject *
1067 gc_enable_impl(PyObject *module)
1068 /*[clinic end generated code: output=45a427e9dce9155c input=81ac4940ca579707]*/
1069 {
1070 if(_PyRuntime.gc.disabled_threads){
1071 PyErr_WarnEx(PyExc_RuntimeWarning, "Garbage collector enabled while another "
1072 "thread is inside gc.ensure_enabled",1);
1073 }
1074 _PyRuntime.gc.enabled = 1;
1075 Py_RETURN_NONE;
1076 }
History
Date User Action Args
2018-01-30 20:32:54yselivanovsetrecipients: + yselivanov, rhettinger, gregory.p.smith, ncoghlan, pitrou, eric.snow, serhiy.storchaka, josh.r, lisroach, pablogsal
2018-01-30 20:32:53yselivanovsetmessageid: <1517344373.99.0.467229070634.issue31356@psf.upfronthosting.co.za>
2018-01-30 20:32:53yselivanovlinkissue31356 messages
2018-01-30 20:32:53yselivanovcreate