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

MSAN: use-of-uninitialized-value handler::io_cost

    XMLWordPrintable

Details

    Description

      11.4-5cf9d846eacb74fbe9d1850634cbf32d7566c7ba

      https://buildbot.mariadb.org/#/builders/866/builds/26/steps/10/logs/stdio

       
      from: sql_sequence.other
       
      create sequence s1;
      update s1 set next_not_cached_value=100;
      ERROR HY000: Storage engine SEQUENCE of the table `test`.`s1` doesn't have this option
      delete from s1 where next_not_cached_value > 0;
       
      Version: '11.4.9-MariaDB-debug-log'  socket: '/dev/shm/normal/tmp/25/mysqld.1.sock'  port: 19540  Source distribution
      ==240860==WARNING: MemorySanitizer: use-of-uninitialized-value
          #0 0x56287c36aca0 in handler::io_cost(IO_AND_CPU_COST) /home/buildbot/src/sql/handler.h:3698:5
          #1 0x56287c33c882 in handler::cost(IO_AND_CPU_COST) /home/buildbot/src/sql/handler.h:3703:12
          #2 0x56287c1df970 in SQL_SELECT::test_quick_select(THD*, Bitmap<64u>, unsigned long long, unsigned long long, bool, bool, bool, bool, Item_func::Bitmap) /home/buildbot/src/sql/opt_range.cc:2759:22
          #3 0x56287caab813 in SQL_SELECT::check_quick(THD*, bool, unsigned long long, Item_func::Bitmap) /home/buildbot/src/sql/opt_range.h:1942:12
          #4 0x56287ca7aa51 in Sql_cmd_delete::delete_from_single_table(THD*) /home/buildbot/src/sql/sql_delete.cc:591:26
          #5 0x56287caa3bdf in Sql_cmd_delete::execute_inner(THD*) /home/buildbot/src/sql/sql_delete.cc:1902:28
          #6 0x56287d3ef54d in Sql_cmd_dml::execute(THD*) /home/buildbot/src/sql/sql_select.cc:34472:9
          #7 0x56287cdfc64c in mysql_execute_command(THD*, bool) /home/buildbot/src/sql/sql_parse.cc:4420:27
          #8 0x56287cdbbd8c in mysql_parse(THD*, char*, unsigned int, Parser_state*) /home/buildbot/src/sql/sql_parse.cc:7899:18
          #9 0x56287cda9b12 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /home/buildbot/src/sql/sql_parse.cc:1905:7
          #10 0x56287cdc135a in do_command(THD*, bool) /home/buildbot/src/sql/sql_parse.cc:1418:17
          #11 0x56287dd08c60 in do_handle_one_connection(CONNECT*, bool) /home/buildbot/src/sql/sql_connect.cc:1497:11
          #12 0x56287dd0755d in handle_one_connection /home/buildbot/src/sql/sql_connect.cc:1409:5
          #13 0x562880881f28 in pfs_spawn_thread /home/buildbot/src/storage/perfschema/pfs.cc:2201:3
          #14 0x7fc5761981f4  (/lib/x86_64-linux-gnu/libc.so.6+0x891f4) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4)
          #15 0x7fc576217b3f in clone (/lib/x86_64-linux-gnu/libc.so.6+0x108b3f) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4)
        Memory was marked as uninitialized
          #0 0x56287c06910d in __msan_allocated_memory (/home/buildbot/bld/sql/mariadbd+0x91e10d) (BuildId: bcd483acb911f5a388f4a1dedb81204aef961979)
          #1 0x56287da1e1a2 in TABLE_SHARE::update_optimizer_costs(handlerton*) /home/buildbot/src/sql/table.cc:3526:5
          #2 0x56287eded48a in handler::ha_open(TABLE*, char const*, int, unsigned int, st_mem_root*, List<String>*) /home/buildbot/src/sql/handler.cc:3684:20
          #3 0x56287da3522b in open_table_from_share(THD*, TABLE_SHARE*, st_mysql_const_lex_string const*, unsigned int, unsigned int, unsigned int, TABLE*, bool, List<String>*) /home/buildbot/src/sql/table.cc:4613:33
          #4 0x56287c8179d2 in open_table(THD*, TABLE_LIST*, Open_table_context*) /home/buildbot/src/sql/sql_base.cc:2314:12
          #5 0x56287c83f97c in open_and_process_table(THD*, TABLE_LIST*, unsigned int*, unsigned int, Prelocking_strategy*, bool, Open_table_context*) /home/buildbot/src/sql/sql_base.cc:4247:14
          #6 0x56287c835baf in open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /home/buildbot/src/sql/sql_base.cc:4730:14
          #7 0x56287c852317 in open_and_lock_tables(THD*, DDL_options_st const&, TABLE_LIST*, bool, unsigned int, Prelocking_strategy*) /home/buildbot/src/sql/sql_base.cc:5721:7
          #8 0x56287c8c2053 in open_and_lock_tables(THD*, TABLE_LIST*, bool, unsigned int) /home/buildbot/src/sql/sql_base.h:534:10
          #9 0x56287e6420e5 in sequence_insert(THD*, LEX*, TABLE_LIST*) /home/buildbot/src/sql/sql_sequence.cc:357:12
          #10 0x56287d6f2f15 in mysql_create_table_no_lock(THD*, st_ddl_log_state*, st_ddl_log_state*, Table_specification_st*, Alter_info*, bool*, int, TABLE_LIST*) /home/buildbot/src/sql/sql_table.cc:4967:10
          #11 0x56287d7c070a in mysql_create_table(THD*, TABLE_LIST*, Table_specification_st*, Alter_info*) /home/buildbot/src/sql/sql_table.cc:5196:7
          #12 0x56287d7b6509 in Sql_cmd_create_table_like::execute(THD*) /home/buildbot/src/sql/sql_table.cc:13565:12
          #13 0x56287ce233a4 in mysql_execute_command(THD*, bool) /home/buildbot/src/sql/sql_parse.cc:5876:26
          #14 0x56287cdbbd8c in mysql_parse(THD*, char*, unsigned int, Parser_state*) /home/buildbot/src/sql/sql_parse.cc:7899:18
          #15 0x56287cda9b12 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /home/buildbot/src/sql/sql_parse.cc:1905:7
          #16 0x56287cdc135a in do_command(THD*, bool) /home/buildbot/src/sql/sql_parse.cc:1418:17
          #17 0x56287dd08c60 in do_handle_one_connection(CONNECT*, bool) /home/buildbot/src/sql/sql_connect.cc:1497:11
          #18 0x56287dd0755d in handle_one_connection /home/buildbot/src/sql/sql_connect.cc:1409:5
          #19 0x562880881f28 in pfs_spawn_thread /home/buildbot/src/storage/perfschema/pfs.cc:2201:3
      SUMMARY: MemorySanitizer: use-of-uninitialized-value /home/buildbot/src/sql/handler.h:3698:5 in handler::io_cost(IO_AND_CPU_COST)
      

      Attachments

        Activity

          People

            oleg.smirnov Oleg Smirnov
            danblack Daniel Black
            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.