Message357485
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. |
|
Date |
User |
Action |
Args |
2019-11-26 06:27:21 | danielen | set | recipients:
+ danielen |
2019-11-26 06:27:21 | danielen | set | messageid: <1574749641.72.0.139840395561.issue38913@roundup.psfhosted.org> |
2019-11-26 06:27:21 | danielen | link | issue38913 messages |
2019-11-26 06:27:21 | danielen | create | |
|