You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test_context_names (cmocka, Tier 2 Linux, Rust ON) crashed once with a segfault in its test_canvas_sources case. A rerun of the same job on the same commit passed.
[ RUN ] test_canvas_sources
Could not run test: Test failed with exception: Segmentation fault(11)Test teardown failed
...
The following tests FAILED:
16 - test_context_names (Failed)
The crash is intermittent, which fits a lifetime race. The new weak-canvas release in #2041 (and #2017/#2038 before it) is the first place to look: a source's canvas reference released or read on one thread while the canvas is torn down on another.
Reproduce locally: build Tier 2 Linux (Rust ON) and run test_context_names in a loop. The log says "Test teardown failed", so the crash is probably in obs_shutdown after test_canvas_sources.
RED: a test that makes the crash deterministic. GREEN: the fix in libobs.
PR #2052 fixes two use-after-frees in obs_canvas_destroy: reading hh.next from a released scene, and HASH_CLEAR (from #2041) reading the table through a list head the destruction task thread may already have freed. With both fixes, Tier 2 tests ON passed (run 40067156166). The crash was intermittent, so one green run is limited evidence; reopen if test_context_names segfaults again.
Still happening after the close: nightly run 40063131689, job "Rust Tier 2 macos-26" (headSha 56732d6, which already has #2022 and #2041). It crashed in the Cargo [obs-c-reference] suite: test_context_names → test_canvas_sources, "Segmentation fault: 11 … Test teardown failed". The CMake OFF and hybrid ON suites passed, and lldb didn't reproduce it in 30 runs. So this is a timing-dependent teardown crash on both backends and both platforms, not only Rust ON.
Correction: I reopened this by mistake. Nightly 40063131689 ran on 56732d6, which does not contain #2052's fix (a35c779). It's the same crash that was already fixed, so I'm closing it again.
Activity
zackees commentedon Oct 24, 2026
Claiming: #2049.
test_context_namesin a loop. The log says "Test teardown failed", so the crash is probably inobs_shutdownaftertest_canvas_sources.test(canvas): run the canvas destroy race many times (#2049)
fix(canvas): take the next source before releasing the canvas's scene…
test(canvas): destroying a canvas reads a scene it just freed (RED, #…
test(canvas): run the canvas destroy race many times (#2049)
fix(canvas): take the next source before releasing the canvas's scene…
fix(canvas): empty the source list before releasing its scenes (#2049)
zackees commentedon Oct 24, 2026
PR #2052 fixes two use-after-frees in obs_canvas_destroy: reading hh.next from a released scene, and HASH_CLEAR (from #2041) reading the table through a list head the destruction task thread may already have freed. With both fixes, Tier 2 tests ON passed (run 40067156166). The crash was intermittent, so one green run is limited evidence; reopen if test_context_names segfaults again.
zackees commentedon Oct 24, 2026
Seen again in merge-queue run 40066825554 (both Tier 2 Linux jobs, tests ON and OFF), ejecting #2050 (obs-ffmpeg only).
fix(canvas): don't read a scene after releasing the canvas's last ref…
zackees commentedon Oct 24, 2026
Still happening after the close: nightly run 40063131689, job "Rust Tier 2 macos-26" (headSha 56732d6, which already has #2022 and #2041). It crashed in the Cargo [obs-c-reference] suite: test_context_names → test_canvas_sources, "Segmentation fault: 11 … Test teardown failed". The CMake OFF and hybrid ON suites passed, and lldb didn't reproduce it in 30 runs. So this is a timing-dependent teardown crash on both backends and both platforms, not only Rust ON.
zackees commentedon Oct 24, 2026
Correction: I reopened this by mistake. Nightly 40063131689 ran on 56732d6, which does not contain #2052's fix (a35c779). It's the same crash that was already fixed, so I'm closing it again.
libobs: Move the canvas flag rules
obs-core: Port the canvas flag rules
libobs: Move the canvas flag rules
obs-core: Port the canvas flag rules
obs-core: Port the canvas flag rules (obs-rust#2546)