[Build] Add supports for build kvrocks with UBSAN
- Dominant language
- C++
- Stars
- 4.4k
- Forks
- 658
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 10
Description
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/kvrocks/issues) and found no similar issues.
### Motivation
Sanitizer is widely used in systems. Currently kvrocks has ASAN and TSAN supports. And now kvrocks may has UB in https://github.com/apache/kvrocks/issues/2261 . So, I think we should add a build support for ubsan. We can enable UBSAN in CI after cleaning all the issues
### Solution
Add UBSAN support in build script
### Are you willing to submit a PR?
- [X] I'm willing to submit a PR!
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the build script and the existing ASAN and TSAN support, then trace how sanitizer builds are configured. Add equivalent UBSAN build support and verify that the build completes with UBSAN enabled; CI enablement is described as a later step after existing issues are cleaned up.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100