Closed JeremyRand closed 1 year ago
The issue might be in the fork system for uroot.
When attempting to run a basic application within another program, it is unable to run successfully. For instance, if we try to execute a Go program that runs a C program that prints a basic message, we will receive the output below.
This output can be replicated by cloning the fork branch building the hello.c and test.go files then tracing test.go using u-root's strace cmd
Fixed by: Adding unix.PTRACE_O_TRACEEXEC to the Ptrace Options fixes the fork issue. This will enable us to avoid seeing the SIGTRAP signal. This option tells ptrace to generate a SIGTRAP signal immediately before a new program is executed with the execve system call.
Chromium fails when being run in Horklump, due to this upstream bug: https://github.com/u-root/u-root/issues/2590