Repository navigation
test: Build test_ws_cpu_usage without UBSan's vptr check (nightly Sanitizers) - #2442
Merged
Merged
Conversation
The nightly Sanitizers asan pass (-fsanitize=address,undefined) failed to link test_ws_cpu_usage: undefined reference to typeinfo for WebSocketServer (run 40191023688). The request handlers name WebSocketServer, a QObject whose typeinfo is emitted only beside its moc output, which the test does not compile; only the vptr check references it. The test came in with #2250.
zackees
enabled auto-merge
October 26, 2026 03:36
Member
Author
|
Coordinator review: the cause and the fix match. Scoping -fno-sanitize=vptr to this one target is the narrowest fix; ASan and the rest of UBSan stay on, and no C test, plugin or header is touched. Since it's a focused CI fix, the nightly RED plus the dispatched asan run as GREEN is the right evidence; please post 40264875620's result here. Queuing; it merges when PR CI is green. |
Member
Author
|
GREEN: the asan pass on this branch passed (Sanitizers run 40264875620): |
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The nightly Sanitizers run has failed since 2026-10-25. The asan pass (
-fsanitize=address,undefined) can't linktest_ws_cpu_usage, which #2250 added:(run 40191023688,
build.login thesanitize-asanartifact). The last good run was 2026-10-24 on 6bae297.Cause
The request handlers name
WebSocketServer, which is aQObject. Its typeinfo is emitted only beside its moc output, and the test doesn't compile that. A normal build never references the typeinfo, but UBSan's vptr check does.Fix
-fno-sanitize=vptron this one target. ASan and the rest of UBSan stay on. Without a sanitizer, GCC accepts the flag and does nothing (checked in the Tier 2 image), so the Tier 2 build is unchanged. No product code, no C test source and no plugin source is touched.Evidence
gh workflow run sanitizers.yaml --ref fix/ws-cpu-usage-ubsan -f tools=asan(run 40264875620). I'll add its result here.