This is a complex tale I will attempt to make simple(ish). I’ve (re)learned more than I cared to about the details of pipes, signals, and certain system calls – and the solution is still elusive. For some time now, I have been using NNCP to back up my files. These backups are sent to my … Continue reading Pipes, deadlocks, and strace annoyingly fixing them→| The Changelog
Tracing a program with strace generates a lot of output because of the sheer number of syscalls every program calls during its runtime. This can become overwhelming very quickly, making it hard to analyze the trace and find what you are looking for. Fortunately, strace has several features that allow you to limit which syscalls … Continue reading Limiting which Syscalls to Trace with Strace| Abstract Expression
One of the great strengths of strace as a debugging tool is that it shows you what a program is doing regardless of whether it was compiled with debug info or not. The downside of this is that you only see the program’s syscall. You can use this information to deduce what is happening in … Continue reading Finding out where Syscalls are Called From: Stack Traces with Strace| Abstract Expression
There is probably no debugging tool on Linux that is more valuable and versatile than strace. This tool shows us all the calls a program makes to the operating system, including the data it transmits to the operating system via these calls and the return values sent back by the OS. Therefore, it can give … Continue reading Introduction to Strace| Abstract Expression
We use Vagrant for development at Stripe, using NFS mounts to share code from the host into the Vagrant dev box. We use bundler to manage Ruby dependencies, and configure it to install gems directly into the project directory, inside the vendor/ subdirectory. Installing gems there, instead of globally, ensures isolation, and preserves gems across re-creation of the Vagrant VM, which means you don’t need to wait for a bunch of gems to download if you blow away your VM. Recently we upgraded o...| nelhage debugs shit