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

Spider tests fail with MSAN use-of-uninitialized-value in spider_bulk_alloc_mem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.6
    • Fix Version/s: 10.6
    • Labels:
      None
    • Environment:

      Description

      Note: Other versions may well be affected too, I didn't check

      10.6 572e34304

      spider/bg.direct_aggregate_part          [ fail ]
              Test ended at 2022-03-14 12:28:49
       
      CURRENT_TEST: spider/bg.direct_aggregate_part
      mysqltest: At line 122: query 'CREATE TABLE ta_l2 (
      a INT,
      b CHAR(1),
      c DATETIME,
      PRIMARY KEY(a)
      ) $MASTER_1_ENGINE $MASTER_1_COMMENT2_P_2_1' failed: <Unknown> (2013): Lost connection to server during query
      ...
      

      ==13004==WARNING: MemorySanitizer: use-of-uninitialized-value
          #0 0x7f687a792bb2 in spider_bulk_alloc_mem(st_spider_transaction*, unsigned int, char const*, char const*, unsigned long, unsigned long, ...) /home/jenkins/src/storage/spider/spd_malloc.cc:249:14
          #1 0x7f687a6ddaf9 in spider_parse_connect_info(st_spider_share*, TABLE_SHARE*, partition_info*, unsigned int) /home/jenkins/src/storage/spider/spd_table.cc:3118:5
          #2 0x7f687a85e8da in ha_spider::create(char const*, TABLE*, HA_CREATE_INFO*) /home/jenkins/src/storage/spider/ha_spider.cc:11566:20
          #3 0x55efc9d88c0f in handler::ha_create(char const*, TABLE*, HA_CREATE_INFO*) /home/jenkins/src/sql/handler.cc:5425:14
          #4 0x55efcaa4b0fc in ha_partition::create(char const*, TABLE*, HA_CREATE_INFO*) /home/jenkins/src/sql/ha_partition.cc:834:11
          #5 0x55efc9d88c0f in handler::ha_create(char const*, TABLE*, HA_CREATE_INFO*) /home/jenkins/src/sql/handler.cc:5425:14
          #6 0x55efc9d8f4e6 in ha_create_table(THD*, char const*, char const*, char const*, HA_CREATE_INFO*, st_mysql_const_unsigned_lex_string*, bool) /home/jenkins/src/sql/handler.cc:5890:22
          #7 0x55efc940d73c in create_table_impl(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, st_mysql_const_lex_string const&, DDL_options_st, HA_CREATE_INFO*, Alter_info*, int, bool*, st_key**, unsigned int*, st_mysql_const_unsigned_lex_string*) /home/jenkins/src/sql/sql_table.cc:4471:11
          #8 0x55efc940a11c in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, st_mysql_const_lex_string const*, st_mysql_const_lex_string const*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /home/jenkins/src/sql/sql_table.cc:4570:8
          #9 0x55efc940f5d4 in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /home/jenkins/src/sql/sql_table.cc:4682:7
          #10 0x55efc9466909 in Sql_cmd_create_table_like::execute(THD*) /home/jenkins/src/sql/sql_table.cc:11855:12
          #11 0x55efc9096799 in mysql_execute_command(THD*, bool) /home/jenkins/src/sql/sql_parse.cc:5996:26
          #12 0x55efc907ed67 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /home/jenkins/src/sql/sql_parse.cc:8029:18
          #13 0x55efc9072ecd in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /home/jenkins/src/sql/sql_parse.cc:1896:7
          #14 0x55efc908117c in do_command(THD*, bool) /home/jenkins/src/sql/sql_parse.cc:1404:17
          #15 0x55efc9690b26 in do_handle_one_connection(CONNECT*, bool) /home/jenkins/src/sql/sql_connect.cc:1418:11
          #16 0x55efc9690085 in handle_one_connection /home/jenkins/src/sql/sql_connect.cc:1312:5
          #17 0x55efcaac9cfa in pfs_spawn_thread /home/jenkins/src/storage/perfschema/pfs.cc:2201:3
          #18 0x7f6884b68608 in start_thread /build/glibc-eX1tMB/glibc-2.31/nptl/pthread_create.c:477:8
          #19 0x7f688486d292 in clone /build/glibc-eX1tMB/glibc-2.31/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      SUMMARY: MemorySanitizer: use-of-uninitialized-value /home/jenkins/src/storage/spider/spd_malloc.cc:249:14 in spider_bulk_alloc_mem(st_spider_transaction*, unsigned int, char const*, char const*, unsigned long, unsigned long, ...)
        ORIGIN: invalid (0). Might be a bug in MemorySanitizer origin tracking.
          This could still be a bug in your code, too!
      

      Note: The last lines in the MSAN output above say it may be a bug in MSAN origin tracking, but that's not certain. If you come to the conclusion that it's a MSAN failure, please feel free to close as not-a-bug, but that will likely mean that Spider will remain disabled in CI MSAN tests.

        Attachments

          Activity

            People

            Assignee:
            nayuta-yanagisawa Nayuta Yanagisawa
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration

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