# dtrace -c "/rescue/sh -c '/usr/bin/true'" dtrace: failed to control pid 85198: process exited with status 0 Dtrace seems to have trouble working on statically linked binaries. Tried with multiple, with and without script provided. Seen on at least amd64.
This is because libdtrace stops a nascent process by placing a breakpoint on an rtld symbol, which obviously won't be there in a statically-linked binary. If the executable's symbol table is intact we can use main() instead, but that doesn't help for /rescue... I'll think about how to handle this, but I don't have a good solution at the moment. Note that upstream doesn't support static linking, so there might be other problems.