mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-16 21:37:49 -04:00
ci: use ASan/UBsan in bluetooth tests
Compile with sanitizers for the bluetooth tests, for better backtraces on failures. Also produce backtraces via gdb.
This commit is contained in:
parent
ef35aa161b
commit
db5cb6515a
3 changed files with 34 additions and 4 deletions
22
.gitlab/ci/core-backtrace.sh
Executable file
22
.gitlab/ci/core-backtrace.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# core-backtrace.sh COREFILE...
|
||||
#
|
||||
# Print backtraces from core dump files
|
||||
#
|
||||
set -e
|
||||
|
||||
for f in "$@"; do
|
||||
if [ ! -e "$f" ]; then
|
||||
continue
|
||||
fi
|
||||
echo "#"
|
||||
echo "# --- $f ---"
|
||||
echo "#"
|
||||
exe=$(gdb -q -c "$f" -ex 'info auxv' -ex quit | sed -n -e '/AT_EXECFN/ { s/^[^"]*"//; s/"$//; p; }')
|
||||
if [ -f "$exe" ]; then
|
||||
gdb -q "$exe" "$f" -ex 'thr a a bt full' -ex quit
|
||||
else
|
||||
gdb -q -c "$f" -ex 'thr a a bt full' -ex quit
|
||||
fi
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue