You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to profile containers using strace. The command I use is: strace -ff -o /log/trace.log tini -- /entrypoint-wrapper.sh /original-entrypoint.sh (note -ff which follows fork calls). As you can imagine, /entrypoint-wrapper.sh calls /original-entrypoint.sh using an exec call. Both of the scripts are Bash.
Looking at the output of the command, I can see strace attaching only to the tini process, but to none of its children. Moreover, the /log directory contains only a single log file for the tini process. The file has a bunch of wait4 and rt_sigtimedwait, which I imagine to be signal handling calls used by tini.
Running the above command without tini works as expected. How can I strace tini's children?
Thank you!
The text was updated successfully, but these errors were encountered:
filipdavidovic
changed the title
Unable to trace tini's children processes with strace
Unable to strace tini's children processes
Mar 26, 2021
Hi,
I am trying to profile containers using
strace
. The command I use is:strace -ff -o /log/trace.log tini -- /entrypoint-wrapper.sh /original-entrypoint.sh
(note-ff
which followsfork
calls). As you can imagine,/entrypoint-wrapper.sh
calls/original-entrypoint.sh
using anexec
call. Both of the scripts are Bash.Looking at the output of the command, I can see
strace
attaching only to the tini process, but to none of its children. Moreover, the/log
directory contains only a single log file for the tini process. The file has a bunch ofwait4
andrt_sigtimedwait
, which I imagine to be signal handling calls used by tini.Running the above command without tini works as expected. How can I
strace
tini's children?Thank you!
The text was updated successfully, but these errors were encountered: