Message350997
I'm now able to reproduce the FreeIPA crash. In short:
* Get a Fedora Rawhide VM (to get Python 3.8 as "python3", it's more convenient)
* Install FreeIPA (dnf install freeipa-server)
* Run: ipa-server-install --help
* Python does crash at exit
> In particular, this was not happening before because the function type did not implement tp_clear:
> https://github.com/python/cpython/blob/3.7/Objects/funcobject.c#L615
I confirm that the patch below does fix the FreeIPA crash:
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index df5cc2d3f5..357372c565 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -669,7 +669,7 @@ PyTypeObject PyFunction_Type = {
Py_TPFLAGS_METHOD_DESCRIPTOR, /* tp_flags */
func_new__doc__, /* tp_doc */
(traverseproc)func_traverse, /* tp_traverse */
- (inquiry)func_clear, /* tp_clear */
+ (inquiry)0, /* tp_clear */
0, /* tp_richcompare */
offsetof(PyFunctionObject, func_weakreflist), /* tp_weaklistoffset */
0, /* tp_iter */ |
|
Date |
User |
Action |
Args |
2019-09-02 13:07:54 | vstinner | set | recipients:
+ vstinner, pitrou, christian.heimes, petr.viktorin, lukasz.langa, Mark.Shannon, jdemeyer, pablogsal |
2019-09-02 13:07:54 | vstinner | set | messageid: <1567429674.85.0.233037442686.issue38006@roundup.psfhosted.org> |
2019-09-02 13:07:54 | vstinner | link | issue38006 messages |
2019-09-02 13:07:54 | vstinner | create | |
|