Skip to content

Commit

Permalink
[+] add core dump collection for interop
Browse files Browse the repository at this point in the history
  • Loading branch information
Kulsk committed Jan 9, 2024
1 parent e9e1195 commit 4bf2fdb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions interop/run_endpoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ esac

LOG_DIR="/logs"
cd /xquic_bin/
ulimit -c unlimited


if [ "$ROLE" == "client" ]; then
# Wait for the simulator to start up.
Expand Down Expand Up @@ -101,3 +103,10 @@ elif [ "$ROLE" == "server" ]; then
echo "./demo_server $ARGS"
./demo_server $ARGS
fi

# debug for coredump
core_res=`find . -name "core*"`
if [ "$core_res" != "" ]; then
tar -zcvf core.tar.gz *
cp core.tar.gz /logs/
fi

0 comments on commit 4bf2fdb

Please sign in to comment.