Yes, exactly — and this closes the case. Inside the firejail sandbox, bwrap is a shim: fbwrap is bind-mounted over /usr/bin/bwrap, so your earlier check readlink /proc/<pid>/exe showing /usr/bin/bwrap was misleading (the path is the same, the binary behind it is fbwrap). The pieces now all fit:
--die-with-parent ignored: fbwrap "just starts the application" with no sandboxing features, so neither it nor the loader ever arms PR_SET_PDEATHSIG. When Firefox exits, fbwrap is orphaned (reparented to the firejail PID-namespace init, your PPID 2144111) and nothing in the kernel is set up to kill it. fbwrap keeps waiting on its child (do_wait), and the loader idles in its tokio event loop — the futex you saw.
Seccomp: 2 reinterpreted: that seccomp filter on glycin-image-rs was firejail's own filter applied to the whole sandbox, not bwrap's --seccomp fd. So glycin's loader was never actually sandboxed in the Firefox-in-firejail case.
Your repro is the cleanest possible proof: identical command, dies correctly outside firejail, leaks inside firejail — because inside firejail it is a different, no-op program.
So the overall picture for your original question has two distinct causes depending on the app:
Firefox under firejail: fbwrap shim disables sandboxing and parent-death handling (firejail did this deliberately because real bwrap broke inside its sandbox, firejail #7009); the leaked loader processes are its consequence.
LibreOffice (and Firefox outside firejail): the AppArmor profiles block the real bwrap sandbox, glycin falls back to running loaders unsandboxed (Debian bug #1127671), and the orphaned loaders then also linger.
What I would report:
To firejail: fbwrap must not silently ignore the process-lifecycle contract. It is trivially fixable: fbwrap should arm prctl(PR_SET_PDEATHSIG, SIGKILL) itself before exec'ing the payload (and/or kill its child and exit when its own parent dies). The existing lifetime sloppiness is already tracked in firejail #7081, but the die-with-parent/leak aspect deserves its own report with your reproducer.
To glycin (upstream and/or Debian): in unsandboxed fallback mode the loaders leak permanently, which contradicts the documented 30-second idle self-termination; glycin should arm a parent-death signal itself in the non-sandbox path instead of relying on bwrap.
As interim workarounds: run Firefox without the firejail allow-bwrap/fbwrap shim (i.e., accept real bwrap inside the sandbox if your profile/kernel userns setup permits it), or add a small session-logout cleanup (pkill -u $USER -f glycin-loaders when the sandbox exits).
Yesterday 6:11pm
This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.
This is a shared conversation and may include unverified content that doesn't reflect Mistral AI's views. Login to resume chatting.