add CI workflow for Ruby ASAN (AddressSanitizer) testing#4
Open
add CI workflow for Ruby ASAN (AddressSanitizer) testing#4
Conversation
d5646f3 to
3b6a9a0
Compare
Add GitHub Actions workflow that runs a smoke test with ASAN-enabled Ruby to detect memory errors (buffer overflows, use-after-free, leaks) in the C extension layer. - Use ruby/setup-ruby with `ruby-version: asan` - LD_PRELOAD libstdc++ to work around __cxa_throw ASAN CHECK failures when non-ASAN DuckDB throws C++ exceptions internally - Test step uses continue-on-error until all ASAN issues are fixed - Cache DuckDB builds with ASAN-specific key to avoid collisions This workflow is a starting point. The plan is to incrementally fix ASAN-detected issues and eventually run the full test suite under ASAN.
3b6a9a0 to
966c37c
Compare
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.
Use
ruby/setup-rubywithruby-version: asanon ubuntu-24.04. The LD_PRELOAD libstdc++.so to resolve__cxa_throwASAN CHECK failure when DuckDB throws C++ exceptions internally.See: google/sanitizers#934