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

MDBF-793 replace msan-15 builder with deb12-clang-19 builder #482

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

grooverdan
Copy link
Member

Add New Build template

Checklist

  • [ NA] Make changes os_info.yaml
  • Schedule the builder for the appropriate branch in constants.py
  • Add builder configuration

Server work preparing for this change occured in MDEV-33478.

The msan-clang-16 is currently as stable as the clang-15 builder so it can be updated as the protected brach builder in the meantime.

Server work preparing for this change occured in MDEV-33478.

The msan-clang-16 is currently as stable as the clang-15 builder
so it can be updated as the protected brach builder in the meantime.
@grooverdan
Copy link
Member Author

$ podman run --rm -v ../mariadb-server-rebase/:/source:z --mount=type=tmpfs,tmpfs-size=5G,dst=/build  -ti msan 
root@e12412ab39f4:/tmp/msan# cd /build
root@e12412ab39f4:/build# cmake -DWITH_MSAN=ON  ../source/
root@e12412ab39f4:/build# cmake --build . --parallel=12
root@e12412ab39f4:/build# export LD_LIBRARY_PATH=/msan-libs
root@e12412ab39f4:/build# export MSAN_OPTIONS=abort_on_error=1:poison_in_dtor=1
root@e12412ab39f4:/build# mysql-test/mtr  --big-test --force --retry=0 --max-test-fail=100 --parallel=10
Logging: /source/mysql-test/mysql-test-run.pl  --big-test --force --retry=0 --max-test-fail=100 --parallel=10
VS config: 
vardir: /build/mysql-test/var
Removing old var directory...
Creating var directory '/build/mysql-test/var'...
Checking supported features...
==35388==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x5583cd5a02e6 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::_M_create(unsigned long&, unsigned long) /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/basic_string.tcc:145:39
    #1 0x5583cd5a02e6 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::_M_mutate(unsigned long, unsigned long, char const*, unsigned long) /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/basic_string.tcc:328:21
    #2 0x7f330569565f in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::_M_append(char const*, unsigned long) (/lib/x86_64-linux-gnu/libstdc++.so.6+0x14165f) (BuildId: 0c47cec75226c7736517d5acb61e373d541a5023)
    #3 0x5583cb08af82 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::append(char const*) /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/basic_string.h:1437:9
    #4 0x5583cb08af82 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> std::operator+<char, std::char_traits<char>, std::allocator<char>>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&, char const*) /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/basic_string.h:3555:30
    #5 0x5583cb08af82 in __cxx_global_var_init.28 /source/sql/wsrep_schema.cc:46:52
    #6 0x5583cb08af82 in _GLOBAL__sub_I_wsrep_schema.cc /source/sql/wsrep_schema.cc
    #7 0x7f3305288375 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27375) (BuildId: 58254ca972028402bc40624f81388d85ec95f70d)
    #8 0x5583cb0b8b40 in _start (/build/sql/mariadbd+0x74ab40) (BuildId: f0fdb91e770f736b124840cb47029b6f22f79a94)

  Uninitialized value was created by an allocation of 'ref.tmp2.i' in the stack frame
    #0 0x5583cb08af06 in __cxx_global_var_init.28 /source/sql/wsrep_schema.cc:46:3
    #1 0x5583cb08af06 in _GLOBAL__sub_I_wsrep_schema.cc /source/sql/wsrep_schema.cc

SUMMARY: MemorySanitizer: use-of-uninitialized-value (/lib/x86_64-linux-gnu/libstdc++.so.6+0x14165f) (BuildId: 0c47cec75226c7736517d5acb61e373d541a5023) in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::_M_append(char const*, unsigned long)
Exiting
mysql-test-run: *** ERROR: Could not find version of MariaDB

Not there yet.

@grooverdan grooverdan marked this pull request as draft July 4, 2024 23:08
@grooverdan grooverdan changed the title replace msan-15 builder with deb12-clang-18 builder MDBF-793 replace msan-15 builder with deb12-clang-19 builder Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant