diff --git a/worker/Dockerfile b/worker/Dockerfile index 64ae430df2..3a0dd68de8 100644 --- a/worker/Dockerfile +++ b/worker/Dockerfile @@ -6,7 +6,7 @@ RUN set -x \ && apt-get install --yes \ gcc g++ clang pkg-config bash-completion wget curl \ screen python3-pip python3-yaml pkg-config zlib1g-dev \ - libgss-dev libssl-dev libxml2-dev + libgss-dev libssl-dev libxml2-dev gdb # Install node 20. RUN set -x \ @@ -21,6 +21,10 @@ RUN set -x \ && apt-get update \ && apt-get install nodejs --yes +# Enable core dumps. +RUN set -x \ + && echo "mkdir -p /tmp/cores && chmod 777 /tmp/cores && echo \"/tmp/cores/core.%e.sig%s.%p\" > /proc/sys/kernel/core_pattern && ulimit -c unlimited" >> ~/.bashrc + # Make CC and CXX point to clang/clang++ installed above. ENV LANG="C.UTF-8" ENV CC="clang" diff --git a/worker/test/src/RTC/RTCP/TestXr.cpp b/worker/test/src/RTC/RTCP/TestXr.cpp index 82680a0eca..941fe7452d 100644 --- a/worker/test/src/RTC/RTCP/TestXr.cpp +++ b/worker/test/src/RTC/RTCP/TestXr.cpp @@ -3,6 +3,7 @@ #include "RTC/RTCP/XrDelaySinceLastRr.hpp" #include "RTC/RTCP/XrReceiverReferenceTime.hpp" #include +#include #include // std::memcmp(), std::memcpy() using namespace RTC::RTCP;