-
Notifications
You must be signed in to change notification settings - Fork 27
msan: update motd message for developer use + clang 21/22 + curl instrumentation #823
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0e3fabe
msan: update motd message for developer use
grooverdan ee09212
msan image: clang-21/22 compat
grooverdan 9f21433
msan images: build clang 21 and development 22 version
grooverdan ba45fbc
msan: motd - disable liburing
grooverdan 1ead32c
motd update
grooverdan 24321b1
msan: build on ubuntu-24.04
grooverdan 133e08b
msan motd: no compressions -dev lib packages + uring fixed
grooverdan 65a608e
msan motd: no columnstore on ASAN/UBSAN either
grooverdan 68901fe
MDBF-1125: MSAN instrument curl libraries
grooverdan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| This is a container for ASAN, UBSAN and MSAN building. | ||
|
|
||
| It can also be used as a basic build/test that contains rr. | ||
|
|
||
| rr is available if the container is started with --privileged. | ||
|
|
||
| The following assumed that /source is a mounted volume of the | ||
| MariaDB source code. | ||
|
|
||
| A basic MSAN build can be configured with: | ||
|
|
||
| cmake \ | ||
| -DWITH_MSAN=ON \ | ||
| -DCMAKE_{EXE,MODULE}_LINKER_FLAGS="-L${MSAN_LIBDIR} -Wl,-rpath=${MSAN_LIBDIR}" \ | ||
| -DUPDATE_SUBMODULES=OFF \ | ||
| -DPLUGIN_COLUMNSTORE=NO \ | ||
| -DWITH_UNIT_TESTS=OFF \ | ||
| -DWITH_ZLIB=bundled \ | ||
| -DWITH_SYSTEMD=no \ | ||
| -DWITH_DBUG_TRACE=OFF \ | ||
| /source | ||
|
|
||
| A basic combined UBSAN/ASAN build can be configured with: | ||
|
|
||
| cmake -DWITH_ASAN=ON -DWITH_ASAN_SCOPED=ON -DWITH_UBSAN=ON \ | ||
| -DUPDATE_SUBMODULES=OFF \ | ||
| -DPLUGIN_COLUMNSTORE=NO \ | ||
| -DWITH_UNIT_TESTS=OFF \ | ||
| /source | ||
|
|
||
| Build with: | ||
|
|
||
| cmake --build . | ||
|
|
||
| Test with: | ||
|
|
||
| mysql-test/mtr --parallel=auto | ||
|
|
||
| Add --rr to record a specific MTR test. To replay: | ||
|
|
||
| rr replay mysql-test/var/log/mysqld.1.rr/mariadb-0 | ||
|
|
||
| There are UBSAN filters covering currently unfixed bugs within | ||
| the server that can be used to direct your development, or validate | ||
| if a observed failure is known. | ||
|
|
||
| Perform the following to download/inspect them: | ||
|
|
||
| curl https://raw.githubusercontent.com/mariadb-corporation/mariadb-qa/refs/heads/master/UBSAN.filter -o /build/UBSAN.filter | ||
|
|
||
| After this, add suppressions to UBSAN_OPTIONS with | ||
|
|
||
| export UBSAN_OPTIONS=$UBSAN_OPTIONS:suppressions=/build/UBSAN.filter | ||
|
|
||
| To mark a function as unoptimized use the attribute: | ||
|
|
||
| __attribute__((optnone)) | ||
|
|
||
| ref sanitizer flags documents: | ||
| * https://github.com/google/sanitizers/wiki/AddressSanitizerFlags | ||
| * https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html | ||
| * https://mariadb.com/docs/server/server-management/install-and-upgrade-mariadb/installing-mariadb/compiling-mariadb-from-source/compile-and-using-mariadb-with-sanitizers-asan-ubsan-tsan-msan#buildbots-msan-container |
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.
Uh oh!
There was an error while loading. Please reload this page.