Author Trundle
Recipients Trundle
Date 2011-10-17.22:14:24
SpamBayes Score 2.3592e-08
Marked as misclassified No
Message-id <>
It's not possible (by intention) to instantiate a new instance of sys.flags. This is achieved by setting the "tp_new" slot to NULL (in `_PySys_Init()`), after `PyType_Ready()` is called, which means that a slot wrapper is added to the type dict for the "tp_new" slot (because the slot != NULL at that time). The problem is now that if one calls `sys.flags.__new__` directly, a null pointer dereference occurs in `tp_new_wrapper()`.

Attached is a patch that fixes the crash and adds a test.
Date User Action Args
2011-10-17 22:14:25Trundlesetrecipients: + Trundle
2011-10-17 22:14:25Trundlesetmessageid: <>
2011-10-17 22:14:25Trundlelinkissue13204 messages
2011-10-17 22:14:24Trundlecreate