Skip to:
Build Percona Server with "-DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON".Run
./mtr --debug-server --sanitize encryption.innodb-read-only
==79405==ERROR: LeakSanitizer: detected memory leaks Direct leak of 40 byte(s) in 1 object(s) allocated from: #0 0x7f25c2fea448 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10c448) #1 0x56262a9ab576 in my_raw_malloc /mnt/hgfs/repos/percona-server/mysys/my_malloc.cc:199 #2 0x56262a9ab6c9 in my_malloc(unsigned int, unsigned long, int) /mnt/hgfs/repos/percona-server/mysys/my_malloc.cc:81 #3 0x56262891f3b2 in intern_plugin_lock /mnt/hgfs/repos/percona-server/sql/sql_plugin.cc:941 #4 0x56262891f727 in plugin_lock(THD*, st_plugin_int***) /mnt/hgfs/repos/percona-server/sql/sql_plugin.cc:961 #5 0x5626287a3fda in lock_keyring(THD*, st_plugin_int**, void*) (/home/yura/addon/host/percona-build-8.0-asan_gcc9/runtime_output_directory/mysqld-debug+0x3a7cfda) #6 0x56262891ef00 in plugin_foreach_with_mask(THD*, bool (**)(THD*, st_plugin_int**, void*), int, unsigned int, void*) /mnt/hgfs/repos/percona-server/sql/sql_plugin.cc:2628 #7 0x56262891f1f1 in plugin_foreach_with_mask(THD*, bool (*)(THD*, st_plugin_int**, void*), int, unsigned int, void*) /mnt/hgfs/repos/percona-server/sql/sql_plugin.cc:2641 #8 0x562628799a5e in KeyringsLocker::lock_keyrings(THD*) (/home/yura/addon/host/percona-build-8.0-asan_gcc9/runtime_output_directory/mysqld-debug+0x3a72a5e) #9 0x56262878f37a in lock_keyrings(THD*) /mnt/hgfs/repos/percona-server/sql/sql_class.cc:3053 #10 0x56262aa36500 in innodb_init /mnt/hgfs/repos/percona-server/storage/innobase/handler/ha_innodb.cc:5294 #11 0x562628209eb7 in ha_initialize_handlerton(st_plugin_int*) /mnt/hgfs/repos/percona-server/sql/handler.cc:795 #12 0x56262891bbf9 in plugin_initialize /mnt/hgfs/repos/percona-server/sql/sql_plugin.cc:1281 #13 0x56262892dbda in plugin_register_builtin_and_init_core_se(int*, char**) /mnt/hgfs/repos/percona-server/sql/sql_plugin.cc:1587 #14 0x56262857234d in init_server_components /mnt/hgfs/repos/percona-server/sql/mysqld.cc:5717 #15 0x5626285798bf in mysqld_main(int, char**) /mnt/hgfs/repos/percona-server/sql/mysqld.cc:6787 #16 0x5626281a4ced in main /mnt/hgfs/repos/percona-server/sql/main.cc:25 #17 0x7f25c1c4ab6a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26b6a)
Build Percona Server with "-DWITH_ASAN=ON -DWITH_ASAN_SCOPE=ON".
Run
./mtr --debug-server --sanitize encryption.innodb-read-only
==79405==ERROR: LeakSanitizer: detected memory leaks Direct leak of 40 byte(s) in 1 object(s) allocated from: #0 0x7f25c2fea448 in malloc (/lib/x86_64-linux-gnu/libasan.so.5+0x10c448) #1 0x56262a9ab576 in my_raw_malloc /mnt/hgfs/repos/percona-server/mysys/my_malloc.cc:199 #2 0x56262a9ab6c9 in my_malloc(unsigned int, unsigned long, int) /mnt/hgfs/repos/percona-server/mysys/my_malloc.cc:81 #3 0x56262891f3b2 in intern_plugin_lock /mnt/hgfs/repos/percona-server/sql/sql_plugin.cc:941 #4 0x56262891f727 in plugin_lock(THD*, st_plugin_int***) /mnt/hgfs/repos/percona-server/sql/sql_plugin.cc:961 #5 0x5626287a3fda in lock_keyring(THD*, st_plugin_int**, void*) (/home/yura/addon/host/percona-build-8.0-asan_gcc9/runtime_output_directory/mysqld-debug+0x3a7cfda) #6 0x56262891ef00 in plugin_foreach_with_mask(THD*, bool (**)(THD*, st_plugin_int**, void*), int, unsigned int, void*) /mnt/hgfs/repos/percona-server/sql/sql_plugin.cc:2628 #7 0x56262891f1f1 in plugin_foreach_with_mask(THD*, bool (*)(THD*, st_plugin_int**, void*), int, unsigned int, void*) /mnt/hgfs/repos/percona-server/sql/sql_plugin.cc:2641 #8 0x562628799a5e in KeyringsLocker::lock_keyrings(THD*) (/home/yura/addon/host/percona-build-8.0-asan_gcc9/runtime_output_directory/mysqld-debug+0x3a72a5e) #9 0x56262878f37a in lock_keyrings(THD*) /mnt/hgfs/repos/percona-server/sql/sql_class.cc:3053 #10 0x56262aa36500 in innodb_init /mnt/hgfs/repos/percona-server/storage/innobase/handler/ha_innodb.cc:5294 #11 0x562628209eb7 in ha_initialize_handlerton(st_plugin_int*) /mnt/hgfs/repos/percona-server/sql/handler.cc:795 #12 0x56262891bbf9 in plugin_initialize /mnt/hgfs/repos/percona-server/sql/sql_plugin.cc:1281 #13 0x56262892dbda in plugin_register_builtin_and_init_core_se(int*, char**) /mnt/hgfs/repos/percona-server/sql/sql_plugin.cc:1587 #14 0x56262857234d in init_server_components /mnt/hgfs/repos/percona-server/sql/mysqld.cc:5717 #15 0x5626285798bf in mysqld_main(int, char**) /mnt/hgfs/repos/percona-server/sql/mysqld.cc:6787 #16 0x5626281a4ced in main /mnt/hgfs/repos/percona-server/sql/main.cc:25 #17 0x7f25c1c4ab6a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26b6a)