Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-37678

MemoryStanitizer: use-of-uninitialized-value in S3 storage engine

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      10.11-9aca89fa9f3b78074fd360cd229abb349fb6b572 , https://buildbot.dev.mariadb.org/#/builders/535/builds/7/steps/12/logs/stdio

      s3.arguments                             w9 [ fail ]
              Test ended at 2025-09-17 11:44:41
      CURRENT_TEST: s3.arguments
      The server [mysqld.1 - pid: 65, winpid: 65, exit: 256] crashed while running 'check testcase before test'
      Server log from this test:
      ----------SERVER LOG START-----------
      $ /home/buildbot/bld/sql/mariadbd --defaults-group-suffix=.1 --defaults-file=/dev/shm/s3/9/my.cnf --log-output=file --loose-sequence --core-file --loose-debug-sync-timeout=300
      2025-09-17 11:44:29 0 [Warning] Could not increase number of max_open_files to more than 1024 (request: 32278)
      2025-09-17 11:44:29 0 [Warning] Changed limits: max_open_files: 1024  max_connections: 151 (was 151)  table_cache: 421 (was 2000)
      2025-09-17 11:44:29 0 [Note] Starting MariaDB 10.11.15-MariaDB-debug-log source revision 9aca89fa9f3b78074fd360cd229abb349fb6b572 server_uid UxHpbqcBJUoWunbM0TSmc/jKUFg= as process 70
      2025-09-17 11:44:29 0 [Note] Plugin 'InnoDB' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'partition' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_FT_CONFIG' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_SYS_TABLESTATS' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_CMP_PER_INDEX' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_FT_DELETED' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_CMP' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'THREAD_POOL_WAITS' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_CMP_RESET' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'THREAD_POOL_QUEUES' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_SYS_FIELDS' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_BUFFER_PAGE_LRU' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'FEEDBACK' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_FT_INDEX_TABLE' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_CMPMEM' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'THREAD_POOL_GROUPS' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_CMP_PER_INDEX_RESET' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_SYS_FOREIGN_COLS' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_FT_INDEX_CACHE' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_BUFFER_POOL_STATS' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_FT_BEING_DELETED' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_SYS_FOREIGN' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_CMPMEM_RESET' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_FT_DEFAULT_STOPWORD' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_SYS_TABLES' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_SYS_COLUMNS' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_SYS_TABLESPACES' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_SYS_INDEXES' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_SYS_VIRTUAL' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'user_variables' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'INNODB_TABLESPACES_ENCRYPTION' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'THREAD_POOL_STATS' is disabled.
      2025-09-17 11:44:29 0 [Note] Plugin 'unix_socket' is disabled.
      2025-09-17 11:44:29 0 [Warning] /home/buildbot/bld/sql/mariadbd: unknown option '--loose-pam-debug'
      2025-09-17 11:44:29 0 [Warning] /home/buildbot/bld/sql/mariadbd: unknown option '--loose-aria'
      2025-09-17 11:44:29 0 [Note] Server socket created on IP: '127.0.0.1', port: '19240'.
      2025-09-17 11:44:30 0 [Note] /home/buildbot/bld/sql/mariadbd: ready for connections.
      Version: '10.11.15-MariaDB-debug-log'  socket: '/dev/shm/s3/tmp/9/mysqld.1.sock'  port: 19240  Source distribution
      ==70==WARNING: MemorySanitizer: use-of-uninitialized-value
          #0 0x7fc8d1371850 in generate_request_hash /home/buildbot/src/storage/maria/libmarias3/src/request.c:355:5
          #1 0x7fc8d136b5a8 in build_request_headers /home/buildbot/src/storage/maria/libmarias3/src/request.c:507:11
          #2 0x7fc8d1360ef9 in execute_request /home/buildbot/src/storage/maria/libmarias3/src/request.c:817:13
          #3 0x7fc8d135776e in ms3_list_dir /home/buildbot/src/storage/maria/libmarias3/src/marias3.c:402:9
          #4 0x7fc8d131e4d4 in s3_discover_table_names(handlerton*, st_mysql_const_lex_string*, st_my_dir*, handlerton::discovered_list*) /home/buildbot/src/storage/maria/ha_s3.cc:896:15
          #5 0x559a7ec1d4c1 in discover_names(THD*, st_plugin_int**, void*) /home/buildbot/src/sql/handler.cc:6681:9
          #6 0x559a7cecf6d2 in plugin_foreach_with_mask(THD*, char (*)(THD*, st_plugin_int**, void*), int, unsigned int, void*) /home/buildbot/src/sql/sql_plugin.cc:2558:15
          #7 0x559a7ec1c429 in ha_discover_table_names(THD*, st_mysql_const_lex_string*, st_my_dir*, Discovered_table_list*, bool) /home/buildbot/src/sql/handler.cc:6721:12
          #8 0x559a7d4f994c in find_files(THD*, Dynamic_array<st_mysql_const_lex_string*>*, st_mysql_const_lex_string*, char const*, st_mysql_const_lex_string const*) /home/buildbot/src/sql/sql_show.cc:991:9
          #9 0x559a7d456299 in make_table_name_list(THD*, Dynamic_array<st_mysql_const_lex_string*>*, LEX*, st_lookup_field_values*, st_mysql_const_lex_string*) /home/buildbot/src/sql/sql_show.cc:4606:26
          #10 0x559a7d44e0c3 in get_all_tables(THD*, TABLE_LIST*, Item*) /home/buildbot/src/sql/sql_show.cc:5375:16
          #11 0x559a7d4a9ec9 in get_schema_tables_result(JOIN*, enum_schema_table_state) /home/buildbot/src/sql/sql_show.cc:9275:11
          #12 0x559a7d176bae in JOIN::exec_inner() /home/buildbot/src/sql/sql_select.cc:4942:7
          #13 0x559a7d1721ab in JOIN::exec() /home/buildbot/src/sql/sql_select.cc:4769:3
          #14 0x559a7d044af5 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*) /home/buildbot/src/sql/sql_select.cc:5243:9
          #15 0x559a7d041192 in handle_select(THD*, LEX*, select_result*, unsigned long long) /home/buildbot/src/sql/sql_select.cc:600:10
          #16 0x559a7cd7dc1f in execute_sqlcom_select(THD*, TABLE_LIST*) /home/buildbot/src/sql/sql_parse.cc:6427:12
          #17 0x559a7cd38b36 in mysql_execute_command(THD*, bool) /home/buildbot/src/sql/sql_parse.cc:4008:12
          #18 0x559a7c4f07a5 in sp_instr_stmt::exec_core(THD*, unsigned int*) /home/buildbot/src/sql/sp_head.cc:3946:12
          #19 0x559a7c4e7991 in sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /home/buildbot/src/sql/sp_head.cc:3657:17
          #20 0x559a7c4ebaef in sp_instr_stmt::execute(THD*, unsigned int*) /home/buildbot/src/sql/sp_head.cc:3849:25
          #21 0x559a7c4adbb5 in sp_head::execute(THD*, bool) /home/buildbot/src/sql/sp_head.cc:1464:20
          #22 0x559a7c4bfa6c in sp_head::execute_procedure(THD*, List<Item>*) /home/buildbot/src/sql/sp_head.cc:2480:5
          #23 0x559a7cd25e26 in do_execute_sp(THD*, sp_head*) /home/buildbot/src/sql/sql_parse.cc:3085:16
          #24 0x559a7cd24097 in Sql_cmd_call::execute(THD*) /home/buildbot/src/sql/sql_parse.cc:3330:9
          #25 0x559a7cd70a9a in mysql_execute_command(THD*, bool) /home/buildbot/src/sql/sql_parse.cc:6165:26
          #26 0x559a7cd013dc in mysql_parse(THD*, char*, unsigned int, Parser_state*) /home/buildbot/src/sql/sql_parse.cc:8180:18
          #27 0x559a7ccef212 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /home/buildbot/src/sql/sql_parse.cc:1906:7
          #28 0x559a7cd0699e in do_command(THD*, bool) /home/buildbot/src/sql/sql_parse.cc:1419:17
          #29 0x559a7dc0dda0 in do_handle_one_connection(CONNECT*, bool) /home/buildbot/src/sql/sql_connect.cc:1475:11
          #30 0x559a7dc0c69d in handle_one_connection /home/buildbot/src/sql/sql_connect.cc:1387:5
          #31 0x559a806455a8 in pfs_spawn_thread /home/buildbot/src/storage/perfschema/pfs.cc:2201:3
          #32 0x7fc8d82f61f4  (/lib/x86_64-linux-gnu/libc.so.6+0x891f4) (BuildId: 79005c16293efa45b441fed45f4f29b138557e9e)
          #33 0x7fc8d8375aff in clone (/lib/x86_64-linux-gnu/libc.so.6+0x108aff) (BuildId: 79005c16293efa45b441fed45f4f29b138557e9e)
        Uninitialized value was stored to memory at
          #0 0x7fc8d1371849 in generate_request_hash /home/buildbot/src/storage/maria/libmarias3/src/request.c:356:30
          #1 0x7fc8d136b5a8 in build_request_headers /home/buildbot/src/storage/maria/libmarias3/src/request.c:507:11
          #2 0x7fc8d1360ef9 in execute_request /home/buildbot/src/storage/maria/libmarias3/src/request.c:817:13
          #3 0x7fc8d135776e in ms3_list_dir /home/buildbot/src/storage/maria/libmarias3/src/marias3.c:402:9
          #4 0x7fc8d131e4d4 in s3_discover_table_names(handlerton*, st_mysql_const_lex_string*, st_my_dir*, handlerton::discovered_list*) /home/buildbot/src/storage/maria/ha_s3.cc:896:15
          #5 0x559a7ec1d4c1 in discover_names(THD*, st_plugin_int**, void*) /home/buildbot/src/sql/handler.cc:6681:9
          #6 0x559a7cecf6d2 in plugin_foreach_with_mask(THD*, char (*)(THD*, st_plugin_int**, void*), int, unsigned int, void*) /home/buildbot/src/sql/sql_plugin.cc:2558:15
          #7 0x559a7ec1c429 in ha_discover_table_names(THD*, st_mysql_const_lex_string*, st_my_dir*, Discovered_table_list*, bool) /home/buildbot/src/sql/handler.cc:6721:12
          #8 0x559a7d4f994c in find_files(THD*, Dynamic_array<st_mysql_const_lex_string*>*, st_mysql_const_lex_string*, char const*, st_mysql_const_lex_string const*) /home/buildbot/src/sql/sql_show.cc:991:9
          #9 0x559a7d456299 in make_table_name_list(THD*, Dynamic_array<st_mysql_const_lex_string*>*, LEX*, st_lookup_field_values*, st_mysql_const_lex_string*) /home/buildbot/src/sql/sql_show.cc:4606:26
          #10 0x559a7d44e0c3 in get_all_tables(THD*, TABLE_LIST*, Item*) /home/buildbot/src/sql/sql_show.cc:5375:16
          #11 0x559a7d4a9ec9 in get_schema_tables_result(JOIN*, enum_schema_table_state) /home/buildbot/src/sql/sql_show.cc:9275:11
          #12 0x559a7d176bae in JOIN::exec_inner() /home/buildbot/src/sql/sql_select.cc:4942:7
          #13 0x559a7d1721ab in JOIN::exec() /home/buildbot/src/sql/sql_select.cc:4769:3
          #14 0x559a7d044af5 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*) /home/buildbot/src/sql/sql_select.cc:5243:9
          #15 0x559a7d041192 in handle_select(THD*, LEX*, select_result*, unsigned long long) /home/buildbot/src/sql/sql_select.cc:600:10
          #16 0x559a7cd7dc1f in execute_sqlcom_select(THD*, TABLE_LIST*) /home/buildbot/src/sql/sql_parse.cc:6427:12
          #17 0x559a7cd38b36 in mysql_execute_command(THD*, bool) /home/buildbot/src/sql/sql_parse.cc:4008:12
          #18 0x559a7c4f07a5 in sp_instr_stmt::exec_core(THD*, unsigned int*) /home/buildbot/src/sql/sp_head.cc:3946:12
          #19 0x559a7c4e7991 in sp_lex_keeper::reset_lex_and_exec_core(THD*, unsigned int*, bool, sp_instr*) /home/buildbot/src/sql/sp_head.cc:3657:17
        Memory was marked as uninitialized
          #0 0x559a7bfac18d in __msan_allocated_memory (/home/buildbot/bld/sql/mariadbd+0x8ef18d) (BuildId: 10988df2c77931e84c1e4bdef06cfb73b328e0c2)
          #1 0x559a82a6b1cc in my_malloc /home/buildbot/src/mysys/my_malloc.c:116:7
          #2 0x7fc8d132eeed in s3_wrap_malloc /home/buildbot/src/storage/maria/s3_func.c:56:10
          #3 0x7fc8d12b5049  (/lib/x86_64-linux-gnu/libcurl.so.4+0x5e049) (BuildId: edb0bad08419980896b571665b91cc7578ae602a)
      SUMMARY: MemorySanitizer: use-of-uninitialized-value /home/buildbot/src/storage/maria/libmarias3/src/request.c:355:5 in generate_request_hash
       
      Compressed file /dev/shm/s3/9/log/s3.arguments/mysqld.1/data/core.70
       - saving '/dev/shm/s3/9/log/s3.arguments/' to '/dev/shm/s3/log/s3.arguments/'
      
      

      https://ci.dev.mariadb.org/220/logs/amd64-msan-clang-20-debug/

      Attachments

        Issue Links

          Activity

            People

              monty Michael Widenius
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.