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

MSAN_OPTIONS=poison_in_dtor=1 sp_lex_keeper

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 11.4.4
    • 11.4
    • Server, Stored routines
    • clang-19, msan, debian sid

    Description

      11.4-866a8ea6736d2edc0f6be552d1cdd6810c10d5ab

       
      CURRENT_TEST: binlog.binlog_stm_mix_innodb_myisam
      mysqltest: In included file "/source/mysql-test/suite/binlog/include/mix_innodb_myisam_binlog.test": 
      included from /source/mysql-test/suite/binlog/t/binlog_stm_mix_innodb_myisam.test at line 9:
      At line 598: query 'delete from t2' failed with wrong errno <Unknown> (2013): 'Lost connection to server during query', instead of ER_DUP_ENTRY (1062)...
       
      ==41703==WARNING: MemorySanitizer: use-of-uninitialized-value
          #0 0x5609a76ffb37 in sp_lex_keeper::~sp_lex_keeper() /source/sql/sp_instr.h:279:9
          #1 0x5609a76ffb37 in sp_lex_instr::~sp_lex_instr() /source/sql/sp_instr.h:423:3
          #2 0x5609a7d254a1 in sp_instr_stmt::~sp_instr_stmt() /source/sql/sp_instr.h:552:36
          #3 0x5609a7d254a1 in sp_instr_stmt::~sp_instr_stmt() /source/sql/sp_instr.h:552:36
          #4 0x5609a74f8eed in sp_head::~sp_head() /source/sql/sp_head.cc:902:5
          #5 0x5609a74fc5ad in sp_head::~sp_head() /source/sql/sp_head.cc:894:1
          #6 0x5609a74f7e0d in sp_head::destroy(sp_head*) /source/sql/sp_head.cc:536:5
          #7 0x5609a9009ee5 in my_hash_delete /source/mysys/hash.c:641:5
          #8 0x5609a74f5575 in sp_cache::remove(sp_head*) /source/sql/sp_cache.cc:59:5
          #9 0x5609a74f5575 in sp_cache_flush_obsolete(sp_cache**, sp_head**) /source/sql/sp_cache.cc:239:12
          #10 0x5609a840ff6c in Sp_handler::sp_cache_routine(THD*, Database_qualified_name const*, sp_head**) const /source/sql/sp.cc:2847:5
          #11 0x5609a840feab in Sroutine_hash_entry::sp_cache_routine(THD*, sp_head**) const /source/sql/sp.cc:2812:21
          #12 0x5609a75b07a4 in open_and_process_routine(THD*, Query_tables_list*, Sroutine_hash_entry*, Prelocking_strategy*, bool, Open_table_context*, bool*, bool*) /source/sql/sql_base.cc:3815:17
          #13 0x5609a75b07a4 in open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /source/sql/sql_base.cc:4737:16
          #14 0x5609a75b7127 in open_tables(THD*, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /source/sql/sql_base.h:272:10
          #15 0x5609a75b7127 in open_tables_for_query(THD*, TABLE_LIST*, unsigned int*, unsigned int, DML_prelocking_strategy*) /source/sql/sql_base.cc:5778:7
          #16 0x5609a78ed4f1 in Sql_cmd_dml::prepare(THD*) /source/sql/sql_select.cc:34211:7
          #17 0x5609a78ed8bf in Sql_cmd_dml::execute(THD*) /source/sql/sql_select.cc:34273:9
          #18 0x5609a7736562 in mysql_execute_command(THD*, bool) /source/sql/sql_parse.cc:4411:27
          #19 0x5609a7727248 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /source/sql/sql_parse.cc:7893:18
          #20 0x5609a7720aec in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /source/sql/sql_parse.cc:1905:7
          #21 0x5609a772833b in do_command(THD*, bool) /source/sql/sql_parse.cc:1418:17
          #22 0x5609a7b5bb0c in do_handle_one_connection(CONNECT*, bool) /source/sql/sql_connect.cc:1429:11
          #23 0x5609a7b5b5d5 in handle_one_connection /source/sql/sql_connect.cc:1341:5
          #24 0x5609a86e9739 in pfs_spawn_thread /source/storage/perfschema/pfs.cc:2201:3
          #25 0x7f22edd1ef51  (/lib/x86_64-linux-gnu/libc.so.6+0x91f51) (BuildId: 3bc74dbb72522bb47e0d899e5615140b044a5b40)
          #26 0x7f22edd9d677  (/lib/x86_64-linux-gnu/libc.so.6+0x110677) (BuildId: 3bc74dbb72522bb47e0d899e5615140b044a5b40)
       
        Member fields were destroyed
          #0 0x5609a736d8f1 in __sanitizer_dtor_callback_fields (/build/sql/mariadbd+0x8358f1) (BuildId: 13a40118eb9bf35f86642626dad684c45d80419f)
          #1 0x5609a76ff9cb in sp_lex_keeper::~sp_lex_keeper() /source/sql/sp_instr.h:360:8
          #2 0x5609a76ff9cb in sp_lex_keeper::~sp_lex_keeper() /source/sql/sp_instr.h:287:3
          #3 0x5609a76ff9cb in sp_lex_instr::~sp_lex_instr() /source/sql/sp_instr.h:419:20
          #4 0x5609a7d254a1 in sp_instr_stmt::~sp_instr_stmt() /source/sql/sp_instr.h:552:36
          #5 0x5609a7d254a1 in sp_instr_stmt::~sp_instr_stmt() /source/sql/sp_instr.h:552:36
          #6 0x5609a74f8eed in sp_head::~sp_head() /source/sql/sp_head.cc:902:5
          #7 0x5609a74fc5ad in sp_head::~sp_head() /source/sql/sp_head.cc:894:1
          #8 0x5609a74f7e0d in sp_head::destroy(sp_head*) /source/sql/sp_head.cc:536:5
          #9 0x5609a9009ee5 in my_hash_delete /source/mysys/hash.c:641:5
          #10 0x5609a74f5575 in sp_cache::remove(sp_head*) /source/sql/sp_cache.cc:59:5
          #11 0x5609a74f5575 in sp_cache_flush_obsolete(sp_cache**, sp_head**) /source/sql/sp_cache.cc:239:12
          #12 0x5609a840ff6c in Sp_handler::sp_cache_routine(THD*, Database_qualified_name const*, sp_head**) const /source/sql/sp.cc:2847:5
          #13 0x5609a840feab in Sroutine_hash_entry::sp_cache_routine(THD*, sp_head**) const /source/sql/sp.cc:2812:21
          #14 0x5609a75b07a4 in open_and_process_routine(THD*, Query_tables_list*, Sroutine_hash_entry*, Prelocking_strategy*, bool, Open_table_context*, bool*, bool*) /source/sql/sql_base.cc:3815:17
          #15 0x5609a75b07a4 in open_tables(THD*, DDL_options_st const&, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /source/sql/sql_base.cc:4737:16
          #16 0x5609a75b7127 in open_tables(THD*, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) /source/sql/sql_base.h:272:10
          #17 0x5609a75b7127 in open_tables_for_query(THD*, TABLE_LIST*, unsigned int*, unsigned int, DML_prelocking_strategy*) /source/sql/sql_base.cc:5778:7
          #18 0x5609a78ed4f1 in Sql_cmd_dml::prepare(THD*) /source/sql/sql_select.cc:34211:7
          #19 0x5609a78ed8bf in Sql_cmd_dml::execute(THD*) /source/sql/sql_select.cc:34273:9
          #20 0x5609a7736562 in mysql_execute_command(THD*, bool) /source/sql/sql_parse.cc:4411:27
          #21 0x5609a7727248 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /source/sql/sql_parse.cc:7893:18
          #22 0x5609a7720aec in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /source/sql/sql_parse.cc:1905:7
          #23 0x5609a772833b in do_command(THD*, bool) /source/sql/sql_parse.cc:1418:17
          #24 0x5609a7b5bb0c in do_handle_one_connection(CONNECT*, bool) /source/sql/sql_connect.cc:1429:11
          #25 0x5609a7b5b5d5 in handle_one_connection /source/sql/sql_connect.cc:1341:5
       
      SUMMARY: MemorySanitizer: use-of-uninitialized-value /source/sql/sp_instr.h:279:9 in sp_lex_keeper::~sp_lex_keeper()
      Exiting
      ----------SERVER LOG END-------------
      

      Included patch from MDEV-30932 and got the same error.

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              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.