Closed aweeraman closed 3 years ago
You're missing gdb/gcore in your sid container:
# apt-get install gdb
and you need at least SYS_PTRACE
capability set for your container:
# docker run --cap-add=SYS_PTRACE -v $PWD:/mnt -it --rm --name deb-sid debian:sid /bin/bash
@aweeraman Did @sengelsman suggestion resolve your issue?
@aweeraman Did @sengelsman suggestion resolve your issue?
Installing gdb in the container did the trick.
I did not need to add the SYS_PTRACE capability explicitly, and I don't believe it's set by default either. It worked fine, however.
Thanks @sengelsman.
Expected behavior
I'm attempting to build and run procdump (v 1.1.1) on a Debian sid container, and run a simple test to capture up to 3 core dumps when 'cat'ing /dev/urandom to /dev/null in the background with a CPU threshold of 80%.
Actual behavior
It doesn't seem to capture core dumps despite hitting the CPU thresholds:
This same test works fine on a non-containerized environment (Debian unstable), with the following output:
Steps to reproduce the behavior
System information (e.g., distro, kernel version, etc.)
Host system: Debian unstable Kernel: 5.7.8 #1 SMP Fri Jul 10 22:31:47 EDT 2020 x86_64 GNU/Linux