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
test: test_transition_render_steps fails in the sanitizer builds (offset off by one bit) #3362
test_transition_render_steps fails in every sanitizer pass (asan, tsan and valgrind), in every nightly run we checked. It passes in Tier 2. Two cases fail at test/cmocka/test_transition_render_steps.c:478 (check_offset):
obs_source_transition_render_offset() computes tr_cx - source_cx * scale_x. With scale_x = 1.08f, the product rounded to float is 1080.0, so the result is 840.0 (44520000). The sanitizer builds give 839.99994 (4451ffff), and the y offset 1080 - 1000 * 1.08f gives -4.3e-5 instead of 0. The test compares bit patterns.
Probable cause
Those results are what a fused multiply-add gives (no rounding between the multiply and the subtract). So the sanitizer builds compile this code with FMA contraction and Tier 2 does not. The sanitizer passes configure with their own flags (rust/tools/sanitize/sanitize.py). Which flag lets the compiler fuse here is not known yet.
What to do
Find the build-flag difference. If it is FP contraction, give the sanitizer passes the same floating-point flags as Tier 2.
Seen in nightly 41203573843 and in the #3290 runs 41237708627, 41246480225, 41247123560.
The sanitizer harness's known list (rust/tools/sanitize/triage.py, #3290) has this as kind bug: the asan job does not count it, but fails once the test runs clean. So the fix PR also drops the entry.
Activity
vpacher commentedon Nov 1, 2026
/ready
vpacher commentedon Nov 1, 2026
Claiming: the sanitizer builds fuse the offset multiply-add
Plan (one PR, after #3290):
obs-source-transition-renderin the asan build (compile_commands.json) with Tier 2.test_transition_render_stepspasses under asan, tsan and valgrind.bugentry from the known list.First PR: after #3290 merges.
vpacher commentedon Nov 1, 2026
Blocked: waiting on #3290
ci(sanitizers): compile the sanitizer passes without FP contraction (o…