Attempt to get crash info on Linux Test failure due to segmentation fault

This commit is contained in:
2026-03-10 12:35:28 +01:00
parent 37a39e750f
commit 8afc25b19c
2 changed files with 18 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
# https://gist.github.com/ongardie/aa15f1f0d0e6b59890a9
gdb -q --batch \
-ex 'handle SIGHUP nostop pass' \
-ex 'handle SIGQUIT nostop pass' \
-ex 'handle SIGPIPE nostop pass' \
-ex 'handle SIGALRM nostop pass' \
-ex 'handle SIGTERM nostop pass' \
-ex 'handle SIGUSR1 nostop pass' \
-ex 'handle SIGUSR2 nostop pass' \
-ex 'handle SIGCHLD nostop pass' \
-ex 'set print thread-events off' \
-ex 'run' \
-ex 'thread apply all bt' \
--tty=/dev/stdout \
--args $*