[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >For me, the question is why would anyone call atexit.unregister() inside an >atexit callback. Is it useful? Is not useful, is just an edge case -- ___ Python tracker _

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread STINNER Victor
STINNER Victor added the comment: For me, the question is why would anyone call atexit.unregister() inside an atexit callback. Is it useful? atexit._run_exitfuncs() removes all registered callbacks. Py_Finalize() calls _PyAtExit_Call() which also removes all registered callbacks. -

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread STINNER Victor
STINNER Victor added the comment: Interesting bug report! Thanks for the fix ;-) -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 934a24c641da5bc4bdb724e901adc20f9a5dff40 by Miss Islington (bot) in branch '3.10': bpo-46025: Fix a crash in the atexit module for auto-unregistering functions (GH-30002) (GH-30005) https://github.com/python/cpython/commit/934a24c641da5b

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +28229 pull_request: https://github.com/python/cpython/pull/30005 ___ Python tracker _

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f0d290d25cad66e615ada68ba190b8a23ac1deaa by Pablo Galindo Salgado in branch 'main': bpo-46025: Fix a crash in the atexit module for auto-unregistering functions (GH-30002) https://github.com/python/cpython/commit/f0d290d25cad66e615ada68b

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +28226 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30002 ___ Python tracker __

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue46025] Raising in an atexit function in dev mode crashes

2021-12-09 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Issue found by Matt Wozniski: Running this with python3.10 -X dev segfaults: import atexit def func(): atexit.unregister(func) 1/0 atexit.register(func) -- keywords: 3.10regression, 3.11regression messages: 408106 nosy: pablogsal pri