Running strace
#1
Tue, 2015-12-01 04:26
smebberson
-
- Offline
- 2 years 4 months ago
- 2015-10-01
I've been having a few problems with a tool I use Consul, receiving a bunch of signals which I don't think it should be. I tried to use strace to debug this and listen in on the signals it is actually receiving but I haven't been able to.
I keep getting the following error from my strace command:
strace: test_ptrace_setoptions_for_all: PTRACE_TRACEME doesn't work: Permission denied strace: test_ptrace_setoptions_for_all: unexpected exit status 1
I tried to add the following into /etc/sysctl.d/01-alpine.conf, but it hasn't changed anything:
kernel.grsecurity.harden_ptrace = 0 kernel.grsecurity.ptrace_readexec = 0
Is there anything else I can do to get strace running on Alpine Linux?
A couple of other points to note:
- I'm running this inside Docker
- The Consul process is running as the consul user
Did you validate this by output on dmesg or paxctl ?