strace
TODO: a beginners guide to using strace for debugging on linux