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

Server crashes in Item_func_binlog_gtid_pos::val_str / Binary_string::c_ptr_safe

    XMLWordPrintable

Details

    Description

      --source include/have_log_bin.inc
       
      CREATE TABLE t AS SELECT MASTER_POS_WAIT(@binlog_file, 4, 0);
      SELECT BINLOG_GTID_POS(@binlog_file, 4);
       
      # Cleanup
      DROP TABLE t;
      

      10.4 ba94778d2c438d4c0f93ce031e504f7d78e895e1

      #3  <signal handler called>
      #4  0x0000558606f0f9b1 in Binary_string::c_ptr_safe (this=0x8) at /data/bld/10.4-asan/sql/sql_string.h:699
      #5  0x0000558607b99a25 in Item_func_binlog_gtid_pos::val_str (this=0x62b000038a20, str=0x7f304e912120) at /data/bld/10.4-asan/sql/item_strfunc.cc:3244
      #6  0x0000558607772a38 in Type_handler::Item_send_str (this=0x55860a3dc1e0 <type_handler_long_blob>, item=0x62b000038a20, protocol=0x62b000069808, buf=0x7f304e9120f0) at /data/bld/10.4-asan/sql/sql_type.cc:7104
      #7  0x000055860778c2c4 in Type_handler_string_result::Item_send (this=0x55860a3dc1e0 <type_handler_long_blob>, item=0x62b000038a20, protocol=0x62b000069808, buf=0x7f304e9120f0) at /data/bld/10.4-asan/sql/sql_type.h:4979
      #8  0x0000558606f3b062 in Item::send (this=0x62b000038a20, protocol=0x62b000069808, buffer=0x7f304e9120f0) at /data/bld/10.4-asan/sql/item.h:1045
      #9  0x0000558606f2ccb7 in Protocol::send_result_set_row (this=0x62b000069808, row_items=0x62b000038440) at /data/bld/10.4-asan/sql/protocol.cc:1033
      #10 0x00005586070d908d in select_send::send_data (this=0x62b000039470, items=...) at /data/bld/10.4-asan/sql/sql_class.cc:3141
      #11 0x00005586072ca8c8 in JOIN::exec_inner (this=0x62b0000394a0) at /data/bld/10.4-asan/sql/sql_select.cc:4493
      #12 0x00005586072c94a0 in JOIN::exec (this=0x62b0000394a0) at /data/bld/10.4-asan/sql/sql_select.cc:4407
      #13 0x00005586072cd52e in mysql_select (thd=0x62b000069208, tables=0x0, wild_num=0, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0, proc_param=0x0, select_options=2147748608, result=0x62b000039470, unit=0x62b00006d130, select_lex=0x62b0000382e0) at /data/bld/10.4-asan/sql/sql_select.cc:4846
      #14 0x000055860729de11 in handle_select (thd=0x62b000069208, lex=0x62b00006d070, result=0x62b000039470, setup_tables_done_option=0) at /data/bld/10.4-asan/sql/sql_select.cc:442
      #15 0x0000558607208704 in execute_sqlcom_select (thd=0x62b000069208, all_tables=0x0) at /data/bld/10.4-asan/sql/sql_parse.cc:6523
      #16 0x00005586071f5aca in mysql_execute_command (thd=0x62b000069208) at /data/bld/10.4-asan/sql/sql_parse.cc:3980
      #17 0x00005586072119f3 in mysql_parse (thd=0x62b000069208, rawbuf=0x62b000038228 "SELECT BINLOG_GTID_POS(@binlog_file, 4)", length=39, parser_state=0x7f304e914c60, is_com_multi=false, is_next_command=false) at /data/bld/10.4-asan/sql/sql_parse.cc:8062
      #18 0x00005586071e7a4e in dispatch_command (command=COM_QUERY, thd=0x62b000069208, packet=0x62900021c209 "", packet_length=39, is_com_multi=false, is_next_command=false) at /data/bld/10.4-asan/sql/sql_parse.cc:1857
      #19 0x00005586071e45bd in do_command (thd=0x62b000069208) at /data/bld/10.4-asan/sql/sql_parse.cc:1378
      #20 0x00005586075eb135 in do_handle_one_connection (connect=0x6080000009a8) at /data/bld/10.4-asan/sql/sql_connect.cc:1419
      #21 0x00005586075eaa4c in handle_one_connection (arg=0x6080000009a8) at /data/bld/10.4-asan/sql/sql_connect.cc:1323
      #22 0x000055860824f992 in pfs_spawn_thread (arg=0x615000003788) at /data/bld/10.4-asan/storage/perfschema/pfs.cc:1869
      #23 0x00007f30584a8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
      #24 0x00007f305852861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
      

      Attachments

        Activity

          People

            knielsen Kristian Nielsen
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.