Repository navigation
Conversation
This branch has not been deployed
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.
Problem
On Windows, a Chromium
CHECKfailure aborts with an illegal-instruction trap and prints Chromium's ownDbgHelpstack trace first. BecauseDbgHelpoutput differs across Windows versions (Windows Server 2016 vs. 2025), that first stack causes crash states to drift across bots.AddressSanitizer (ASan) on Windows defaults to
handle_sigill=0andsymbolize=1. Withouthandle_sigill=1, ASan skips its report onCHECKcrashes. Withoutsymbolize=0, ASan symbolizes in-process withDbgHelpinstead of leaving raw offsets for offlinellvm-symbolizer.During libFuzzer option minimization, ClusterFuzz tests removing each flag in
ASAN_OPTIONS. Because Chromium's first stack keeps the crash state unchanged, minimization drops both flags and often stores{'ASAN_OPTIONS': {}}in testcaseenvmetadata. Later replay tasks treat that empty dict as a signal to unsetASAN_OPTIONSinstead of applying job defaults.Fix
Pin
handle_sigill=1andsymbolize=0on Windows via a sharedREQUIRED_WINDOWS_ASAN_OPTIONSconstant (environment.py):handle_sigillandsymbolizefromASAN_OPTIONSon Windows during libFuzzer option minimization (minimize_task.py). Other flags still minimize normally.envmetadata on Windows (setup.py), mergeREQUIRED_WINDOWS_ASAN_OPTIONSinto a copy of storedASAN_OPTIONSafter type validation and before the empty-dict check. Existing testcases with empty, partial, or conflicting maps regain both flags without mutating stored metadata.UBSAN_OPTIONS) withoutASAN_OPTIONSon Windows, restoreREQUIRED_WINDOWS_ASAN_OPTIONSafter the loop. This fallback only runs when the job usesASAN.Compatibility & Verification
setup_test.pyandminimize_task_test.pyfor Windows minimization and empty, partial, conflicting, and omittedASAN_OPTIONS.setup_test.py(42/42),minimize_task_test.py(20 run, 1 skipped), fullcoresuite (2,741 run, 203 skipped, 0 failures), fullappenginesuite (842 run, 6 skipped; 1 transient datastore emulator port collision ingrouper_test.py, which passed 24/24 standalone),butler.py format, andbutler.py lint.