strace(1/0)

Debug a program with strace

Here’s a fun little debugging story. I’d begun to use keychain to manage ssh keys across processes. Before keychain, ssh-agent processes would multiply because each script that needed access to an ssh key would spawn its own ssh-agent process. But then I found this error. When I ran eval `/usr/bin/keychain –agents ssh –eval my_rsa`while logged into my shell, the keychain process correctly applied the ssh key to my user’s ssh-agent process.…