Skip to content

Enable stack depth tracking via -fsanitize-coverage=stack-depth.#2006

Merged
copybara-service[bot] merged 1 commit intomainfrom
cl/882797182
Mar 17, 2026
Merged

Enable stack depth tracking via -fsanitize-coverage=stack-depth.#2006
copybara-service[bot] merged 1 commit intomainfrom
cl/882797182

Conversation

@copybara-service
Copy link
Contributor

@copybara-service copybara-service bot commented Mar 12, 2026

Enable stack depth tracking via -fsanitize-coverage=stack-depth.

When combined with -fsanitize-coverage-stack-depth-callback-min=, the stack depth is tracked in the __sanitizer_cov_stack_depth() callbacks. But this may cause binary data deps to have missing references to the callback (because sanitizers do not come with a default definition for it). So tracking without the callback is implemented too, which checks __sancov_lowest_stack at the end of each test.

@copybara-service copybara-service bot force-pushed the cl/882797182 branch 8 times, most recently from eb48752 to 266deae Compare March 17, 2026 17:22
When combined with -fsanitize-coverage-stack-depth-callback-min=, the stack depth is tracked in the __sanitizer_cov_stack_depth() callbacks. But this may cause binary data deps to have missing references to the callback (because sanitizers do not come with a default definition for it). So tracking without the callback is implemented too, which checks __sancov_lowest_stack at the end of each test.

PiperOrigin-RevId: 885099833
@copybara-service copybara-service bot merged commit 3e42dc3 into main Mar 17, 2026
@copybara-service copybara-service bot deleted the cl/882797182 branch March 17, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant