[MDEV-20377] Make WITH_MSAN more usable Created: 2019-08-19 Updated: 2023-09-22 Resolved: 2020-07-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Affects Version/s: | 5.5, 10.1, 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.2.33, 10.3.24, 10.4.14, 10.5.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | Sanity_Checking, valgrind | ||
| Environment: |
Debian GNU/Linux unstable, clang 8.0.1 |
||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
MemorySanitizer is a compile-time instrumentation layer in clang and GCC. Together with AddressSanitizer mostly makes the run-time instrumentation of Valgrind redundant. It is a little more tricky to set up, because running with uninstrumented libraries will lead into false positives. No patches are necessary since 10.5 94d0bb4dbeb28a94d1f87fdd55f4297ff3df0157 (see the commit message for instructions); cmake -DWITH_MSAN=ON is supposed to work ‘out of the box’. This task will be kept open until all tests pass and MemorySanitizer can be enabled on CI systems. How to instrumented librariesThese instructions are for clang-10. The script build-msan2.sh
Note: to use different clang (tested with clang-8, clang-9, clang-11, clang-13), just replace 10 with the major version of the compiler above. For clang-15, the procedure is a little different:
How to build MariaDB Server 10.5 or later with the instrumented libraries
Note: -march=native -mtune=native is optional since the second fix of How to run tests
Note: It may be wise to omit MSAN_OPTIONS=abort_on_error=1 except when running code in a debugger. On some occasions, it may cause truncation of the diagnostic messages. Note: The llvm-symbolizer in clang 14 or later will refuse to load if LD_LIBRARY_PATH includes an MSAN-instrumented libgmp.so. To get nice resolved stack traces, you must point the environment variable MSAN_SYMBOLIZER_PATH to a script like the following:
The poison_in_dtor=1 ( |
| Comments |
| Comment by Marko Mäkelä [ 2019-08-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I have now pushed WITH_MSAN to 10.2. At least the following issues will have to be resolved for this to be useful for mysql-test-run:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2019-08-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
On my system, the C library function getservbyname() invokes the implementation _nss_files_getservbyname_r() in libnss_files.so.2. I tried to compile an instrumented GNU libc, but it appears to depend on the GNU C Compiler, and GCC 9.2.1 is missing support for -fsanitize=memory (MemorySanitizer). After I bypassed the "compiler is too old" check (clang-8 identifies it as some old _GNUC_), the build would fail due to missing support for __attribute__((constructor)). It looks like we will need some hack to work around the getservbyname() problem. I used the following:
The change for libmysql.c is needed for --suite=mariabackup. -DWITH_PCRE=bundled appears to introduce a problem:
I retried -DWITH_PCRE=system, and no further work-arounds are necessary for ./mtr main.1st to pass (only the getservbyname() workaround). The system-installed library is libpcre3, version 2:8.39-12+b1. The following workarounds are needed for (among others) --suite=binlog_encryption to pass:
For Galera tests to work, we would need an instrumented libgalera_smm.so. Due to the lack of instrumentation, the test wsrep_info.plugin would fail inside verify() called by wsrep_load(). The tests main.func_regexp main.func_regexp_pcre main.ctype_utf8 and many others will fail because of uninstrumented libpcre3. Also many tests that add suppressions will fail:
Due to the largish amount of noise caused by uninstrumented libpcre and libgnutls, it is challenging to find genuine errors. Here could be one:
Apparently the in_val inside the function is initialized (it had successfully been subjected to comparison), but something along the call stack could be lacking instrumentation. Here is another, related-looking failure:
And another, which might be related:
The following InnoDB tests fail due to lack of instrumentated libraries. I think that it is probably simplest to just skip or ignore these during MSAN runs, or to build without these libraries being present:
Here is the complete list of failed tests, after applying the workarounds mentioned in this comment:
The test main.sum_distinct-big is very close to the 900-second timeout limit, so we should probably use a larger limit in order to avoid bogus timeout failures. It passed on single-threaded rerun:
Summary:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Eugene Kosov (Inactive) [ 2019-08-28 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
getservbyname() will get an interceptor someday https://github.com/google/sanitizers/issues/1138 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2019-09-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
In include/my_valgrind.h, we should tie MEM_UNDEFINED() and MEM_CHECK_DEFINED() to MemorySanitizer, so that even more bugs can be caught. (For example, InnoDB would be able to inform MemorySanitizer that the unused part of a VARCHAR buffer will be uninitialized.) kevg, maybe you can submit a patch for that? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2019-12-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Now that
The following patches are still necessary to work around trouble:
To get better diagnostics, we should also try to do something like the following (and map UNIV_MEM_VALID() to __msan_unpoison() and UNIV_MEM_ASSERT_RW_LOW() to MEM_CHECK_ADDRESSABLE()):
Various InnoDB tests are now failing mostly due to dict_acquire_mdl_shared<false>() ( | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2020-01-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
10.5-msan.patch | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2020-01-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tests affected by
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2020-01-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Any tests that use encryption (WolfSSL) seem to fail. The work-around to do_crypt() that I mentioned in | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2020-01-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
In ASAN buildbot builder we use lsan supressions for some failures we can't do much about. I see here that MSAN doesn't support suppressions, but it mentions a blacklist which is applied at compile time. I don't understand from that text whether it's about compilation of the tool/library itself or the code which is tested. In the latter case, maybe it can be used? They claim the lack of suppression support is a design choice, but we know well how such "design choices" happen. One thing that can be concluded from this claim is that it's not going to change any time soon. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2020-01-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
As far as I understand, there exist 2 kinds of compile-time suppressions for -fsanitize=memory, with appropriate decoration to hide them when not building WITH_MSAN:
I think that we should primarily try to fix the code instead of adding such suppressions:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2020-03-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Build an instrumented C++ runtime library with clang-10
Build 10.5 with the instrumented libraries, and run it
No patches are necessary since 10.5 94d0bb4dbeb28a94d1f87fdd55f4297ff3df0157 (see the commit message for instructions). Tests failing due to uninstrumented GNUTLS (
|
main.flush_ssl
|
main.mysql_client_test
|
main.mysql_client_test_comp
|
main.mysql_client_test_nonblock
|
main.mysql_upgrade_ssl
|
main.openssl_1
|
main.ssl
|
main.ssl-big
|
main.ssl_7937
|
main.ssl_8k_key
|
main.ssl_ca
|
main.ssl_cipher
|
main.ssl_compress
|
main.ssl_connect
|
main.ssl_timeout
|
main.ssl_timeout-9836
|
main.tls_version
|
main.tls_version1
|
main.userstat
|
perfschema.connection_type_notwin
|
perfschema.hostcache_ipv4_ssl
|
perfschema.hostcache_ipv6_ssl
|
plugins.auth_ed25519
|
plugins.multiauth
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
CURRENT_TEST: perfschema.transaction_nested_events
|
mysqltest: At line 50: query 'SET @con1_thread_id= $con1_thread_id' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
CURRENT_TEST: gcol.gcol_ins_upd_myisam
|
mysqltest: In included file "./suite/gcol/inc/gcol_ins_upd.inc":
|
included from /mariadb/10.5m/mysql-test/suite/gcol/t/gcol_ins_upd_myisam.test at line 40:
|
At line 491: query 'CREATE TABLE t (
|
a BLOB GENERATED ALWAYS AS ('') VIRTUAL,
|
b TIMESTAMP(4) GENERATED ALWAYS AS ('') VIRTUAL,
|
KEY (a(183),b)
|
)' failed with wrong errno 2013: 'Lost connection to MySQL server during query', instead of 1901...
|
…
|
==2534796==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0x55bba587f452 in Binary_string::c_ptr() /mariadb/10.5m/sql/sql_string.h:606:9
|
#1 0x55bba587f452 in Field::error_generated_column_function_is_not_allowed(THD*, bool) const /mariadb/10.5m/sql/field.cc:1458:16
|
#2 0x55bba587fa20 in Field::check_vcol_sql_mode_dependency(THD*, vcol_init_mode) const /mariadb/10.5m/sql/field.cc:1481:7
|
#3 0x55bba5209635 in parse_vcol_defs(THD*, st_mem_root*, TABLE*, bool*, vcol_init_mode) /mariadb/10.5m/sql/table.cc:1203:33
|
#4 0x55bba521908c in open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List<String>*) /mariadb/10.5m/sql/table.cc:3975:9
|
#5 0x55bba5a01f89 in ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*) /mariadb/10.5m/sql/handler.cc:5358:7
|
#6 0x55bba50f09ec in create_table_impl(THD*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, char const*, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /mariadb/10.5m/sql/sql_table.cc:5139:11
|
#7 0x55bba50edc0a in mysql_create_table_no_lock(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /mariadb/10.5m/sql/sql_table.cc:5223:8
|
#8 0x55bba50f2ab8 in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /mariadb/10.5m/sql/sql_table.cc:5315:7
|
#9 0x55bba51469de in Sql_cmd_create_table_like::execute(THD*) /mariadb/10.5m/sql/sql_table.cc:11763:12
|
#10 0x55bba4d6a039 in mysql_execute_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:5908:26
|
#11 0x55bba4d574c0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:7953:18
|
#12 0x55bba4d4b8b1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:1839:7
|
#13 0x55bba4d5928c in do_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:1358:17
|
#14 0x55bba535bf0b in do_handle_one_connection(CONNECT*, bool) /mariadb/10.5m/sql/sql_connect.cc:1422:11
|
#15 0x55bba535b4e6 in handle_one_connection /mariadb/10.5m/sql/sql_connect.cc:1319:5
|
#16 0x55bba67cc1e7 in pfs_spawn_thread /mariadb/10.5m/storage/perfschema/pfs.cc:2201:3
|
#17 0x7f91ac7daf26 in start_thread /build/glibc-WZtAaN/glibc-2.30/nptl/pthread_create.c:479:8
|
#18 0x7f91ac2b42ee in clone /build/glibc-WZtAaN/glibc-2.30/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
|
Uninitialized value was created by an allocation of 'tmp' in the stack frame of function '_ZNK5Field46error_generated_column_function_is_not_allowedEP3THDb'
|
#0 0x55bba587eaf0 in Field::error_generated_column_function_is_not_allowed(THD*, bool) const /mariadb/10.5m/sql/field.cc:1450
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
CURRENT_TEST: vcol.vcol_sql_mode
|
mysqltest: At line 148: query 'CREATE TABLE t1 (a CHAR(5), v VARCHAR(5) AS (RPAD(a,4,' ')) VIRTUAL, KEY(v))' failed with wrong errno 2013: 'Lost connection to MySQL server during query', instead of 1901...
|
…
|
==2534810==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0x562d223d8452 in Binary_string::c_ptr() /mariadb/10.5m/sql/sql_string.h:606:9
|
#1 0x562d223d8452 in Field::error_generated_column_function_is_not_allowed(THD*, bool) const /mariadb/10.5m/sql/field.cc:1458:16
|
#2 0x562d223d8a20 in Field::check_vcol_sql_mode_dependency(THD*, vcol_init_mode) const /mariadb/10.5m/sql/field.cc:1481:7
|
#3 0x562d21d62635 in parse_vcol_defs(THD*, st_mem_root*, TABLE*, bool*, vcol_init_mode) /mariadb/10.5m/sql/table.cc:1203:33
|
#4 0x562d21d7208c in open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List<String>*) /mariadb/10.5m/sql/table.cc:3975:9
|
#5 0x562d2255af89 in ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*) /mariadb/10.5m/sql/handler.cc:5358:7
|
#6 0x562d21c499ec in create_table_impl(THD*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, char const*, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /mariadb/10.5m/sql/sql_table.cc:5139:11
|
#7 0x562d21c46c0a in mysql_create_table_no_lock(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /mariadb/10.5m/sql/sql_table.cc:5223:8
|
#8 0x562d21c4bab8 in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /mariadb/10.5m/sql/sql_table.cc:5315:7
|
#9 0x562d21c9f9de in Sql_cmd_create_table_like::execute(THD*) /mariadb/10.5m/sql/sql_table.cc:11763:12
|
#10 0x562d218c3039 in mysql_execute_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:5908:26
|
#11 0x562d218b04c0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:7953:18
|
#12 0x562d218a48b1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:1839:7
|
#13 0x562d218b228c in do_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:1358:17
|
#14 0x562d21eb4f0b in do_handle_one_connection(CONNECT*, bool) /mariadb/10.5m/sql/sql_connect.cc:1422:11
|
#15 0x562d21eb44e6 in handle_one_connection /mariadb/10.5m/sql/sql_connect.cc:1319:5
|
#16 0x562d233251e7 in pfs_spawn_thread /mariadb/10.5m/storage/perfschema/pfs.cc:2201:3
|
#17 0x7f1af3f0df26 in start_thread /build/glibc-WZtAaN/glibc-2.30/nptl/pthread_create.c:479:8
|
#18 0x7f1af39e72ee in clone /build/glibc-WZtAaN/glibc-2.30/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
|
Uninitialized value was created by an allocation of 'tmp' in the stack frame of function '_ZNK5Field46error_generated_column_function_is_not_allowedEP3THDb'
|
#0 0x562d223d7af0 in Field::error_generated_column_function_is_not_allowed(THD*, bool) const /mariadb/10.5m/sql/field.cc:1450
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
CURRENT_TEST: vcol.vcol_sql_mode_datetime
|
mysqltest: At line 67: query 'CREATE TABLE t1 (
|
t DATETIME(4),
|
d DATETIME,
|
v DATETIME(3) AS ('2001-01-01 10:20:30.1234') VIRTUAL,
|
KEY(v,d)
|
)' failed with wrong errno 2013: 'Lost connection to MySQL server during query', instead of 1901...
|
==2534813==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0x557714701452 in Binary_string::c_ptr() /mariadb/10.5m/sql/sql_string.h:606:9
|
#1 0x557714701452 in Field::error_generated_column_function_is_not_allowed(THD*, bool) const /mariadb/10.5m/sql/field.cc:1458:16
|
#2 0x557714701a20 in Field::check_vcol_sql_mode_dependency(THD*, vcol_init_mode) const /mariadb/10.5m/sql/field.cc:1481:7
|
#3 0x55771408b635 in parse_vcol_defs(THD*, st_mem_root*, TABLE*, bool*, vcol_init_mode) /mariadb/10.5m/sql/table.cc:1203:33
|
#4 0x55771409b08c in open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List<String>*) /mariadb/10.5m/sql/table.cc:3975:9
|
#5 0x557714883f89 in ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*) /mariadb/10.5m/sql/handler.cc:5358:7
|
#6 0x557713f729ec in create_table_impl(THD*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, char const*, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /mariadb/10.5m/sql/sql_table.cc:5139:11
|
#7 0x557713f6fc0a in mysql_create_table_no_lock(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /mariadb/10.5m/sql/sql_table.cc:5223:8
|
#8 0x557713f74ab8 in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /mariadb/10.5m/sql/sql_table.cc:5315:7
|
#9 0x557713fc89de in Sql_cmd_create_table_like::execute(THD*) /mariadb/10.5m/sql/sql_table.cc:11763:12
|
#10 0x557713bec039 in mysql_execute_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:5908:26
|
#11 0x557713bd94c0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:7953:18
|
#12 0x557713bcd8b1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:1839:7
|
#13 0x557713bdb28c in do_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:1358:17
|
#14 0x5577141ddf0b in do_handle_one_connection(CONNECT*, bool) /mariadb/10.5m/sql/sql_connect.cc:1422:11
|
#15 0x5577141dd4e6 in handle_one_connection /mariadb/10.5m/sql/sql_connect.cc:1319:5
|
#16 0x55771564e1e7 in pfs_spawn_thread /mariadb/10.5m/storage/perfschema/pfs.cc:2201:3
|
#17 0x7feb3233ef26 in start_thread /build/glibc-WZtAaN/glibc-2.30/nptl/pthread_create.c:479:8
|
#18 0x7feb31e182ee in clone /build/glibc-WZtAaN/glibc-2.30/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
|
Uninitialized value was created by an allocation of 'tmp' in the stack frame of function '_ZNK5Field46error_generated_column_function_is_not_allowedEP3THDb'
|
#0 0x557714700af0 in Field::error_generated_column_function_is_not_allowed(THD*, bool) const /mariadb/10.5m/sql/field.cc:1450
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
CURRENT_TEST: vcol.vcol_sql_mode_time
|
mysqltest: At line 67: query 'CREATE TABLE t1 (
|
t TIME(4),
|
d TIME,
|
v TIME(3) AS ('2001-01-01 10:20:30.1234') VIRTUAL,
|
KEY(v,d)
|
)' failed with wrong errno 2013: 'Lost connection to MySQL server during query', instead of 1901...
|
…
|
==2534817==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0x564a3b8e0452 in Binary_string::c_ptr() /mariadb/10.5m/sql/sql_string.h:606:9
|
#1 0x564a3b8e0452 in Field::error_generated_column_function_is_not_allowed(THD*, bool) const /mariadb/10.5m/sql/field.cc:1458:16
|
#2 0x564a3b8e0a20 in Field::check_vcol_sql_mode_dependency(THD*, vcol_init_mode) const /mariadb/10.5m/sql/field.cc:1481:7
|
#3 0x564a3b26a635 in parse_vcol_defs(THD*, st_mem_root*, TABLE*, bool*, vcol_init_mode) /mariadb/10.5m/sql/table.cc:1203:33
|
#4 0x564a3b27a08c in open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List<String>*) /mariadb/10.5m/sql/table.cc:3975:9
|
#5 0x564a3ba62f89 in ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*) /mariadb/10.5m/sql/handler.cc:5358:7
|
#6 0x564a3b1519ec in create_table_impl(THD*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, char const*, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /mariadb/10.5m/sql/sql_table.cc:5139:11
|
#7 0x564a3b14ec0a in mysql_create_table_no_lock(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /mariadb/10.5m/sql/sql_table.cc:5223:8
|
#8 0x564a3b153ab8 in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /mariadb/10.5m/sql/sql_table.cc:5315:7
|
#9 0x564a3b1a79de in Sql_cmd_create_table_like::execute(THD*) /mariadb/10.5m/sql/sql_table.cc:11763:12
|
#10 0x564a3adcb039 in mysql_execute_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:5908:26
|
#11 0x564a3adb84c0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:7953:18
|
#12 0x564a3adac8b1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:1839:7
|
#13 0x564a3adba28c in do_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:1358:17
|
#14 0x564a3b3bcf0b in do_handle_one_connection(CONNECT*, bool) /mariadb/10.5m/sql/sql_connect.cc:1422:11
|
#15 0x564a3b3bc4e6 in handle_one_connection /mariadb/10.5m/sql/sql_connect.cc:1319:5
|
#16 0x564a3c82d1e7 in pfs_spawn_thread /mariadb/10.5m/storage/perfschema/pfs.cc:2201:3
|
#17 0x7f8d50222f26 in start_thread /build/glibc-WZtAaN/glibc-2.30/nptl/pthread_create.c:479:8
|
#18 0x7f8d4fcfc2ee in clone /build/glibc-WZtAaN/glibc-2.30/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
|
Uninitialized value was created by an allocation of 'tmp' in the stack frame of function '_ZNK5Field46error_generated_column_function_is_not_allowedEP3THDb'
|
#0 0x564a3b8dfaf0 in Field::error_generated_column_function_is_not_allowed(THD*, bool) const /mariadb/10.5m/sql/field.cc:1450
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
CURRENT_TEST: vcol.vcol_sql_mode_timestamp
|
mysqltest: At line 67: query 'CREATE TABLE t1 (
|
t TIMESTAMP(4),
|
d DATETIME,
|
v TIMESTAMP(3) AS ('2001-01-01 10:20:30.1234') VIRTUAL,
|
KEY(v,d)
|
)' failed with wrong errno 2013: 'Lost connection to MySQL server during query', instead of 1901...
|
…
|
==2534819==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0x55f6cdc2d452 in Binary_string::c_ptr() /mariadb/10.5m/sql/sql_string.h:606:9
|
#1 0x55f6cdc2d452 in Field::error_generated_column_function_is_not_allowed(THD*, bool) const /mariadb/10.5m/sql/field.cc:1458:16
|
#2 0x55f6cdc2da20 in Field::check_vcol_sql_mode_dependency(THD*, vcol_init_mode) const /mariadb/10.5m/sql/field.cc:1481:7
|
#3 0x55f6cd5b7635 in parse_vcol_defs(THD*, st_mem_root*, TABLE*, bool*, vcol_init_mode) /mariadb/10.5m/sql/table.cc:1203:33
|
#4 0x55f6cd5c708c in open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List<String>*) /mariadb/10.5m/sql/table.cc:3975:9
|
#5 0x55f6cddaff89 in ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*) /mariadb/10.5m/sql/handler.cc:5358:7
|
#6 0x55f6cd49e9ec in create_table_impl(THD*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, char const*, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /mariadb/10.5m/sql/sql_table.cc:5139:11
|
#7 0x55f6cd49bc0a in mysql_create_table_no_lock(THD*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /mariadb/10.5m/sql/sql_table.cc:5223:8
|
#8 0x55f6cd4a0ab8 in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /mariadb/10.5m/sql/sql_table.cc:5315:7
|
#9 0x55f6cd4f49de in Sql_cmd_create_table_like::execute(THD*) /mariadb/10.5m/sql/sql_table.cc:11763:12
|
#10 0x55f6cd118039 in mysql_execute_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:5908:26
|
#11 0x55f6cd1054c0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:7953:18
|
#12 0x55f6cd0f98b1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:1839:7
|
#13 0x55f6cd10728c in do_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:1358:17
|
#14 0x55f6cd709f0b in do_handle_one_connection(CONNECT*, bool) /mariadb/10.5m/sql/sql_connect.cc:1422:11
|
#15 0x55f6cd7094e6 in handle_one_connection /mariadb/10.5m/sql/sql_connect.cc:1319:5
|
#16 0x55f6ceb7a1e7 in pfs_spawn_thread /mariadb/10.5m/storage/perfschema/pfs.cc:2201:3
|
#17 0x7f1c9332ff26 in start_thread /build/glibc-WZtAaN/glibc-2.30/nptl/pthread_create.c:479:8
|
#18 0x7f1c92e092ee in clone /build/glibc-WZtAaN/glibc-2.30/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
|
Uninitialized value was created by an allocation of 'tmp' in the stack frame of function '_ZNK5Field46error_generated_column_function_is_not_allowedEP3THDb'
|
#0 0x55f6cdc2caf0 in Field::error_generated_column_function_is_not_allowed(THD*, bool) const /mariadb/10.5m/sql/field.cc:1450
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
CURRENT_TEST: main.opt_trace_index_merge_innodb
|
mysqltest: At line 35: query 'explain select * from t1 where pk1 != 0 and key1 = 1' failed: 2013: Lost connection to MySQL server during query
|
…
|
==2534795==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0x561d8a810491 in my_gcvt /mariadb/10.5m/strings/dtoa.c:294:19
|
#1 0x561d8a8215f3 in process_dbl_arg /mariadb/10.5m/strings/my_vsnprintf.c:248:10
|
#2 0x561d8a8215f3 in my_vsnprintf_ex /mariadb/10.5m/strings/my_vsnprintf.c:638:11
|
#3 0x561d8a8275b3 in my_vsnprintf /mariadb/10.5m/strings/my_vsnprintf.c:704:10
|
#4 0x561d8a8275b3 in my_snprintf /mariadb/10.5m/strings/my_vsnprintf.c:713:11
|
#5 0x561d87de3209 in Json_writer::add_double(double) /mariadb/10.5m/sql/my_json_writer.cc:185:15
|
#6 0x561d889bd34a in Json_value_helper::add_double(double) /mariadb/10.5m/sql/my_json_writer.h:288:15
|
#7 0x561d889bd34a in Json_writer_object::add(char const*, double) /mariadb/10.5m/sql/my_json_writer.h:406:15
|
#8 0x561d889bd34a in ror_intersect_add(ROR_INTERSECT_INFO*, st_ror_scan_info*, Json_writer_object*, bool) /mariadb/10.5m/sql/opt_range.cc:6860:18
|
#9 0x561d8894d312 in get_best_ror_intersect(PARAM const*, SEL_TREE*, double, bool*) /mariadb/10.5m/sql/opt_range.cc:7056:10
|
#10 0x561d8892e0e0 in SQL_SELECT::test_quick_select(THD*, Bitmap<64u>, unsigned long long, unsigned long long, bool, bool, bool, bool) /mariadb/10.5m/sql/opt_range.cc:2918:24
|
#11 0x561d877963b3 in get_quick_record_count(THD*, SQL_SELECT*, TABLE*, Bitmap<64u> const*, unsigned long long) /mariadb/10.5m/sql/sql_select.cc:4708:9
|
#12 0x561d877963b3 in make_join_statistics(JOIN*, List<TABLE_LIST>&, st_dynamic_array*) /mariadb/10.5m/sql/sql_select.cc:5433:20
|
#13 0x561d877791ba in JOIN::optimize_inner() /mariadb/10.5m/sql/sql_select.cc:2260:7
|
#14 0x561d8775babc in JOIN::optimize() /mariadb/10.5m/sql/sql_select.cc:1606:10
|
#15 0x561d8773c875 in mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /mariadb/10.5m/sql/sql_select.cc:4650:19
|
#16 0x561d87888bfd in mysql_explain_union(THD*, st_select_lex_unit*, select_result*) /mariadb/10.5m/sql/sql_select.cc:27182:10
|
#17 0x561d87674272 in execute_sqlcom_select(THD*, TABLE_LIST*) /mariadb/10.5m/sql/sql_parse.cc:6107:12
|
#18 0x561d876532a4 in mysql_execute_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:3901:12
|
#19 0x561d876404c0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:7953:18
|
#20 0x561d876348b1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:1839:7
|
#21 0x561d8764228c in do_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:1358:17
|
#22 0x561d87c44f0b in do_handle_one_connection(CONNECT*, bool) /mariadb/10.5m/sql/sql_connect.cc:1422:11
|
#23 0x561d87c444e6 in handle_one_connection /mariadb/10.5m/sql/sql_connect.cc:1319:5
|
#24 0x561d890b51e7 in pfs_spawn_thread /mariadb/10.5m/storage/perfschema/pfs.cc:2201:3
|
#25 0x7eff33cfcf26 in start_thread /build/glibc-WZtAaN/glibc-2.30/nptl/pthread_create.c:479:8
|
#26 0x7eff337d62ee in clone /build/glibc-WZtAaN/glibc-2.30/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
|
Uninitialized value was created by an allocation of 'path2' in the stack frame of function '_ZL32btr_estimate_n_rows_in_range_lowP12dict_index_tP9btr_pos_tS2_j'
|
#0 0x561d89e147d0 in btr_estimate_n_rows_in_range_low(dict_index_t*, btr_pos_t*, btr_pos_t*, unsigned int) /mariadb/10.5m/storage/innobase/btr/btr0cur.cc:6155
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
main.query_cache_innodb 'innodb' w17 [ fail ]
|
Test ended at 2020-03-27 13:08:14
|
|
|
CURRENT_TEST: main.query_cache_innodb
|
mysqltest: At line 43: query 'select * from `t2$Ñ—`' failed: 2013: Lost connection to MySQL server during query
|
Uninitialized bytes in MemcmpInterceptorCommon at offset 16 inside [0x7fd86874df00, 20)
|
==2534781==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0x5643550aaa2c in bcmp (/dev/shm/10.5ms/sql/mariadbd+0x6dea2c)
|
#1 0x564357fe712b in dict_table_t* dict_acquire_mdl_shared<false>(dict_table_t*, THD*, MDL_ticket**, dict_table_op_t) /mariadb/10.5m/storage/innobase/dict/dict0dict.cc:892:10
|
#2 0x564357f93e40 in dict_table_open_on_id(unsigned long, bool, dict_table_op_t, THD*, MDL_ticket**) /mariadb/10.5m/storage/innobase/dict/dict0dict.cc:947:12
|
#3 0x5643579a120b in row_purge_parse_undo_rec(purge_node_t*, unsigned char*, que_thr_t*, bool*) /mariadb/10.5m/storage/innobase/row/row0purge.cc:933:16
|
#4 0x5643579a120b in row_purge(purge_node_t*, unsigned char*, que_thr_t*) /mariadb/10.5m/storage/innobase/row/row0purge.cc:1107:10
|
#5 0x5643579a120b in row_purge_step(que_thr_t*) /mariadb/10.5m/storage/innobase/row/row0purge.cc:1159:3
|
#6 0x564357771370 in que_thr_step(que_thr_t*) /mariadb/10.5m/storage/innobase/que/que0que.cc:1038:9
|
#7 0x564357771370 in que_run_threads_low(que_thr_t*) /mariadb/10.5m/storage/innobase/que/que0que.cc:1100:14
|
#8 0x564357771370 in que_run_threads(que_thr_t*) /mariadb/10.5m/storage/innobase/que/que0que.cc:1140:2
|
#9 0x564357ac4043 in srv_task_execute() /mariadb/10.5m/storage/innobase/srv/srv0srv.cc:2055:3
|
#10 0x564357ac4043 in purge_worker_callback(void*) /mariadb/10.5m/storage/innobase/srv/srv0srv.cc:2205:10
|
#11 0x564358355413 in tpool::task_group::execute(tpool::task*) /mariadb/10.5m/tpool/task_group.cc:55:9
|
#12 0x564358348d72 in tpool::thread_pool_generic::worker_main(tpool::worker_data*) /mariadb/10.5m/tpool/tpool_generic.cc:518:11
|
#13 0x5643583527bc in decltype(*(std::__1::forward<tpool::thread_pool_generic*>(fp0)).*fp(std::__1::forward<tpool::worker_data*>(fp1))) std::__1::__invoke<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*, void>(void (tpool::thread_pool_generic::*&&)(tpool::worker_data*), tpool::thread_pool_generic*&&, tpool::worker_data*&&) /usr/lib/llvm-10/bin/../include/c++/v1/type_traits:3480:1
|
#14 0x5643583527bc in void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*, 2ul, 3ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*>&, std::__1::__tuple_indices<2ul, 3ul>) /usr/lib/llvm-10/bin/../include/c++/v1/thread:273:5
|
#15 0x5643583527bc in void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> >(void*) /usr/lib/llvm-10/bin/../include/c++/v1/thread:284:5
|
#16 0x7fd88272bf26 in start_thread /build/glibc-WZtAaN/glibc-2.30/nptl/pthread_create.c:479:8
|
#17 0x7fd8822052ee in clone /build/glibc-WZtAaN/glibc-2.30/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
|
Uninitialized value was created by an allocation of 'db_buf' in the stack frame of function '_Z23dict_acquire_mdl_sharedILb0EEP12dict_table_tS1_P3THDPP10MDL_ticket15dict_table_op_t'
|
#0 0x564357fe6200 in dict_table_t* dict_acquire_mdl_shared<false>(dict_table_t*, THD*, MDL_ticket**, dict_table_op_t) /mariadb/10.5m/storage/innobase/dict/dict0dict.cc:790
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
CURRENT_TEST: maria.maria-recovery2
|
mysqltest: At line 70: query 'delete from t1 where b="b"' failed: 2013: Lost connection to MySQL server during query
|
…
|
SQL_SELECT::test_quick_select: enter: keys_to_use: 18446744073709551615 prev_tables: 0 const_tables: 0
|
SQL_SELECT::test_quick_select: info: records: 3
|
SQL_SELECT::test_quick_select: info: ==2536175==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0x555eb4ba0491 in my_gcvt /mariadb/10.5m/strings/dtoa.c:294:19
|
#1 0x555eb4bb15f3 in process_dbl_arg /mariadb/10.5m/strings/my_vsnprintf.c:248:10
|
#2 0x555eb4bb15f3 in my_vsnprintf_ex /mariadb/10.5m/strings/my_vsnprintf.c:638:11
|
#3 0x555eb4a8bf67 in DbugVfprintf /mariadb/10.5m/dbug/dbug.c:1332:10
|
#4 0x555eb4a8bf67 in _db_doprnt_ /mariadb/10.5m/dbug/dbug.c:1316:3
|
#5 0x555eb2cb8cfe in SQL_SELECT::test_quick_select(THD*, Bitmap<64u>, unsigned long long, unsigned long long, bool, bool, bool, bool) /mariadb/10.5m/sql/opt_range.cc:2691:3
|
#6 0x555eb2e000a3 in SQL_SELECT::check_quick(THD*, bool, unsigned long long) /mariadb/10.5m/sql/opt_range.h:1654:12
|
#7 0x555eb2e000a3 in mysql_delete(THD*, TABLE_LIST*, Item*, SQL_I_List<st_order>*, unsigned long long, unsigned long long, select_result*) /mariadb/10.5m/sql/sql_delete.cc:500:26
|
#8 0x555eb19f6bc6 in mysql_execute_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:4749:11
|
#9 0x555eb19d04c0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:7953:18
|
#10 0x555eb19c48b1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:1839:7
|
#11 0x555eb19d228c in do_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:1358:17
|
#12 0x555eb1fd4f0b in do_handle_one_connection(CONNECT*, bool) /mariadb/10.5m/sql/sql_connect.cc:1422:11
|
#13 0x555eb1fd44e6 in handle_one_connection /mariadb/10.5m/sql/sql_connect.cc:1319:5
|
#14 0x555eb34451e7 in pfs_spawn_thread /mariadb/10.5m/storage/perfschema/pfs.cc:2201:3
|
#15 0x7f2ef5861f26 in start_thread /build/glibc-WZtAaN/glibc-2.30/nptl/pthread_create.c:479:8
|
#16 0x7f2ef533b2ee in clone /build/glibc-WZtAaN/glibc-2.30/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
|
Uninitialized value was created by an allocation of 'buf' in the stack frame of function 'my_fcvt'
|
#0 0x555eb4b9c320 in my_fcvt /mariadb/10.5m/strings/dtoa.c:90
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
CURRENT_TEST: sys_vars.replicate_ignore_table_grant
|
mysqltest: In included file "./suite/sys_vars/inc/sysvar_global_grant.inc":
|
included from /mariadb/10.5m/mysql-test/suite/sys_vars/t/replicate_ignore_table_grant.test at line 10:
|
At line 29: query 'SET GLOBAL $var=$value' failed: 2013: Lost connection to MySQL server during query
|
…
|
==2534804==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0x555a8deddec2 in Rpl_filter::set_ignore_table(char const*) /mariadb/10.5m/sql/rpl_filter.cc:377:7
|
#1 0x555a8e9a2b82 in Sys_var_rpl_filter::set_filter_value(char const*, Master_info*) /mariadb/10.5m/sql/sys_vars.cc:5245:25
|
#2 0x555a8e9a25e5 in Sys_var_rpl_filter::global_update(THD*, set_var*) /mariadb/10.5m/sql/sys_vars.cc:5218:15
|
#3 0x555a8def1f9b in sys_var::update(THD*, set_var*) /mariadb/10.5m/sql/set_var.cc:207:12
|
#4 0x555a8defa003 in set_var::update(THD*) /mariadb/10.5m/sql/set_var.cc:859:23
|
#5 0x555a8def8993 in sql_set_variables(THD*, List<set_var_base>*, bool) /mariadb/10.5m/sql/set_var.cc:746:20
|
#6 0x555a8e3438f0 in mysql_execute_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:4976:9
|
#7 0x555a8e32b4c0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:7953:18
|
#8 0x555a8e31f8b1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:1839:7
|
#9 0x555a8e32d28c in do_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:1358:17
|
#10 0x555a8e92ff0b in do_handle_one_connection(CONNECT*, bool) /mariadb/10.5m/sql/sql_connect.cc:1422:11
|
#11 0x555a8e92f4e6 in handle_one_connection /mariadb/10.5m/sql/sql_connect.cc:1319:5
|
#12 0x555a8fda01e7 in pfs_spawn_thread /mariadb/10.5m/storage/perfschema/pfs.cc:2201:3
|
#13 0x7f6e8e862f26 in start_thread /build/glibc-WZtAaN/glibc-2.30/nptl/pthread_create.c:479:8
|
#14 0x7f6e8e33c2ee in clone /build/glibc-WZtAaN/glibc-2.30/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
|
Uninitialized value was created by a heap allocation
|
#0 0x555a8de5e759 in operator new(unsigned long) (/dev/shm/10.5ms/sql/mariadbd+0x747759)
|
#1 0x555a8dea2f95 in create_rpl_filter(char const*, unsigned long) /mariadb/10.5m/sql/keycaches.cc:203:11
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
CURRENT_TEST: main.opt_trace
|
mysqltest: At line 23: query 'select * from v1' failed: 2013: Lost connection to MySQL server during query
|
…
|
==2534807==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0x55e75ddbf491 in my_gcvt /mariadb/10.5m/strings/dtoa.c:294:19
|
#1 0x55e75ddd05f3 in process_dbl_arg /mariadb/10.5m/strings/my_vsnprintf.c:248:10
|
#2 0x55e75ddd05f3 in my_vsnprintf_ex /mariadb/10.5m/strings/my_vsnprintf.c:638:11
|
#3 0x55e75ddd65b3 in my_vsnprintf /mariadb/10.5m/strings/my_vsnprintf.c:704:10
|
#4 0x55e75ddd65b3 in my_snprintf /mariadb/10.5m/strings/my_vsnprintf.c:713:11
|
#5 0x55e75b392209 in Json_writer::add_double(double) /mariadb/10.5m/sql/my_json_writer.cc:185:15
|
#6 0x55e75adafb01 in Json_value_helper::add_double(double) /mariadb/10.5m/sql/my_json_writer.h:288:15
|
#7 0x55e75adafb01 in Json_writer_object::add(char const*, double) /mariadb/10.5m/sql/my_json_writer.h:406:15
|
#8 0x55e75adafb01 in best_access_path(JOIN*, st_join_table*, unsigned long long, st_position const*, unsigned int, bool, double, st_position*, st_position*) /mariadb/10.5m/sql/sql_select.cc:8044:23
|
#9 0x55e75ae589fb in best_extension_by_limited_search(JOIN*, unsigned long long, unsigned int, double, double, unsigned int, unsigned int, unsigned int) /mariadb/10.5m/sql/sql_select.cc:9533:7
|
#10 0x55e75adb72cc in greedy_search(JOIN*, unsigned long long, unsigned int, unsigned int, unsigned int) /mariadb/10.5m/sql/sql_select.cc:8738:9
|
#11 0x55e75adb72cc in choose_plan(JOIN*, unsigned long long) /mariadb/10.5m/sql/sql_select.cc:8303:9
|
#12 0x55e75ad471be in make_join_statistics(JOIN*, List<TABLE_LIST>&, st_dynamic_array*) /mariadb/10.5m/sql/sql_select.cc:5550:11
|
#13 0x55e75ad281ba in JOIN::optimize_inner() /mariadb/10.5m/sql/sql_select.cc:2260:7
|
#14 0x55e75ad0aabc in JOIN::optimize() /mariadb/10.5m/sql/sql_select.cc:1606:10
|
#15 0x55e75aceb875 in mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /mariadb/10.5m/sql/sql_select.cc:4650:19
|
#16 0x55e75aceaf48 in handle_select(THD*, LEX*, select_result*, unsigned long) /mariadb/10.5m/sql/sql_select.cc:417:10
|
#17 0x55e75ac23dd2 in execute_sqlcom_select(THD*, TABLE_LIST*) /mariadb/10.5m/sql/sql_parse.cc:6168:12
|
#18 0x55e75ac022a4 in mysql_execute_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:3901:12
|
#19 0x55e75abef4c0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:7953:18
|
#20 0x55e75abe38b1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:1839:7
|
#21 0x55e75abf128c in do_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:1358:17
|
#22 0x55e75b1f3f0b in do_handle_one_connection(CONNECT*, bool) /mariadb/10.5m/sql/sql_connect.cc:1422:11
|
#23 0x55e75b1f34e6 in handle_one_connection /mariadb/10.5m/sql/sql_connect.cc:1319:5
|
#24 0x55e75c6641e7 in pfs_spawn_thread /mariadb/10.5m/storage/perfschema/pfs.cc:2201:3
|
#25 0x7fde0e7f7f26 in start_thread /build/glibc-WZtAaN/glibc-2.30/nptl/pthread_create.c:479:8
|
#26 0x7fde0e2d12ee in clone /build/glibc-WZtAaN/glibc-2.30/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
|
Uninitialized value was created by an allocation of 'stack' in the stack frame of function 'my_qsort2'
|
#0 0x55e75db96be0 in my_qsort2 /mariadb/10.5m/mysys/mf_qsort.c:100
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
CURRENT_TEST: main.opt_trace_index_merge
|
mysqltest: At line 17: query 'explain select * from t1 where a=1 or b=1' failed: 2013: Lost connection to MySQL server during query
|
…
|
==2534800==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0x5576d953f576 in my_gcvt /mariadb/10.5m/strings/dtoa.c:267:31
|
#1 0x5576d95505f3 in process_dbl_arg /mariadb/10.5m/strings/my_vsnprintf.c:248:10
|
#2 0x5576d95505f3 in my_vsnprintf_ex /mariadb/10.5m/strings/my_vsnprintf.c:638:11
|
#3 0x5576d95565b3 in my_vsnprintf /mariadb/10.5m/strings/my_vsnprintf.c:704:10
|
#4 0x5576d95565b3 in my_snprintf /mariadb/10.5m/strings/my_vsnprintf.c:713:11
|
#5 0x5576d6b12209 in Json_writer::add_double(double) /mariadb/10.5m/sql/my_json_writer.cc:185:15
|
#6 0x5576d7681ad1 in Json_value_helper::add_double(double) /mariadb/10.5m/sql/my_json_writer.h:288:15
|
#7 0x5576d7681ad1 in Json_writer_object::add(char const*, double) /mariadb/10.5m/sql/my_json_writer.h:406:15
|
#8 0x5576d7681ad1 in get_best_disjunct_quick(PARAM*, SEL_IMERGE*, double) /mariadb/10.5m/sql/opt_range.cc:5123:15
|
#9 0x5576d765f373 in SQL_SELECT::test_quick_select(THD*, Bitmap<64u>, unsigned long long, unsigned long long, bool, bool, bool, bool) /mariadb/10.5m/sql/opt_range.cc:2966:25
|
#10 0x5576d64c53b3 in get_quick_record_count(THD*, SQL_SELECT*, TABLE*, Bitmap<64u> const*, unsigned long long) /mariadb/10.5m/sql/sql_select.cc:4708:9
|
#11 0x5576d64c53b3 in make_join_statistics(JOIN*, List<TABLE_LIST>&, st_dynamic_array*) /mariadb/10.5m/sql/sql_select.cc:5433:20
|
#12 0x5576d64a81ba in JOIN::optimize_inner() /mariadb/10.5m/sql/sql_select.cc:2260:7
|
#13 0x5576d648aabc in JOIN::optimize() /mariadb/10.5m/sql/sql_select.cc:1606:10
|
#14 0x5576d646b875 in mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /mariadb/10.5m/sql/sql_select.cc:4650:19
|
#15 0x5576d65b7bfd in mysql_explain_union(THD*, st_select_lex_unit*, select_result*) /mariadb/10.5m/sql/sql_select.cc:27182:10
|
#16 0x5576d63a3272 in execute_sqlcom_select(THD*, TABLE_LIST*) /mariadb/10.5m/sql/sql_parse.cc:6107:12
|
#17 0x5576d63822a4 in mysql_execute_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:3901:12
|
#18 0x5576d636f4c0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:7953:18
|
#19 0x5576d63638b1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:1839:7
|
#20 0x5576d637128c in do_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:1358:17
|
#21 0x5576d6973f0b in do_handle_one_connection(CONNECT*, bool) /mariadb/10.5m/sql/sql_connect.cc:1422:11
|
#22 0x5576d69734e6 in handle_one_connection /mariadb/10.5m/sql/sql_connect.cc:1319:5
|
#23 0x5576d7de41e7 in pfs_spawn_thread /mariadb/10.5m/storage/perfschema/pfs.cc:2201:3
|
#24 0x7f7de495cf26 in start_thread /build/glibc-WZtAaN/glibc-2.30/nptl/pthread_create.c:479:8
|
#25 0x7f7de44362ee in clone /build/glibc-WZtAaN/glibc-2.30/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
|
Uninitialized value was created by an allocation of 'seq.i' in the stack frame of function '_ZL20get_key_scans_paramsP5PARAMP8SEL_TREEbbd'
|
#0 0x5576d7674c40 in get_key_scans_params(PARAM*, SEL_TREE*, bool, bool, double) /mariadb/10.5m/sql/opt_range.cc:7350
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
CURRENT_TEST: main.opt_trace_security
|
mysqltest: At line 33: query 'select * from db1.t1' failed: 2013: Lost connection to MySQL server during query
|
…
|
==2534801==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0x562cf8099491 in my_gcvt /mariadb/10.5m/strings/dtoa.c:294:19
|
#1 0x562cf80aa5f3 in process_dbl_arg /mariadb/10.5m/strings/my_vsnprintf.c:248:10
|
#2 0x562cf80aa5f3 in my_vsnprintf_ex /mariadb/10.5m/strings/my_vsnprintf.c:638:11
|
#3 0x562cf80b05b3 in my_vsnprintf /mariadb/10.5m/strings/my_vsnprintf.c:704:10
|
#4 0x562cf80b05b3 in my_snprintf /mariadb/10.5m/strings/my_vsnprintf.c:713:11
|
#5 0x562cf566c209 in Json_writer::add_double(double) /mariadb/10.5m/sql/my_json_writer.cc:185:15
|
#6 0x562cf5089b01 in Json_value_helper::add_double(double) /mariadb/10.5m/sql/my_json_writer.h:288:15
|
#7 0x562cf5089b01 in Json_writer_object::add(char const*, double) /mariadb/10.5m/sql/my_json_writer.h:406:15
|
#8 0x562cf5089b01 in best_access_path(JOIN*, st_join_table*, unsigned long long, st_position const*, unsigned int, bool, double, st_position*, st_position*) /mariadb/10.5m/sql/sql_select.cc:8044:23
|
#9 0x562cf51329fb in best_extension_by_limited_search(JOIN*, unsigned long long, unsigned int, double, double, unsigned int, unsigned int, unsigned int) /mariadb/10.5m/sql/sql_select.cc:9533:7
|
#10 0x562cf50912cc in greedy_search(JOIN*, unsigned long long, unsigned int, unsigned int, unsigned int) /mariadb/10.5m/sql/sql_select.cc:8738:9
|
#11 0x562cf50912cc in choose_plan(JOIN*, unsigned long long) /mariadb/10.5m/sql/sql_select.cc:8303:9
|
#12 0x562cf50211be in make_join_statistics(JOIN*, List<TABLE_LIST>&, st_dynamic_array*) /mariadb/10.5m/sql/sql_select.cc:5550:11
|
#13 0x562cf50021ba in JOIN::optimize_inner() /mariadb/10.5m/sql/sql_select.cc:2260:7
|
#14 0x562cf4fe4abc in JOIN::optimize() /mariadb/10.5m/sql/sql_select.cc:1606:10
|
#15 0x562cf4fc5875 in mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /mariadb/10.5m/sql/sql_select.cc:4650:19
|
#16 0x562cf4fc4f48 in handle_select(THD*, LEX*, select_result*, unsigned long) /mariadb/10.5m/sql/sql_select.cc:417:10
|
#17 0x562cf4efddd2 in execute_sqlcom_select(THD*, TABLE_LIST*) /mariadb/10.5m/sql/sql_parse.cc:6168:12
|
#18 0x562cf4edc2a4 in mysql_execute_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:3901:12
|
#19 0x562cf4ec94c0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:7953:18
|
#20 0x562cf4ebd8b1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:1839:7
|
#21 0x562cf4ecb28c in do_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:1358:17
|
#22 0x562cf54cdf0b in do_handle_one_connection(CONNECT*, bool) /mariadb/10.5m/sql/sql_connect.cc:1422:11
|
#23 0x562cf54cd4e6 in handle_one_connection /mariadb/10.5m/sql/sql_connect.cc:1319:5
|
#24 0x562cf693e1e7 in pfs_spawn_thread /mariadb/10.5m/storage/perfschema/pfs.cc:2201:3
|
#25 0x7ff22f6cbf26 in start_thread /build/glibc-WZtAaN/glibc-2.30/nptl/pthread_create.c:479:8
|
#26 0x7ff22f1a52ee in clone /build/glibc-WZtAaN/glibc-2.30/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
|
Uninitialized value was created by an allocation of 'stack' in the stack frame of function 'my_qsort2'
|
#0 0x562cf7e70be0 in my_qsort2 /mariadb/10.5m/mysys/mf_qsort.c:100
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
CURRENT_TEST: main.opt_trace_ucs2
|
mysqltest: At line 8: query 'explain format=json select * from t1 force index(col1) where col1 >='a'' failed: 2013: Lost connection to MySQL server during query
|
…
|
==2534814==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0x557169a48491 in my_gcvt /mariadb/10.5m/strings/dtoa.c:294:19
|
#1 0x557169a595f3 in process_dbl_arg /mariadb/10.5m/strings/my_vsnprintf.c:248:10
|
#2 0x557169a595f3 in my_vsnprintf_ex /mariadb/10.5m/strings/my_vsnprintf.c:638:11
|
#3 0x557169a5f5b3 in my_vsnprintf /mariadb/10.5m/strings/my_vsnprintf.c:704:10
|
#4 0x557169a5f5b3 in my_snprintf /mariadb/10.5m/strings/my_vsnprintf.c:713:11
|
#5 0x55716701b209 in Json_writer::add_double(double) /mariadb/10.5m/sql/my_json_writer.cc:185:15
|
#6 0x557167b9225d in Json_value_helper::add_double(double) /mariadb/10.5m/sql/my_json_writer.h:288:15
|
#7 0x557167b9225d in Json_writer_object::add(char const*, double) /mariadb/10.5m/sql/my_json_writer.h:406:15
|
#8 0x557167b9225d in calculate_cond_selectivity_for_table(THD*, TABLE*, Item**) /mariadb/10.5m/sql/opt_range.cc:3360:33
|
#9 0x5571669ceb59 in make_join_statistics(JOIN*, List<TABLE_LIST>&, st_dynamic_array*) /mariadb/10.5m/sql/sql_select.cc:5455:13
|
#10 0x5571669b11ba in JOIN::optimize_inner() /mariadb/10.5m/sql/sql_select.cc:2260:7
|
#11 0x557166993abc in JOIN::optimize() /mariadb/10.5m/sql/sql_select.cc:1606:10
|
#12 0x557166974875 in mysql_select(THD*, TABLE_LIST*, List<Item>&, Item*, unsigned int, st_order*, st_order*, Item*, st_order*, unsigned long long, select_result*, st_select_lex_unit*, st_select_lex*) /mariadb/10.5m/sql/sql_select.cc:4650:19
|
#13 0x557166ac0bfd in mysql_explain_union(THD*, st_select_lex_unit*, select_result*) /mariadb/10.5m/sql/sql_select.cc:27182:10
|
#14 0x5571668ac272 in execute_sqlcom_select(THD*, TABLE_LIST*) /mariadb/10.5m/sql/sql_parse.cc:6107:12
|
#15 0x55716688b2a4 in mysql_execute_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:3901:12
|
#16 0x5571668784c0 in mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:7953:18
|
#17 0x55716686c8b1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool) /mariadb/10.5m/sql/sql_parse.cc:1839:7
|
#18 0x55716687a28c in do_command(THD*) /mariadb/10.5m/sql/sql_parse.cc:1358:17
|
#19 0x557166e7cf0b in do_handle_one_connection(CONNECT*, bool) /mariadb/10.5m/sql/sql_connect.cc:1422:11
|
#20 0x557166e7c4e6 in handle_one_connection /mariadb/10.5m/sql/sql_connect.cc:1319:5
|
#21 0x5571682ed1e7 in pfs_spawn_thread /mariadb/10.5m/storage/perfschema/pfs.cc:2201:3
|
#22 0x7f8dd74c8f26 in start_thread /build/glibc-WZtAaN/glibc-2.30/nptl/pthread_create.c:479:8
|
#23 0x7f8dd6fa22ee in clone /build/glibc-WZtAaN/glibc-2.30/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
|
Uninitialized value was created by an allocation of 'stat_tables' in the stack frame of function '_Z26read_statistics_for_tablesP3THDP10TABLE_LIST'
|
#0 0x557166ba5b00 in read_statistics_for_tables(THD*, TABLE_LIST*) /mariadb/10.5m/sql/sql_statistics.cc:3291
|
|
10.5 53aabda6b5ac6af989a97a00ff97efda9ff8772e |
CURRENT_TEST: innodb_fts.innodb_fts_misc
|
mysqltest: At line 902: query 'ALTER TABLE t1 ADD FULLTEXT INDEX idx (a,b)' failed: 2013: Lost connection to MySQL server during query
|
…
|
Uninitialized bytes in MemcmpInterceptorCommon at offset 14 inside [0x7fce48869f00, 17)
|
==2536284==WARNING: MemorySanitizer: use-of-uninitialized-value
|
#0 0x558021dffa2c in bcmp (/dev/shm/10.5ms/sql/mariadbd+0x6dea2c)
|
#1 0x558024d3c12b in dict_table_t* dict_acquire_mdl_shared<false>(dict_table_t*, THD*, MDL_ticket**, dict_table_op_t) /mariadb/10.5m/storage/innobase/dict/dict0dict.cc:892:10
|
#2 0x558024ce8e40 in dict_table_open_on_id(unsigned long, bool, dict_table_op_t, THD*, MDL_ticket**) /mariadb/10.5m/storage/innobase/dict/dict0dict.cc:947:12
|
#3 0x5580246f620b in row_purge_parse_undo_rec(purge_node_t*, unsigned char*, que_thr_t*, bool*) /mariadb/10.5m/storage/innobase/row/row0purge.cc:933:16
|
#4 0x5580246f620b in row_purge(purge_node_t*, unsigned char*, que_thr_t*) /mariadb/10.5m/storage/innobase/row/row0purge.cc:1107:10
|
#5 0x5580246f620b in row_purge_step(que_thr_t*) /mariadb/10.5m/storage/innobase/row/row0purge.cc:1159:3
|
#6 0x5580244c6370 in que_thr_step(que_thr_t*) /mariadb/10.5m/storage/innobase/que/que0que.cc:1038:9
|
#7 0x5580244c6370 in que_run_threads_low(que_thr_t*) /mariadb/10.5m/storage/innobase/que/que0que.cc:1100:14
|
#8 0x5580244c6370 in que_run_threads(que_thr_t*) /mariadb/10.5m/storage/innobase/que/que0que.cc:1140:2
|
#9 0x558024819043 in srv_task_execute() /mariadb/10.5m/storage/innobase/srv/srv0srv.cc:2055:3
|
#10 0x558024819043 in purge_worker_callback(void*) /mariadb/10.5m/storage/innobase/srv/srv0srv.cc:2205:10
|
#11 0x5580250aa413 in tpool::task_group::execute(tpool::task*) /mariadb/10.5m/tpool/task_group.cc:55:9
|
#12 0x55802509dd72 in tpool::thread_pool_generic::worker_main(tpool::worker_data*) /mariadb/10.5m/tpool/tpool_generic.cc:518:11
|
#13 0x5580250a77bc in decltype(*(std::__1::forward<tpool::thread_pool_generic*>(fp0)).*fp(std::__1::forward<tpool::worker_data*>(fp1))) std::__1::__invoke<void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*, void>(void (tpool::thread_pool_generic::*&&)(tpool::worker_data*), tpool::thread_pool_generic*&&, tpool::worker_data*&&) /usr/lib/llvm-10/bin/../include/c++/v1/type_traits:3480:1
|
#14 0x5580250a77bc in void std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*, 2ul, 3ul>(std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*>&, std::__1::__tuple_indices<2ul, 3ul>) /usr/lib/llvm-10/bin/../include/c++/v1/thread:273:5
|
#15 0x5580250a77bc in void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (tpool::thread_pool_generic::*)(tpool::worker_data*), tpool::thread_pool_generic*, tpool::worker_data*> >(void*) /usr/lib/llvm-10/bin/../include/c++/v1/thread:284:5
|
#16 0x7fce54cf8f26 in start_thread /build/glibc-WZtAaN/glibc-2.30/nptl/pthread_create.c:479:8
|
#17 0x7fce547d22ee in clone /build/glibc-WZtAaN/glibc-2.30/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|
|
Uninitialized value was created by an allocation of 'db_buf' in the stack frame of function '_Z23dict_acquire_mdl_sharedILb0EEP12dict_table_tS1_P3THDPP10MDL_ticket15dict_table_op_t'
|
#0 0x558024d3b200 in dict_table_t* dict_acquire_mdl_shared<false>(dict_table_t*, THD*, MDL_ticket**, dict_table_op_t) /mariadb/10.5m/storage/innobase/dict/dict0dict.cc:790
|
The test failures main.query_cache_innodb and innodb_fts.innodb_fts_misc were fixed in MDEV-22060.
Update:
|
10.5 23047d3ed42eacb5eaa5475a8fa4161550d01c52 |
Completed: Failed 55/5274 tests, 98.96% were successful.Failing test(s): rpl.rpl_row_end_of_statement_loss encryption.create_or_replace rpl.rpl_parallel_optimistic_xa_lsu_off binlog_encryption.encrypted_master encryption.innodb_encryption_discard_import rpl.rpl_non_direct_stm_mixing_engines rpl.rpl_mixed_mixing_engines wsrep_info.plugin perfschema.hostcache_ipv6_ssl main.userstat perfschema.transaction_nested_events main.mysql_client_test_nonblock main.mysql_client_test rpl.rpl_gtid_ignored main.mysql_upgrade_ssl main.opt_trace_index_merge_innodb maria.maria-recovery2 main.mysql_client_test_comp main.ssl_7937 plugins.multiauth main.ssl_8k_key main.ssl_timeout-9836 main.tls_version main.opt_trace_security main.opt_trace_ucs2 main.func_debug main.flush_ssl main.ssl main.myisampack main.ssl_ca main.ssl_cipher main.ssl_compress main.ssl_connect main.openssl_1 main.ssl_timeout main.opt_trace_index_merge perfschema.connection_type_notwin main.loadxml perfschema.hostcache_ipv4_ssl plugins.auth_ed25519 sys_vars.pseudo_slave_mode_basic sys_vars.replicate_do_table_grant type_inet.type_inet6 main.ssl-big innodb.innodb_bulk_create_index_debug main.opt_trace client.mariadb-conv-utf8 client.mariadb-conv-cp932 innodb.alter_large_dml
|
The test innodb.alter_large_dml apparently timed out. Many SSL tests failed due to MDEV-22083.
To work around the lack of MSAN-instrumented libmariadb, I replaced the executables in the client directory with non-instrumented executables from the same source. I got the following test failures that seem to be related to code deficiencies:
The test wsrep_info.plugin would fail if a (necessarily uninstrumented) galera-4 library is installed.
The tests plugins.auth_ed25519 and plugins.multiauth fail with: Plugin client_ed25519 could not be loaded: …/var/plugins/client_ed25519.so: undefined symbol: __msan_origin_tls
|
10.5 d8ea11a33fba12331c98c04ff44c815a662faccb |
Failing test(s): main.mysql_client_test_nonblock main.mysql_client_test main.mysql_client_test_comp
|
These tests fail even if I replace the tests/mariadb-client-test with an uninstrumented one. With the uninstrumented client, each failure looks like this:
CURRENT_TEST: main.mysql_client_test_nonblock
|
mysqltest: At line 22: exec of '/dev/shm/10.5-msan/tests/mysql_client_test --defaults-file=/dev/shm/10.5-msan/mysql-test/var/1/my.cnf --testcase --vardir=/dev/shm/10.5-msan/mysql-test/var/1 --non-blocking-api --getopt-ll-test=25600M >> /dev/shm/10.5-msan/mysql-test/var/1/log/mysql_client_test.out.log 2>&1' failed, error: 256, status: 1, errno: 11
|
Before I replaced the client executables (client/* to work around the lack of MSAN instrumentation (MDEV-22083), the following 24 tests additionally failed:
|
10.5 d8ea11a33fba12331c98c04ff44c815a662faccb |
main.tls_version main.ssl_8k_key main.flush_ssl rpl.rpl_parallel_conflicts perfschema.hostcache_ipv6_ssl main.ssl_ca main.userstat perfschema.transaction_nested_events main.mysql_upgrade_ssl main.ssl_7937 main.openssl_1 main.ssl_connect main.ssl_timeout-9836 main.ssl main.ssl_cipher main.ssl-big main.ssl_compress perfschema.connection_type_notwin main.ssl_timeout perfschema.hostcache_ipv4_ssl innodb.innodb_bulk_create_index_debug
|
We had WITH_MSAN almost working in 10.5 for quite some time now.
I ported the applicable parts of the MemorySanitizer instrumentation to 10.2. This includes replacing the InnoDB UNIV_MEM_ macros with the direct use of MEM_ macros that are defined in my_valgrind.h.
In 10.2, I did not get any test to pass under MemorySanitizer. Basically, everything failed due to the old PCRE library. In 10.5, it was updated in MDEV-14024.
Some tests will fail WITH_MSAN until CONC-483 and MDEV-22083 have been addressed.
The updated build-msan15.sh
will replace the text file libc+.so with a symbolic link pointing to libc+.so.1.
Starting with llvm-symbolizer-14, there is a dependency on libgmp. Therefore, if you make LD_LIBRARY_PATH point to something that includes an MSAN-instrumented libgmp (due to MDEV-22083), you should also make MSAN_SYMBOLIZER_PATH point to a wrapper script like the following, in order to get resolved stack traces:
#!/bin/sh
|
unset LD_LIBRARY_PATH
|
exec llvm-symbolizer-15 "$@"
|
In clang-16 the libraries are not part of LLVM_ENABLE_PROJECTS, but LLVM_ENABLE_RUNTIMES. build-msan16.sh
should do the trick.