zmitchell / proctrace

A high-level profiler for process-level events such as fork, exec, exit, setpgid, and setsid
https://proctrace.xyz
Apache License 2.0
26 stars 0 forks source link

Missing `exec`s #2

Open zmitchell opened 1 week ago

zmitchell commented 1 week ago

Steps to reproduce:

$ proctrace record -o demo.log -- ./demo_script.sh
$ proctrace render -i demo.log -d by-process

You'll see two processes that fork without an exec. I'm pretty confident these are the printf calls in demo_script.sh. It's possible that somehow the shell builtin printf is getting called, but I tried to avoid that by calling command -v printf directly.