diff --git a/interop/run_endpoint.sh b/interop/run_endpoint.sh index 6a64002a..62474abd 100644 --- a/interop/run_endpoint.sh +++ b/interop/run_endpoint.sh @@ -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. @@ -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