On 2026-11-13 we ran the zgrok CLI we were shipping, v0.30.3, on eleven common Linux images. It started on three of them.
Ubuntu 24.04, Debian 13 and python:3.12 were fine. Ubuntu 22.04, Debian 12, Rocky 9, Amazon Linux 2023 and node:22 were not. Neither were Ubuntu 20.04, Debian 11 or Alpine. We found it by accident, reading our update code for a different reason.
This post is about how a binary ends up needing things nobody chose, and what we now check before we ship one.
Two commands tell you what a binary needs
You do not need our tooling for this. Any Linux box with binutils will do:
objdump -T ./zgrok | grep -o 'GLIBC_[0-9.]*' | sort -Vu | tail -1
readelf -d ./zgrok | grep NEEDEDThe first prints the newest glibc symbol version the binary asks for. The second lists the shared libraries it loads. Here is what they say about v0.30.3, with the second output trimmed to the names:
GLIBC_2.39
libssl.so.3
libcrypto.so.3
libgcc_s.so.1
libm.so.6
libc.so.6
ld-linux-x86-64.so.2Two things in there were never a decision. A glibc of 2.39, which is newer than what Ubuntu 22.04, Debian 12 and RHEL 9 ship. And OpenSSL 3, which Debian 11 and Ubuntu 20.04 do not have. Debian 12 does package it, but the base image does not include it, and installing it would only get you to the glibc error.
What that looks like for a user (the loader also prints paths, shortened here):
$ zgrok --version # Ubuntu 22.04
zgrok: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found
zgrok: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found
$ zgrok --version # Debian 12
zgrok: error while loading shared libraries: libssl.so.3: cannot open shared object fileWhere 2.39 came from
The Linux build ran on an Ubuntu 24.04 machine of ours. So the glibc floor of our Linux releases came from whatever that machine had.
It moved once without anyone noticing. The releases from v0.10.0 to v0.29.0 needed GLIBC_2.38, because C code in our dependency tree was compiled against that machine's headers and picked up __isoc23_sscanf and __isoc23_strtol. Then v0.30.0 added zgrok login, which opens a browser. On Linux that is Command::new("xdg-open"), so the CLI now spawns a process. Rust's standard library can spawn through pidfd_spawnp, and that symbol is GLIBC_2.39. One new feature raised the floor.
We read in several places that LLD marks this version requirement as weak, so an older glibc only warns. That was not true for our binary. It was linked by LLD 21.1.2 and readelf -V shows the entry with Flags: none, which the loader enforces. The __isoc23_* requirement is strong anyway. So the fix was not the linker. It was the build machine.
libssl.so.3 came from reqwest, the HTTP client we use for zgrok update and zgrok login. In version 0.12 its default TLS backend on Linux is the system's OpenSSL. That is a fine default for a server you deploy yourself. For a CLI that runs on other people's machines it is a dependency on their OpenSSL version. OpenSSL 4.0 already ships as libssl.so.4, so the problem would come back on any distribution that drops the old one.
The part that worried us most
We ran zgrok update from v0.29.0 on a distribution with glibc 2.38, and got this:
Updated successfully: v0.29.0 → v0.30.3The next start failed with GLIBC_2.39 not found.
The updater checked the download's SHA-256 against a signed index, then renamed it into place. It never ran it. A digest proves the bytes are ours. It does not prove they start on this machine. And a binary that does not start cannot run zgrok update again, so the way back is reinstalling.
We cannot tell you how many people this hit. The failure happens on their machine, before the CLI talks to our server.
Checking the result, not the dependencies
The obvious fix is to look at each dependency and ask what it pulls in. We don't think that works for long. Next year a different crate adds a different system library, and it is easy to miss.
So we turned it around. cargo xtask check-binary reads a finished binary's imports and holds each platform to an allowlist:
- Linux: only glibc's own libraries, and no symbol newer than
GLIBC_2.28. - Windows: only DLLs that ship with Windows.
- macOS: only
/Systemand/usr/lib, minimum macOS 11.0.
It runs in every build job before an artifact leaves CI. It runs again in the release tool on the bytes the download server actually serves, before anything is signed. If a binary fails there, the release tool stops before it signs the index, and the update pointer does not move. Widening an allowlist is allowed, but it has to be a reviewed change. That is the point.
To see it fail, we ran it on the published v0.30.3 files. It refused Linux (libssl, libcrypto, glibc up to 2.39) and refused Windows. Windows was a surprise: the exe imported VCRUNTIME140.dll, which comes from the Visual C++ Redistributable, not from Windows. Plenty of machines have it because some other program installed it. A clean install might not. Linking the C runtime statically (+crt-static) removed it. macOS passed as it was.
How the Linux build changed
Three options, run on the same eleven images, with Rocky 8 added for manylinux:
| Build base | Highest glibc | Started on |
|---|---|---|
rust:1.91.1-bullseye | 2.30 | 10 of 11 |
| static musl | none | 11 of 11 |
manylinux_2_28 | 2.28 | 11 of 12 |
musl started everywhere, including Alpine. But musl's default allocator is known to be slow under multithreaded load, and a tunnel is exactly that kind of load. We didn't measure it, so we didn't choose it. Bullseye is past its LTS window. manylinux_2_28 is the AlmaLinux 8 based image the Python packaging project maintains for this problem, so we build in that, pinned by digest, on a GitHub-hosted runner. The one image it does not start on is Alpine.
The OpenSSL part was the easy one. reqwest 0.13 made rustls with the platform verifier its default, and the upgrade compiled with no code changes. One trap here: in reqwest 0.12 the obvious rustls-tls feature compiles a set of root certificates into the binary. For a CLI that some people never update, that means the day one of our hosts moves to a root the binary does not carry, it can no longer reach its own updater. The platform verifier reads the system's roots instead.
And the updater now runs the new binary with --version before it replaces anything. If it does not answer with the expected version, the old binary stays. On Ubuntu 22.04 it refused the real v0.30.3 with the loader's own message and left the old binary in place.
If you ship a CLI
Run the two commands above on your own release binary. If the glibc number is whatever your CI runner's distribution ships, your floor is an accident too. It was for us, for every published Linux release we measured, back to v0.10.0 in July.
If you are on an older distribution and an earlier zgrok did not start for you, v0.30.4 needs glibc 2.28 or newer, so it should start on anything from about RHEL 8 on. Alpine is still not supported. Rerun the installer from the download page and it will pick it up.