Repository navigation
Description
What
Sanitizers is red on master. Run 40884102538 at 32c4bcc19 fails two of its four jobs: asan 🧪 and valgrind 🧪 (tsan passes).
The previous run, 40774974849 at 7b1546a72 (2026-10-28 21:48 UTC), was green in all four jobs, so this arrived inside that window — the same window as the #2625 per-target ratchet merges.
asan 🧪 — 8 diagnostics in targets ratcheted on 2026-10-29
Compile errors (-Werror), no runtime report was reached:
| File | Line | Diagnostic |
|---|---|---|
plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c.h |
434 | conversion to unsigned int from int may change sign [-Wsign-conversion] |
plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c.h |
435 | same, height /= 1 << fmt_desc->log2_chroma_h |
plugins/obs-outputs/rtmp-av1.c.h |
109 | int to uint8_t may change value [-Wconversion] (result >>= 8 - 1) |
plugins/obs-outputs/rtmp-av1.c.h |
499, 500 | int to uint8_t (seq_params.profile << 5 | seq_params.level, …) |
plugins/obs-outputs/mp4-mux.c.h |
524 | int to uint8_t (s_w8(s, full_range << 7)) |
plugins/obs-outputs/rtmp-hevc.c.h |
827, 843 | int to uint8_t (s_w8(...) bit-field expressions) |
obs-ffmpeg was ratcheted by #2865 (merged 2026-10-29 05:45) and obs-outputs by #2872. Both are the exact class these ratchets remove, so the ratchet's validation lane did not compile these sites: earlier slices hit the same blind spot on macOS (rist_sender_create, #2869/#2875) and on the Cocoa seams (#2900). Every site is a bit-shift expression whose value provably fits the destination byte, so the fix is a cast at the call (s_w8(s, (uint8_t)(...)), (unsigned)(1 << ...)), not a value change.
valgrind 🧪 — two classes, one proven change and one unmasked
plugins/linux-v4l2/v4l2-helpers.c.h:20:43(15 occurrences):format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'uint'.linux-v4l2was ratcheted by build(linux-v4l2): compile the plugin with the conversion warnings enabled (#2625) #2849 (2026-10-28), whose diff casts frame geometry to(uint32_t); a%lucall site now receives the narrowed type. This is a real regression from the ratchet, and the cast should keep the value but not the format contract.libobs-opengl/gl-subsystem.c.h:115:13:function declaration isn't a prototype [-Werror=strict-prototypes]atstatic void gl_enable_debug(). That line is unchanged (upstream's empty parameter list), and-Wstrict-prototypeshas been on since build(cmake): compile C with -Wmissing-prototypes and -Wstrict-prototypes (#2624) #2678 on 2026-10-27 — which the green 2026-10-28 run postdates. The most likely explanation is the zccache hit: build(libobs-opengl): make the conversions explicit (#2625) #2871 changedlibobs-opengl's compile flags, so the object was recompiled for the first time since build(cmake): compile C with -Wmissing-prototypes and -Wstrict-prototypes (#2624) #2678 and a latent diagnostic surfaced. Labelled as a hypothesis, not measured: confirming it means checking that run'szccacheHIT/MISS lines for thelibobs-openglobjects.
Why this matters beyond the two lanes
Sanitizers runs on a schedule, so nothing here blocks a PR: Tier 2, Fast Gate and CI Gate ✅ are green on the same commit. That is exactly how a ratchet can ratchet over a build configuration it never compiles — the third time this has happened in this series. Two options, for a maintainer to choose:
- Add the sanitizer configuration to the ratchet PR checklist (compile the target in the
-DDEBUGasan tree before queueing). - Better: have
ci/detect it mechanically — aci/test_*.pythat compiles each already-ratcheted target's TUs in the sanitizer configuration is a build, not a test, so this may belong in theasan/valgrindlane's own "select passes" instead: select asan when a ratcheted target's sources change, so the PR that rats it pays for the check.
Acceptance
Sanitizersgreen onmasteragain.- No value change at any site: the casts only state the conversion that already happened.
- The chosen mitigation from the two options above, so the next ratchet slice cannot land with a sanitizer-only error.
Filed from a worker tick; the run links and log lines above are from gh run view 40884102538 --log.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 29, 2026
Claiming: the Sanitizers lane's asan + valgrind diagnostics
Plan, in two PRs if the valgrind half turns out to be a different mechanism:
-DDEBUG -DENABLE_HEVCtree (or reuse the lane's.sanitize/build-asanshape) and compile the eight TUs, so the RED is a real compile, not a log read. If that configuration cannot be built on this box, say so in the PR and let the lane itself be the evidence (as frontend: state the conversions the app target now reports (#2625) #2909 does).(uint8_t)around thes_w8/shift expressions inrtmp-av1,rtmp-hevc,mp4-mux;(unsigned)/(uint32_t)for the two vaapi chroma divisions. Values unchanged.%lucaller behindv4l2-helpers.c.h:20(the diagnostic points at the macro, not the call) and restore a type that matches the format, rather than widening the format. Fixgl_enable_debug()to(void)if that is the whole-Wstrict-prototypesfinding, and check the 2026-10-28 run's zccache lines to settle whether it was cached or new.zackees commentedon Oct 29, 2026
Claiming: the Sanitizers asan + valgrind diagnostics
Plan stays as above: reproduce the asan half in a
-DDEBUGconfiguration, state the eight conversions at their call sites with values unchanged, then the valgrind%lucaller andgl_enable_debug(void).zackees commentedon Oct 29, 2026
Continuing this claim in the next worker tick: starting from current master (
18f8a3f22), branchfix/2923-sanitizer-conversionsin the warm checkout. First I replay the five affected TUs through the local compile database with the three conversion groups appended, to turn the lane log into a local RED.build(test): link libm for test_scene_crop_steps when sanitized (#2923)
build(obs-outputs): state the HEVC array-completeness byte too (#2923)
zackees commentedon Oct 29, 2026
Status of this claim, after the first two
Sanitizersdispatches:6c5fd4516on master) — theobs-ffmpegvaapi pair, the twortmp-hevcbytes, theget_bit1()right shift,gl_enable_debug(void), and the threev4l2-helpersPRIuFAST32call sites. Merged by the coordinator at 15:21 UTC, before its last two commits existed.get_bit1()'s left shift (asan reported it on the branch run) andlibmfortest_scene_crop_steps, which the valgrind lane needs once the build gets as far as linking.mp4-mux.c.h:524andrtmp-hevc.c.h:853.What the lane runs found that the master log could not, because master's valgrind job stopped at compile:
asan 🧪on the branch (artifactsanitize-asanof 40893068597) listed exactly two diagnostics after the first fix:mp4-mux.c.h:524(build(obs-outputs): state the mp4-mux and rtmp-hevc conversions macOS clang reports (#2921) #2922) andrtmp-av1.c.h:109, the left shift.valgrind 🧪on the same branch built all 2204 targets and failed at the link oftest_scene_crop_steps:undefined reference to symbol 'ceilf@@GLIBC_2.2.5'. That is the UBSanfloat-cast-overflowruntime calling libm, whichlibobsonly links privately. build: state the other get_bit1 shift and link libm where the sanitizer needs it (#2923) #2935 addsmunderif(NOT MSVC), the convention the other scene-step tests already use.So
Sanitizerson master is green only when #2935 and #2922 have both landed; the next scheduled run after that is the acceptance check.The second acceptance item — a mechanism so a ratchet slice cannot land with a sanitizer-only error — is still open. The cheapest one that fits what was measured here: the lane's
Select passes 🎯job already decides whether to run asan, so it can also select asan when a target whose conversion groups are on has its sources changed, which bills the ratchet PR instead of the nightly. That is a workflow-graph change and needs a maintainer's yes.zackees commentedon Oct 29, 2026
Status from the worker tick: the compile sites are stated on master, and the lane is re-verifying.
Fixes landed on 2026-10-29 (all linked to this issue):
#2925(6c5fd45) — the vaapi1u <<shifts, the v4l2%lusites,gl_enable_debug(void).#2922(985ccf2) — mp4-muxs_w8and rtmp-hevc bit fields.#2935(6d5ba5f) — the secondget_bit1shift, andlibmlinked where the sanitizer needs it.No value changed at any site: every fix states a conversion that already happened.
Verification in flight: Sanitizers run 40919949570 at master
c2df54a7f—Select passes 🎯green,valgrind,asanandtsanrunning. The two runs between were red at commits older than #2935 (13:40 at32c4bcc19, 15:32 at562079974), so neither says anything about the current tree. If any of the three jobs still fails, the remainder comes back here as the next slice.Decision needed: which mitigation stops the next ratchet from passing over a configuration it never compiles. My recommendation is option 2, narrowed:
ci/ci_scope.pyselects theasanlane when a diff touches a target already in the conversion ratchet (ci/knows that list), so the PR that ratchets a target pays for the check, and nothing else does. Cost is one extra asan build on those PRs, on a lane that already exists, so no new workflow file and no change to the merge-queue critical path (#2072). Option 1 stays a checklist item either way, because it costs a reviewer's attention instead of CI time.This part waits on your answer; the casts above do not.
15 remaining items
zackees commentedon Oct 29, 2026
Worker tick:
Sanitizersis green onmasteragain, so the acceptance bullet this issue was opened for is met.Evidence — run 40942190769 at
6ca10e79f, all four jobssuccess:Select passes 🎯,asan 🧪,tsan 🧪,valgrind 🧪.6ca10e79fis an ancestor of currentorigin/master(9ffa4e65c) and postdates every fix linked here:#2925(6c5fd4516) — vaapi1u <<, the v4l2%lusites,gl_enable_debug(void)#2922(985ccf278) —mp4-muxs_w8,rtmp-hevcbit fields#2935(6d5ba5fad) — the secondget_bit1left shift,libmfortest_scene_crop_stepsNo value changed at any site; every edit states a conversion that already happened.
What is left is only the mitigation bullet ("the chosen mitigation from the two options, so the next ratchet slice cannot land this way"). The repo rules do not pick between them, and both are defensible:
ci/select theasan/valgrindpasses when an already-ratcheted target's sources change, so the ratcheting PR pays for the check (the issue calls this one better).Decision needed: option 1 or option 2 for the ratchet/sanitizer coverage mitigation. I recommend option 2, implemented as a lane-selection test in
ci/so it cannot regress silently; option 1 costs nothing in code but relies on a checklist nobody enforces. On your answer I will land the chosen form and close this issue.zackees commentedon Oct 29, 2026
Verdict:
Sanitizersis green on master — all four jobs, acceptance met.Dispatch 40942190769 on
masterat6ca10e79f:Select passes 🎯asan 🧪(job 123688342240)tsan 🧪(job 123688342444)valgrind 🧪(job 123688342445)6ca10e79fis an ancestor of current master (c3a8a6319), so this verdict is not stale:Against the issue's acceptance list:
asancompiles past the eight conversion sites (obs-ffmpeg-vaapi.c.h:434,435,rtmp-av1.c.h:109,499,500,mp4-mux.c.h:524,rtmp-hevc.c.h:827,843), andvalgrindpassesv4l2-helpers.c.h:20andgl-subsystem.c.h:115(%lu/uintand thestrict-prototypesfinding). Earlier in the same sequencevalgrindwas already green atc2df54a7f(run 40919949570), so both red classes from the original report have a green run behind them.s_w8(s, (uint8_t)(…)),(unsigned)(1 << …),size_t/%zuon the v4l2 format,static void foo(void)).5f166c9e6):conversion_ratchet.hit()now matches a ratcheted target's ownCMakeLists.txt, so the PR that turns a ratchet on selects the sanitizer lane. Test pinned inci/test_conversion_ratchet.py.Nothing is left open on this issue; closing it.
zackees commentedon Oct 29, 2026
Verdict:
Sanitizersis green on master, and the acceptance item on this issue is met.Dispatch 40942190769 at
6ca10e79f(master), whole run success:asan 🧪tsan 🧪valgrind 🧪Select passes 🎯That closes the last acceptance item recorded here: the eight conversion sites the asan lane found are fixed by #2952 / #2955 / #2956,
valgrindandtsanno longer see a regression from the same window, and the ratchet scope now sends a PR that touches a ratcheted target through this lane (#2961), so the next one of these is caught on the PR that causes it instead of at the night's schedule.No fix PR is left open for this issue; closing it. If
Sanitizersgoes red again on master it is a new issue with a new run to cite, not a reopen of this one.build: state the conversions and the prototype the Sanitizers lane re…
build: state the other get_bit1 shift and link libm where the sanitiz…
ci: a ratchet PR runs the sanitizer lane that would have caught it (o…
ci: the ratchet opt-in PR runs the sanitizer lane (obs-rust#2923, obs…
build(properties-view): ratchet the target onto the conversion groups (…
infra(ci): replay the conversion ratchet with clang in the sanitizer …
ci: run ASan nightly only, not on PRs or the merge queue (obs-rust#4482)