Message238661
Pythons prior to 3.4.0 print
Vector!
Device!
while >=3.4.0 print
Device!
Vector!
If we replace Main with Vector on line 21, the behavior becomes random: in 50% of all cases it prints the wrong sequence, in other 50% the right. Our team treats this as a bug for several reasons:
1) Objects should be destroyed in breadth first reference tree traversal order, starting from the root. There are no cycles. It is nonsense to have freed children in parent's destructor.
2) Our applications suffer very much from this bug. Real "Vector" holds GPGPU memory and real "Device" holds the context, and CUDA/OpenCL require the context to be freed the last. With CUDA, the invalid destructor call order leads to segmentation faults.
This may have something to deal with the implementation of PEP 442 (though in our case there no reference cycles at all). |
|
Date |
User |
Action |
Args |
2015-03-20 12:56:26 | Alexey Kazantsev | set | recipients:
+ Alexey Kazantsev |
2015-03-20 12:56:26 | Alexey Kazantsev | set | messageid: <1426856186.55.0.426766995956.issue23720@psf.upfronthosting.co.za> |
2015-03-20 12:56:26 | Alexey Kazantsev | link | issue23720 messages |
2015-03-20 12:56:26 | Alexey Kazantsev | create | |
|