Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infra: add support for custom LSAN_OPTIONS values #12275

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

correctmost
Copy link
Contributor

Closes #9453

This PR also updates the librsvg project to use an LSan suppressions file now that custom LSAN_OPTIONS values are supported.

Copy link

correctmost is either the primary contact or is in the CCs list of projects/librsvg.
correctmost has previously contributed to projects/librsvg. The previous PR was #12250

@@ -55,6 +55,7 @@ RUN git clone https://chromium.googlesource.com/chromium/src/tools/code_coverage
# shouldn't be changed unless a corresponding change is made on
# ClusterFuzz side as well.
ENV ASAN_OPTIONS="alloc_dealloc_mismatch=0:allocator_may_return_null=1:allocator_release_to_os_interval_ms=500:check_malloc_usable_size=0:detect_container_overflow=1:detect_odr_violation=0:detect_leaks=1:detect_stack_use_after_return=1:fast_unwind_on_fatal=0:handle_abort=1:handle_segv=1:handle_sigill=1:max_uar_stack_size_log=16:print_scariness=1:quarantine_size_mb=10:strict_memcmp=1:strip_path_prefix=/workspace/:symbolize=1:use_sigaltstack=1:dedup_token_length=3"
ENV LSAN_OPTIONS="max_leaks=0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assign the default max_leaks value here to ensure that the LSAN_OPTIONS environment variable is defined when run_fuzzer runs.

This seems like the riskiest part of the PR because some scripts and fuzz targets may behave differently when LSAN_OPTIONS is always defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow options file to control LeakSanitizer
1 participant