Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <[email protected]>
  • Loading branch information
cole-miller committed Aug 16, 2024
1 parent b6216c0 commit 5ac8ec2
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion contrib/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,20 @@

bins="unit-test integration-test raft-core-fuzzy-test raft-core-integration-test raft-core-unit-test raft-uv-integration-test raft-uv-unit-test"

cat >uv_close.gdb <<EOF
set pagination off
break uv_close
command 1
bt
c
end
run
quit
EOF

make -j$(nproc) $bins
for bin in $bins; do
LIBDQLITE_TRACE=1 gdb -batch -ex run -ex bt -ex generate-core-file --args ./$bin --no-fork
LIBDQLITE_TRACE=1 gdb -x uv_close.gdb --args ./unit-test 'conn/exec/close_while_in_flight'
done

0 comments on commit 5ac8ec2

Please sign in to comment.