Skip to content

Commit

Permalink
worker/Dockerfile: enable core dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Jul 3, 2024
1 parent 730b9f3 commit aceb9ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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"
Expand Down
1 change: 1 addition & 0 deletions worker/test/src/RTC/RTCP/TestXr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "RTC/RTCP/XrDelaySinceLastRr.hpp"
#include "RTC/RTCP/XrReceiverReferenceTime.hpp"
#include <catch2/catch_test_macros.hpp>
#include <memory>
#include <cstring> // std::memcmp(), std::memcpy()

using namespace RTC::RTCP;
Expand Down

0 comments on commit aceb9ca

Please sign in to comment.