Stop letting dynamic linkers hide your segfaults from journald
Technical Briefing | 11/30/2026
You have likely been there. A production binary dies with a silent exit code 139, but the logs in journald show nothing. Zero. The process just vanished without a trace, and your monitoring dashboard is screaming while you stare at a blank screen. It is not always a bad signal handler; sometimes it is the dynamic linker failing to load a library during a hot-patch update, and journald never even got the chance to catch the crash.
Why journald is not your only source of truth
Journald is excellent for application-level logs, but it is a user-space daemon. If your application crashes before the signal handler initializes or if the kernel decides to kill it via the OOM killer or a strict seccomp filter, the exit isn’t logged in a way you can easily grep. You need to look closer at what the kernel is doing the moment the binary hits the wall.
bpftrace -e 'tracepoint:signal:signal_deliver /args->sig == 11/ { printf("%s (%d) received SIGSEGV
", comm, pid); }'
- The tracepoint approach ignores standard output entirely
- It catches signals the kernel sends before the process can mask them
- This works even when the binary is stripped of all symbols
Most people reach for dmesg or systemctl status, but those are reactive. If you suspect a specific binary is flaky, running that bpftrace snippet gives you an immediate trigger. It will tell you exactly what process name and PID received the segmentation fault in real-time. If you see it happening, but the binary isn’t in your logs, check your ulimit settings or check if a hidden cron job is firing off an incompatible library update while your daemon is spinning up.
Next time a binary goes missing, don’t trust the absence of logs as proof of a clean exit. Drop a bpftrace one-liner onto the host for a few minutes; it is faster than debugging a core dump that might not even be generating due to disk pressure. Knowing the difference between an application error and a silent kernel kill will save you an entire afternoon of chasing ghosts.
