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 danielen
Recipients danielen
Date 2019-11-26.06:27:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574749641.72.0.139840395561.issue38913@roundup.psfhosted.org>
In-reply-to
Content
The following code results in a segmentation fault in CPython 3.8 while executes fines (raises a SystemError) in CPython 3.7.

PyObject* debug(PyObject *self, PyObject *args)
{
        const char * debug = "debug";
        PyErr_SetString(PyExc_ValueError, "debug!");
        return Py_BuildValue("(s#O)", debug, strlen(debug), Py_None);
}

It seems necessary for the format string to contain both an instance of "s#" and "O" to trigger the bug.

I'm attaching a C module that reproduces the problem.
History
Date User Action Args
2019-11-26 06:27:21danielensetrecipients: + danielen
2019-11-26 06:27:21danielensetmessageid: <1574749641.72.0.139840395561.issue38913@roundup.psfhosted.org>
2019-11-26 06:27:21danielenlinkissue38913 messages
2019-11-26 06:27:21danielencreate