Hacker News new | past | comments | ask | show | jobs | submit login

strace's -Z flag is quite useful to filter only syscalls that failed.

In a similar way, -k is useful to get tracebacks.




I should write that down; -Z would've been really useful when my SSH server was falling over in a heap and I was left scrolling through strace to work out what happened.

I wrote that experience up last week, for what it's worth: https://imrannazar.com/articles/linux-upgrade-fail




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: