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
{{ message }}
Repository navigation
ci(sanitizers): about 150 tests report ThreadSanitizer races and nobody triages them #3369
P3Low priorityinfraBuild, gate, CI and toolingqualityTesting, safety and performance lanesreadyMeets the definition of Ready; claimablesize:LSeveral days
In the tsan pass of nightly 41203573843, 150 of 630 tests exit 66 (ThreadSanitizer found a race). The job stays green because fail_on_findings is off. Some reports point at test code, for example:
test/cmocka/test_view.c:163 in test_set_get_source
test/cmocka/test_task.c:63 in test_task_fifo_order
Others are in libobs. No issue tracks them.
What to do
Group the reports by first OBS frame (triage.py already does) and file one issue per distinct race in OBS code.
Fix the races in the tests themselves, or add a suppression with the reason.
Plan: group the tsan reports of the nightly by first OBS frame, file one sub-issue per distinct race in OBS code, and list the ones in test code. Then post that list here.
File one issue per remaining group of counted reports, the same way as before. Known candidates: test_v4l2_busy_signal fails under TSan only, a race in test_inhibit_sleep_dbus.c, stinger_update against the stinger's audio render, the ffmpeg output races and thread leaks, and the 7 lock order reports.
Fix them one PR at a time.
When the counted reports reach zero, fail_on_findings can go on for TSan. First update after today's nightly.
Progress: nightly 42235134335 (2eed59e) is the first CI run with #3698 and #3704. It compares with nightly 42049821983 (11-05), which ran before both merged. This is one run on each side, and races depend on timing, so a small change can be chance.
Since ci(sanitizers): Decide TSan results from reports, suppress glib #3704, a test does not stop at the first report (exit 66) any more. So 108 of the 110 non-zero exits are gone, and test cases that were skipped before now run to the end. Some reports are new for that reason only. Example: in test_encoder_error_stop, 8 cases were skipped on 11-05. Now they pass, and the test has 16 reports.
No lock order report is counted now. All of them have only external frames.
The 118 counted reports
Group
Tests
Reports
Next
end_data_capture_thread not joined, obs-output.c.h:2433 (thread leak)
1
9
In the test code issue: the test's child process exits without teardown, so the thread is not joined. Not a libobs bug.
Claiming: #3369 (continued: triage of the TSan nightly reports)
Progress: I compared the sanitizer nightlies 42377217725 (11-07) and 42486786733 (11-08, 5a8b724) with 42235134335 (11-06). There is one run for each day. Races depend on timing, so a small change can be chance.
11-06
11-07
11-08
Clean tests (TSan)
673/703
694/717
746/769
Counted reports (OBS or test code)
118 in 28 tests
97 in 21 tests
94 in 21 tests
External reports (not counted)
906
926
972
Tests with a non-zero exit
2
2
2
What changed from 11-06 to 11-08 (line numbers ignored)
14 reports in 2 tests. The C code of these races and the tests did not change, so I do not count them as fixed. They can come back on a different timing.
P3Low priorityinfraBuild, gate, CI and toolingqualityTesting, safety and performance lanesreadyMeets the definition of Ready; claimablesize:LSeveral days
Activity
vpacher commentedon Nov 1, 2026
/ready
vpacher commentedon Nov 1, 2026
Claiming: investigation
Plan: group the tsan reports of the nightly by first OBS frame, file one sub-issue per distinct race in OBS code, and list the ones in test code. Then post that list here.
First result: after #3290 merges.
vpacher commentedon Nov 1, 2026
Blocked: waiting on #3290
14 remaining items
vpacher commentedon Nov 6, 2026
Claiming: this issue again, to continue it. The claim lapsed while the work went through #3570 and #3701.
Since my last progress note, #3640, #3669 and #3698 closed #3570, and #3704 (#3701) makes the TSan pass decide from the reports. Plan:
test_v4l2_busy_signalfails under TSan only, a race intest_inhibit_sleep_dbus.c,stinger_updateagainst the stinger's audio render, the ffmpeg output races and thread leaks, and the 7 lock order reports.When the counted reports reach zero,
fail_on_findingscan go on for TSan. First update after today's nightly.vpacher commentedon Nov 7, 2026
Progress: nightly 42235134335 (2eed59e) is the first CI run with #3698 and #3704. It compares with nightly 42049821983 (11-05), which ran before both merged. This is one run on each side, and races depend on timing, so a small change can be chance.
What changed
test_portal_shortcutsare gone. Test code read a string that glib allocated, so they were false positives, and the glib suppression of ci(sanitizers): Decide TSan results from reports, suppress glib #3704 removes them.test_encoder_error_stop, 8 cases were skipped on 11-05. Now they pass, and the test has 16 reports.The 118 counted reports
end_data_capture_threadnot joined,obs-output.c.h:2433(thread leak)RecordingShutdownWait.hpp:39/62(frontend)Two tests fail under TSan:
test_v4l2_busy_signal, caseforce_camera_opens_while_the_holder_is_still_exiting. It fails only under TSan, as on the earlier nightlies. New issue.test_slideshow_mem_cap, casefade_has_both_slides. This is bug: slideshow: ASan fade_has_both_slides observes completed transition #3789, which ASan shows too.Next steps
test_v4l2_busy_signalissue.fail_on_findingscan go on for TSan.I keep this claim for these steps.
vpacher commentedon Nov 8, 2026
Claiming: #3369 (continued: triage of the TSan nightly reports)
Progress: I compared the sanitizer nightlies 42377217725 (11-07) and 42486786733 (11-08, 5a8b724) with 42235134335 (11-06). There is one run for each day. Races depend on timing, so a small change can be chance.
What changed from 11-06 to 11-08 (line numbers ignored)
RecordingShutdownWaitreports, with the suppression of ci(sanitizers): suppress Qt queued wait-functor allocation races (#3809) #3845 (ci(sanitizers): ThreadSanitizer cannot see Qt's queued calls, so WaitForOutputToStop shows 8 false races #3809).RecordingShutdownWaitreports stay (test_recording_shutdown_wait). In both, the signal goes through the Rust signal handler, which TSan cannot see (ci(sanitizers): ThreadSanitizer cannot see hand-offs through Rust, so the tsan pass reports false races on the hybrid build #3507). One of them shows Qt'sQMetaObject::invokeMethodImpl, which the suppression of ci(sanitizers): suppress Qt queued wait-functor allocation races (#3809) #3845 (invokeMethodCallableHelper) does not match.The 2 tests with a non-zero exit are the same as on 11-06. Each has an open PR:
test_v4l2_busy_signal: test: test_v4l2_busy_signal force_camera_opens_while_the_holder_is_still_exiting fails under ThreadSanitizer only #3810, PR test(v4l2): exec the slow holder so TSan runs its SIGTERM handler #3893.test_slideshow_mem_cap: bug: slideshow: ASan fade_has_both_slides observes completed transition #3789, PR fix(slideshow): publish current_index after the transition starts (#3789) #3909.Next
RecordingShutdownWaitreports: extend the suppression of ci(sanitizers): suppress Qt queued wait-functor allocation races (#3809) #3845, or annotate the Rust signal handler for TSan, as ci(sanitizers): ThreadSanitizer cannot see hand-offs through Rust, so the tsan pass reports false races on the hybrid build #3507 did for the task queue.ci(sanitizers): tell ThreadSanitizer about the Rust signal handler's …