strace — Binary Crash Forensics
Find why a compiled binary exits immediately with no error output using strace.
A advanced Linux challenge worth 20 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.
The Challenge
A binary at /opt/app/service exits with code 1 immediately on startup. No error message. strace is your only tool.
Your tasks:
- Trace file-related syscalls: strace -e trace=openat,stat,connect /opt/app/service 2>&1 | head -30
- Identify the first syscall that returns ENOENT or EACCES
- Determine what the binary is looking for (config file, socket, directory)
- Create the missing resource or fix the permission
- Verify the binary starts successfully
- Write to /tmp/strace_findings.txt: missing resource path, error type, and fix applied
- Run check to validate