Message145763
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:25 | Trundle | set | recipients:
+ Trundle |
2011-10-17 22:14:25 | Trundle | set | messageid: <1318889665.83.0.350090316357.issue13204@psf.upfronthosting.co.za> |
2011-10-17 22:14:25 | Trundle | link | issue13204 messages |
2011-10-17 22:14:24 | Trundle | create | |
|