Changeset: 905387d0bafb for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/905387d0bafb
Modified Files:
        testing/Mtest.py.in
Branch: Jul2021
Log Message:

Produce full stack trace on crash.


diffs (17 lines):

diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -1521,9 +1521,12 @@ def coredumpctl(pid):
     fd, name = tempfile.mkstemp(suffix='.sh')
     fd2, name2 = tempfile.mkstemp()
     os.close(fd2)
-    os.write(fd, b'#!/bin/sh\ngdb -nx -batch -ex "thread apply all bt" "$@" > 
%s\n' % name2.encode('utf-8'))
+    os.write(fd, b'#!/bin/sh\ngdb -nx -batch -ex "thread apply all bt full" 
"$@" > %s\n' % name2.encode('utf-8'))
     os.close(fd)
     os.chmod(name, 0o700)
+    # with a more modern coredumpctl, we could use the
+    # -A/--debugger-arguments option:
+    # coredumpctl -q -A "-batch -ex 'thread apply all bt full'" gdb ...
     if procdebug:
         print('Starting: coredumpctl -q --debugger=%s gdb %d' % (name, pid))
     with process.Popen(['coredumpctl', '-q', '--debugger=%s' % name, 'gdb', 
str(pid)],
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to