[orca] Dump all threads if faulthandler enabled with debug file
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Dump all threads if faulthandler enabled with debug file
- Date: Mon, 1 Feb 2021 16:32:30 +0000 (UTC)
commit 295f70d9113d686046b6d46d0a7760c683112e43
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Feb 1 17:31:32 2021 +0100
Dump all threads if faulthandler enabled with debug file
src/orca/orca.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/orca.py b/src/orca/orca.py
index edb504893..0da11578d 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -714,7 +714,8 @@ exitCount = 0
def shutdownOnSignal(signum, frame):
global exitCount
- msg = 'ORCA: Shutting down and exiting due to signal=%d' % signum
+ msg = 'ORCA: Shutting down and exiting due to signal=%d (%s)' % \
+ (signum, signal.strsignal(signum))
debug.println(debug.LEVEL_INFO, msg, True)
# Well...we'll try to exit nicely, but if we keep getting called,
@@ -765,7 +766,7 @@ def main(cacheValues=True):
debug.println(debug.LEVEL_INFO, "ORCA: Launching (main).", True)
if debug.debugFile and os.path.exists(debug.debugFile.name):
- faulthandler.enable(file=debug.debugFile, all_threads=False)
+ faulthandler.enable(file=debug.debugFile, all_threads=True)
else:
faulthandler.enable(all_threads=False)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]