Skip to content

Commit

Permalink
tests: ipsec: Capture GDB stack trace on crashes.
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
  • Loading branch information
igsilya committed Nov 22, 2024
1 parent 42156cd commit 56c5058
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/system-ipsec.at
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ m4_define([START_PLUTO], [
--ipsecdir $ovs_base/$1 --nssdir $ovs_base/$1/ipsec.d \
--logfile $ovs_base/$1/pluto.log --secretsfile $ovs_base/$1/secrets \
--rundir $ovs_base/$1], [0], [], [stderr])
while test -z "$(cat $ovs_base/$1/pluto.pid)"; do
sleep 0.1
done
gdb -p $(cat $ovs_base/$1/pluto.pid) <<< "
continue
backtrace
backtrace full
quit
y
" >> $ovs_base/$1/gdb.out 2>&1 &
])

dnl IPSEC_ADD_NODE([namespace], [device], [address], [peer address]))
Expand Down

0 comments on commit 56c5058

Please sign in to comment.