Repository navigation
test(v4l2): exec the slow holder so TSan runs its SIGTERM handler - #3893
Conversation
) ThreadSanitizer does not run a user signal handler in a child forked from a multithreaded parent, so force_camera_opens_while_the_holder_is_still_exiting timed out under TSan only. The slow holder now restarts as a fresh copy of the test program (exec with --slow-holder), handled in main() before OBS starts. No assertion, timeout or product code changes; the other cases keep their plain fork. Test-only change to a C test, allowed by the maintainer decision on #3810 (#3810). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Local TSan re-run on this branch did not run: configure failed on this host (missing ECM / extra-cmake-modules), so nothing was built or tested. TSan GREEN still rests on the 10/10 runs of the same diff reported in #3810; it needs to be confirmed in the TSan lane before merge. |
|
Claim conflict: keep this PR out of the merge queue until resolved.
|
On 42efad3, the repository valgrind harness runs 5 cases: 4 pass, slow-holder readiness fails at line 250. /proc/self/exe launches memcheck-amd64-linux instead of the test program: valgrind reports that it cannot run test_v4l2_busy_signal directly. Memcheck reports 0 errors. Evidence: pool/san-3893/valgrind/tests/. Refs #3810; maintainer Decided authorizes this fixture-only correction.
Use the original test program path from argv[0] for the approved slow-holder exec. /proc/self/exe names the Memcheck runtime under valgrind and cannot launch the test helper. The existing ctest and sanitizer registrations invoke the test with its absolute executable path. No assertions, timeouts, or product behavior change. Refs #3810 and its maintainer Decided comment. TSan, ASan/UBSan, valgrind, plain hybrid and C-reference runs each pass all 5 cases; sanitizer triage is clean.
|
Completed the maintainer-required focused validation for Refs #3810 on ab4219d, after a plain merge of current master (
The final replay was run after committing and pushing the formatted GREEN head. These are focused runs of the entire existing The initial valgrind run provided RED evidence: 4/5 cases passed; the slow helper failed readiness because Commands/settings:
Retained local evidence: |
Refs #3810
ThreadSanitizer does not run the user SIGTERM handler in the slow holder forked from multithreaded OBS, so the existing force-release test times out. The maintainer approved restarting only that helper as a fresh copy of the test program, with its private mode dispatched before OBS startup. Assertions, timeouts, product code and the other plain-fork helpers are preserved.
The slow helper execs the original program path supplied by the existing CTest/sanitizer registration. Using /proc/self/exe instead launches the Memcheck runtime under valgrind and fails the readiness assertion; the validation follow-up fixes that fixture problem.
RED: original TSan failures documented in the issue; commit 656e842 additionally records the valgrind readiness regression (four of five cases pass). GREEN: ab4219d passes all five cases in each required lane: TSan, ASan/UBSan, valgrind, plain hybrid libobs and plain C reference. Sanitizer triage reports no findings. Detailed commands and retained logs are in the validation comment.
The requested full local lint invocation exited one at the changed execl line wrapping. Pinned clang-format corrected it and its subsequent full-file check passes. The full lint suite was not repeated; hosted Fast Gate remains the lint gate.