[issue46368] faulthandler: add the ability to dump all interpreters, not only the current interpreter

2022-01-18 Thread Hai Shi


Change by Hai Shi :


--
nosy: +shihai1991

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46368] faulthandler: add the ability to dump all interpreters, not only the current interpreter

2022-01-13 Thread Dong-hee Na


Change by Dong-hee Na :


--
nosy: +corona10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46368] faulthandler: add the ability to dump all interpreters, not only the current interpreter

2022-01-13 Thread STINNER Victor


STINNER Victor  added the comment:

Attached patch is an incomplete quick & dirty implementation to log all 
interpreters in _Py_DumpTracebackThreads().

A better implementation should leave the current behavior unmodified, add a new 
C function, and add all_interpreters=False parameter to the following 
faulthandler functions:

* dump_traceback()
* enable()
* register()

--
keywords: +patch
Added file: https://bugs.python.org/file50561/faulthandler.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46368] faulthandler: add the ability to dump all interpreters, not only the current interpreter

2022-01-13 Thread STINNER Victor


New submission from STINNER Victor :

While debugging the sub-interpreter crash bpo-46070, I noticed that 
faulthandler only logs the Python thread state of a single interpreter. When a 
bug involves multiple interpreters, it is useful to log all interpreters.

--
components: Library (Lib)
messages: 410519
nosy: vstinner
priority: normal
severity: normal
status: open
title: faulthandler: add the ability to dump all interpreters, not only the 
current interpreter
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com