When a glibc update accidentally breaks Chromium's audio
Chromium's audio broke after a Flatpak[1] runtime update: YouTube would not play, and the logs showed the error 'The futex facility returned an unexpected error code.' The author found that this message is printed not by Chromium but by glibc, which aborts when the futex[2] syscall returns an error code it does not expect. Futex is a Linux syscall used in synchronization operations such as mutexes and condition variables.
Attention turned to Chromium's Linux sandboxing architecture, which has two levels: the first restricts a process's runtime environment, and the second, the BPF sandbox[3], rejects any syscall that is not explicitly allowed by returning a custom error code — which could be the unexpected code glibc was seeing. A core dump from the crashing audio service yielded a traceback ending in PulseAudio's client library libpulse, confirming the crash came from the audio process. Disabling the audio sandbox with --disable-features=AudioServiceSandbox stopped the service from crashing, though videos still did not play, later traced to unrelated network connection issues.
The breakage affected only Chromium because of field trials[4], randomized feature flag controls used for A/B testing and gradual rollouts: the AudioServiceSandboxLinux trial was active only in Chromium, while Chrome, Brave and Edge had no reported YouTube issues. The author checked the active trials in each browser via chrome://version/?show-variations-cmd. Comparing PulseAudio's sources showed its condition variable code had not changed suspiciously between the 20.08 and 21.08 runtime versions, leaving glibc, which actually executes the futex calls, as the remaining suspect.
Read the original refi64.devDiscussion
Sources
-
refi64.dev
When a glibc update accidentally breaks Chromium's audio (2021)


