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

UBSAN failure seen in log_event.cc

    XMLWordPrintable

Details

    Description

      Pquery reports UBSAN failure as :

      UBSAN|load of value X, which is not a valid value for type 'Optional_metadata_field_type'|sql/log_event.cc|Table_map_log_event::Optional_metadata_fields::Optional_metadata_fields|RPL_TABLE_LIST::create_column_mapping|Rows_log_event::do_apply_event|Log_event::apply_event
      

      MDEV-36290

      test/main-MDEV-36290_dbg_san/sql/log_event.cc:3770:30: runtime error: load of value 105, which is not a valid value for type 'Optional_metadata_field_type'
          #0 0x587a27629adb in Table_map_log_event::Optional_metadata_fields::Optional_metadata_fields(st_mem_root*, unsigned int, unsigned char*, unsigned int, bool) /test/main-MDEV-36290_dbg_san/sql/log_event.cc:3770:30
          #1 0x587a286ed15d in RPL_TABLE_LIST::create_column_mapping(rpl_group_info*) /test/main-MDEV-36290_dbg_san/sql/rpl_utility_server.cc:1353:5
          #2 0x587a275b115b in Rows_log_event::do_apply_event(rpl_group_info*) /test/main-MDEV-36290_dbg_san/sql/log_event_server.cc:5117:14
          #3 0x587a2762bd71 in Log_event::apply_event(rpl_group_info*) /test/main-MDEV-36290_dbg_san/sql/log_event.cc:4002:8
          #4 0x587a286854cd in save_restore_context_apply_event(Log_event*, rpl_group_info*) /test/main-MDEV-36290_dbg_san/sql/sql_binlog.cc:188:16
          #5 0x587a28687058 in mysql_client_binlog_statement(THD*) /test/main-MDEV-36290_dbg_san/sql/sql_binlog.cc:428:14
          #6 0x587a27fe2193 in mysql_execute_command(THD*, bool) /test/main-MDEV-36290_dbg_san/sql/sql_parse.cc:5772:5
          #7 0x587a27fb7d48 in mysql_parse(THD*, char*, unsigned int, Parser_state*) /test/main-MDEV-36290_dbg_san/sql/sql_parse.cc:7883:18
          #8 0x587a27fabcb1 in dispatch_command(enum_server_command, THD*, char*, unsigned int, bool) /test/main-MDEV-36290_dbg_san/sql/sql_parse.cc:1878:7
          #9 0x587a27fba76d in do_command(THD*, bool) /test/main-MDEV-36290_dbg_san/sql/sql_parse.cc:1417:17
          #10 0x587a287565dc in do_handle_one_connection(CONNECT*, bool) /test/main-MDEV-36290_dbg_san/sql/sql_connect.cc:1414:11
          #11 0x587a28755e97 in handle_one_connection /test/main-MDEV-36290_dbg_san/sql/sql_connect.cc:1326:5
          #12 0x587a26d6ae4c in asan_thread_start(void*) crtstuff.c
          #13 0x7ae7d169caa3 in start_thread nptl/pthread_create.c:447:8
          #14 0x7ae7d1729c6b in clone3 misc/../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
      

      SQL commands produced by reducer are :

      BINLOG 'wlZOTw8BAAAA8QAAAPUAAAAAAAQANS41LjIxLU1hcmlhREItZGVidWctbG9nAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAEzgNAAgAEgAEBAQEEgAA2QAEGggAAAAICAgCAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAA371saA==';
      CREATE TABLE t1 (c CHAR,KEY c (c)) DEFAULT CHARSET=utf32;
      binlog 'bBf2ZBMBAAAANAAAAHUkAAAAAHEAAAAAAAEABHRlc3QAAnQxAAQDDw8IBP0C4h0AaTGFIg==bBf2ZBgBAAAASAAAAL0kAAAAAHEAAAAAAAEABP//8I + kAAABAGIBAGWuv1VNCQAAAPBuWwAAAQBiAQBlrr9VTQkAAADxS9Lu';
      

      Attachments

        Issue Links

          Activity

            People

              bnestere Brandon Nesterenko
              Deepthi ES Deepthi Eranti Sreenivas
              Brandon Nesterenko Brandon Nesterenko
              Deepthi Eranti Sreenivas Deepthi Eranti Sreenivas
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.