agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

[Bug]: Bundled static tmux 3.5a SIGFPEs on session create — AO can't spawn any agent

Open luqiang21 opened this issue 3 months ago • 4 comments

Summary

AO: 0.12.9 (Linux x64 AppImage) · Host: Ubuntu22.04.5, glibc 2.35, kernel 6.8

Symptom: Every spawn fails with 500 ... tmux runtime: create session ...: server exited unexpectedly . No agent can start.

Root cause: The bundled statically-linked tmux 3.5a crashes with SIGFPE (integer divide-by-zero) on session/pane create. It's in glibc __libc_early_init computing default pthread stack pages: div by GLRO(dl_pagesize) , which is 0 in the tmux server process. tmux -V / start-server are fine; only session create crashes.

Repro (no AO needed):

~/.ao/runtime/tmux/-linux-x64/tmux -S /tmp/x new-session -d 'sleep 5'; echo $?

"server exited unexpectedly", exit 1 — strace: killed by SIGFPE (FPE_INTDIV)

Ruled out: terminal size, config, ulimits, GLIBC_TUNABLES, FUSE, display, /dev/shm.

Fix confirmed: Swapping in a dynamically-linked tmux (Ubuntu jammy 3.2a) spawns correctly — POST /api/v1/orchestrators → 201, session goes idle . Points at the static build's startup, not the host.

Asks:

  1. Ship a dynamically-linked tmux (or fix static startup so dl_pagesize is set before __default_pthread_attr ).
  2. Startup self-check ( tmux new-session -d true ) with a clear error instead of a generic 500.
  3. Support an override (e.g. AO_TMUX_BIN ) to use a system tmux.

Steps to reproduce

downloaded on linux, tried to spawn orchestrator or create new task

Expected behavior

should start agent sessions

Actual behavior

but crashed with errors of tmux

AO version

0.12.9

Environment

Ubuntu 22.04.5

Logs / extra context


Before submitting

  • [x] I searched existing issues for duplicates
  • [x] I removed secrets / tokens from logs and screenshots

luqiang21 avatar Aug 28 '26 23:08 luqiang21

Thanks for contributing to Agent Orchestrator.

This issue is being picked up by the current external contributor on-call pair:

  • @illegalcall
  • @somewherelostt

If someone is already working on this, please continue as usual. The on-call pair is added for visibility, tracking, and support, not to take over the work. If you need help with review, direction, reproduction, or next steps, please tag @illegalcall and @somewherelostt here.

For faster context or live questions, you can also join the AO Discord.

Join the session here: https://discord.gg/H6ZDcUXmq

Come by if you want to see what is being built, ask questions, or just hang around with the community.

somewherelostt avatar Aug 29 '26 15:08 somewherelostt

@codebanditssss Verify if reproducing

illegalcall avatar Sep 08 '26 17:09 illegalcall

the issue is valid and the current main branch still builds linux tmux with --enable-static, so tmux -v can pass while the first real new-session crashes with sigfpe and every spawn returns 500. pr #5261 addresses the root cause by linking glibc dynamically, building on ubuntu 22.04, and adding a real session smoke test. the startup diagnostic and optional binary override would still be useful follow-ups, but the release fix should be reviewed and merged first.

codebanditssss avatar Sep 15 '26 15:09 codebanditssss

Closing the reported bundled-tmux crash as fixed by merged PR #5261. Linux release tmux is now dynamically linked against the Ubuntu 22.04 glibc baseline, and packaging executes a real new-session -d true smoke check—the exact operation that previously SIGFPEd while tmux -V passed. The optional runtime override and broader startup diagnostics were explicitly left as separate follow-ups.

codebanditssss avatar Sep 23 '26 14:09 codebanditssss