[issue24596] Script globals in a GC cycle not finalized when exiting with SystemExit

2018-07-03 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue24596] Script globals in a GC cycle not finalized when exiting with SystemExit

2018-07-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset e1ebf51f76037b7e02711aaeb9bf66c9147f4c74 by Antoine Pitrou (Miss Islington (bot)) in branch '3.6': bpo-24596: Decref module in PyRun_SimpleFileExFlags() on SystemExit (GH-7918) (GH-8069) https://github.com/python/cpython/commit/e1ebf51f76037b7e

[issue24596] Script globals in a GC cycle not finalized when exiting with SystemExit

2018-07-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 20ae4c60258479a0732d12af292f422679444e2c by Antoine Pitrou (Miss Islington (bot)) in branch '3.7': bpo-24596: Decref module in PyRun_SimpleFileExFlags() on SystemExit (GH-7918) (GH-8070) https://github.com/python/cpython/commit/20ae4c60258479a0

[issue24596] Script globals in a GC cycle not finalized when exiting with SystemExit

2018-07-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +7680 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue24596] Script globals in a GC cycle not finalized when exiting with SystemExit

2018-07-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +7679 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue24596] Script globals in a GC cycle not finalized when exiting with SystemExit

2018-07-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset d8cba5d16f1333fd625726fc72e66afbd45b8d00 by Antoine Pitrou (Zackery Spytz) in branch 'master': bpo-24596: Decref module in PyRun_SimpleFileExFlags() on SystemExit (GH-7918) https://github.com/python/cpython/commit/d8cba5d16f1333fd625726fc72e66af

[issue24596] Script globals in a GC cycle not finalized when exiting with SystemExit

2018-06-25 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.7, Python 3.8 -Python 3.4, Python 3.5 ___ Python tracker ___ __

[issue24596] Script globals in a GC cycle not finalized when exiting with SystemExit

2018-06-25 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +7524 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue24596] Script globals in a GC cycle not finalized when exiting with SystemExit

2015-07-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, the problem is in PyRun_SimpleFileExFlags(). The executed module is decref'ed after calling PyErr_Print(), but the latter never returns when the exception is a SystemExit. -- nosy: +ncoghlan ___ Python tra

[issue24596] Script globals in a GC cycle not finalized when exiting with SystemExit

2015-07-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's likely that your global variable gets caught in the traceback attached to the SystemExit, and that either never gets deallocated, or gets deallocated too late. -- nosy: +pitrou ___ Python tracker

[issue24596] Script globals in a GC cycle not finalized when exiting with SystemExit

2015-07-09 Thread Petr Viktorin
New submission from Petr Viktorin: When this program is invoked as a script (`python reproducer.py`), the __del__ is never called: --- class ClassWithDel: def __del__(self): print('__del__ called') a = ClassWithDel() a.link = a raise SystemExit(0) --- Raising a different excep