Skip to content

Commit df024ea

Browse files
committed
Debugging an issue on linux/arm64 (V)
1 parent 19d6bd4 commit df024ea

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,34 @@ jobs:
111111
ASAN_OPTIONS: "detect_leaks=0:abort_on_error=1:strict_string_checks=1:check_initialization_order=1"
112112
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"
113113
run: |
114-
ctest --test-dir build-arm64 --output-on-failure || \
114+
set +e
115+
ctest --test-dir build-arm64 --output-on-failure
116+
rc=$?
117+
if [ $rc -ne 0 ]; then
115118
ctest --test-dir build-arm64 --rerun-failed --output-on-failure
119+
rc=$?
120+
fi
121+
exit $rc
122+
123+
- name: Debug arm64 segfaults
124+
if: failure()
125+
shell: bash
126+
env:
127+
ME_DSL_JIT: ${{ matrix.me_dsl_jit }}
128+
run: |
129+
set +e
130+
for t in test_dsl_jit_runtime_cache test_dsl_syntax; do
131+
exe="build-arm64/tests/${t}"
132+
if [ ! -x "$exe" ]; then
133+
continue
134+
fi
135+
echo "=== gdb backtrace for ${t} (ME_DSL_JIT=${ME_DSL_JIT}, sanitize=${{ matrix.sanitize }}) ==="
136+
gdb -q -batch \
137+
-ex "set pagination off" \
138+
-ex "run" \
139+
-ex "thread apply all bt full" \
140+
--args "$exe" || true
141+
done
116142
117143
miniexpr-wasm32:
118144
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)