apps/fluxer lib tests sometimes abort at exit: glibc pthread_mutex_lock assertion #470

Open
opened 2026-11-13 15:01:01 +00:00 by charles · 0 comments
Owner

Seen on origin/textchat + origin/textchat-45-ui-forum-view (merge commit 78e5dc550e), Linux (CachyOS, Wayland session).

Steps:

  1. FLUXER_SCREENSHOT_TESTS=1 cargo xtask ci (or run the fluxer lib test binary directly with the ffmpeg LD_LIBRARY_PATH xtask sets).
  2. All 71 tests pass (test result: ok. 71 passed), then the process aborts:
Fatal glibc error: pthread_mutex_lock.c:88 (___pthread_mutex_lock): assertion failed: mutex->__data.__owner == 0
error: test failed, to rerun pass `-p fluxer --lib` (signal: 6, SIGABRT)

Running the binary 5 times in a row: 4 exits 0, 1 exits 134. Looks like a teardown race at process exit (a native library thread, e.g. libwebrtc/livekit or ffmpeg, still holding a mutex while statics are destroyed). It fails the test step of cargo xtask ci when it hits.

Found while working on Text chat 46 (#331); not fixed there.

Seen on `origin/textchat` + `origin/textchat-45-ui-forum-view` (merge commit 78e5dc550ec3aafb3c4a9fea931ee402c33fa358), Linux (CachyOS, Wayland session). Steps: 1. `FLUXER_SCREENSHOT_TESTS=1 cargo xtask ci` (or run the `fluxer` lib test binary directly with the ffmpeg `LD_LIBRARY_PATH` xtask sets). 2. All 71 tests pass (`test result: ok. 71 passed`), then the process aborts: ``` Fatal glibc error: pthread_mutex_lock.c:88 (___pthread_mutex_lock): assertion failed: mutex->__data.__owner == 0 error: test failed, to rerun pass `-p fluxer --lib` (signal: 6, SIGABRT) ``` Running the binary 5 times in a row: 4 exits 0, 1 exits 134. Looks like a teardown race at process exit (a native library thread, e.g. libwebrtc/livekit or ffmpeg, still holding a mutex while statics are destroyed). It fails the `test` step of `cargo xtask ci` when it hits. Found while working on Text chat 46 (#331); not fixed there.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#470
No description provided.