Message336206
> I thought that local-variables were deterministically (ref-countering) destructed. What is happening?
IT's a reference cycle. Exception => traceback => frame => exception. The 'err' variable kept the frame alive which kept the exception alive which kept everything alive. The GC is supposed to be able to break ref cycles, but GC collections are irregular and sometimes the GC fails to break complex cycles. |
|
Date |
User |
Action |
Args |
2019-02-21 11:21:02 | vstinner | set | recipients:
+ vstinner, yselivanov, ankostis |
2019-02-21 11:21:02 | vstinner | set | messageid: <1550748062.56.0.847735328571.issue29757@roundup.psfhosted.org> |
2019-02-21 11:21:02 | vstinner | link | issue29757 messages |
2019-02-21 11:21:02 | vstinner | create | |
|