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

Error 2027: received malformed packet or Assertion `length < 249' failed in Transaction_state_tracker::store

    XMLWordPrintable

    Details

      Description

      The same is reproducible with just setting CHARACTER_SET_DATABASE, without the need to create a new schema, but I made the test case not to do it, as the operation isn't supposed to be performed by users.

      CREATE DATABASE db CHARACTER SET utf32;
      SET SESSION SESSION_TRACK_TRANSACTION_INFO= CHARACTERISTICS;
      USE db;
      SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
      START TRANSACTION;
       
      # Cleanup
      DROP DATABASE db;
      

      10.2 non-debug b0df247d

      query 'START TRANSACTION' failed: 2027: received malformed packet
      

      10.2 debug b0df247d

      mysqld: /data/src/10.2/sql/session_tracker.cc:1325: virtual bool Transaction_state_tracker::store(THD*, String*): Assertion `length < 249' failed.
      200714 22:28:28 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f54c471cf12 in __GI___assert_fail (assertion=0x56055234891d "length < 249", file=0x560552348780 "/data/src/10.2/sql/session_tracker.cc", line=1325, function=0x560552348b80 <Transaction_state_tracker::store(THD*, String*)::__PRETTY_FUNCTION__> "virtual bool Transaction_state_tracker::store(THD*, String*)") at assert.c:101
      #8  0x0000560551813c5e in Transaction_state_tracker::store (this=0x7f54ac007ee0, thd=0x7f54ac000af0, buf=0x7f54bea50110) at /data/src/10.2/sql/session_tracker.cc:1325
      #9  0x00005605518144e9 in Session_tracker::store (this=0x7f54ac005fc0, thd=0x7f54ac000af0, buf=0x7f54bea50110) at /data/src/10.2/sql/session_tracker.cc:1688
      #10 0x0000560551807dc8 in net_send_ok (thd=0x7f54ac000af0, server_status=16387, statement_warn_count=0, affected_rows=0, id=0, message=0x7f54ac005ca3 "", is_eof=false, skip_flush=false) at /data/src/10.2/sql/protocol.cc:282
      #11 0x00005605518088c1 in Protocol::send_ok (this=0x7f54ac0010a8, server_status=16387, statement_warn_count=0, affected_rows=0, last_insert_id=0, message=0x7f54ac005ca3 "", skip_flush=false) at /data/src/10.2/sql/protocol.cc:623
      #12 0x00005605518087c3 in Protocol::end_statement (this=0x7f54ac0010a8) at /data/src/10.2/sql/protocol.cc:592
      #13 0x00005605518e1b5e in dispatch_command (command=COM_QUERY, thd=0x7f54ac000af0, packet=0x7f54ac08ccd1 "START TRANSACTION", packet_length=17, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:2380
      #14 0x00005605518deb14 in do_command (thd=0x7f54ac000af0) at /data/src/10.2/sql/sql_parse.cc:1377
      #15 0x0000560551a34aef in do_handle_one_connection (connect=0x560554156080) at /data/src/10.2/sql/sql_connect.cc:1336
      #16 0x0000560551a3485a in handle_one_connection (arg=0x560554156080) at /data/src/10.2/sql/sql_connect.cc:1241
      #17 0x000056055224af12 in pfs_spawn_thread (arg=0x5605540a2d90) at /data/src/10.2/storage/perfschema/pfs.cc:1869
      #18 0x00007f54c66a54a4 in start_thread (arg=0x7f54bea51700) at pthread_create.c:456
      #19 0x00007f54c47d9d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
      

        Attachments

          Activity

            People

            Assignee:
            bar Alexander Barkov
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.