Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to strace tini's children processes #181

Open
filipdavidovic opened this issue Mar 25, 2021 · 1 comment
Open

Unable to strace tini's children processes #181

filipdavidovic opened this issue Mar 25, 2021 · 1 comment

Comments

@filipdavidovic
Copy link

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 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!

@filipdavidovic filipdavidovic changed the title Unable to trace tini's children processes with strace Unable to strace tini's children processes Mar 26, 2021
@tspearconquest
Copy link

tspearconquest commented Aug 24, 2022

I wonder if the -g flag would help here?

strace -ff -o /log/trace.log tini -g -- /entrypoint-wrapper.sh /original-entrypoint.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants