Skip to content

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

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
cl/882797182
Open

Enable stack depth tracking via -fsanitize-coverage=stack-depth.#2006
copybara-service[bot] wants to merge 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 5 times, most recently from 7783aef to eecb939 Compare March 13, 2026 21:07
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: 882797182
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