File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 81
81
82
82
- name : Run tests with image tests
83
83
if : runner.os != 'macOS'
84
- run : cargo nextest run --profile ci --cargo-profile ci --workspace --locked --no-fail-fast -j 4 --features imgtests,lzma,jpegxr
84
+ run : |
85
+ set +e
86
+ cargo nextest run --profile ci --cargo-profile ci --workspace --locked -j 4 --features imgtests,lzma,jpegxr
87
+ cat $(find . -name gdb.bt)
85
88
env :
86
89
# This is to counteract the disabling by rust-cache.
87
90
# See: https://github.com/Swatinem/rust-cache/issues/43
92
95
# Workaround for: https://github.com/nextest-rs/nextest/issues/1493
93
96
# See also: https://github.com/rust-lang/rustup/issues/3825
94
97
RUSTUP_WINDOWS_PATH_ADD_BIN : ' 1'
98
+ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER : " ./bt.sh"
95
99
XDG_RUNTIME_DIR : ' ' # dummy value, just to silence warnings about it missing
96
100
97
101
- name : Run tests without image tests
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # sauce : https://stackoverflow.com/a/63901492
4
+ # kredit: https://blog.cryptomilk.org/2010/12/23/gdb-backtrace-to-file/
5
+
6
+ ex=(
7
+ -ex " run"
8
+ -ex " set logging overwrite on"
9
+ -ex " set logging file gdb.bt"
10
+ -ex " set logging on"
11
+ -ex " set pagination off"
12
+ -ex " handle SIG33 pass nostop noprint"
13
+ -ex " echo backtrace:\n"
14
+ -ex " backtrace full"
15
+ -ex " echo \n\nregisters:\n"
16
+ -ex " info registers"
17
+ -ex " echo \n\ncurrent instructions:\n"
18
+ -ex " x/16i \$ pc"
19
+ -ex " echo \n\nthreads backtrace:\n"
20
+ -ex " thread apply all backtrace"
21
+ -ex " set logging off"
22
+ -ex " quit"
23
+ )
24
+ echo 0 | gdb -batch-silent " ${ex[@]} " --args " $@ "
25
+
You can’t perform that action at this time.
0 commit comments