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

rpl.rpl_semi_sync_slave_compressed_protocol crashes because of wrong packet

Details

    Description

      mtr rpl.rpl_semi_sync_slave_compressed_protocol crashes

      #7  0x00007f46a16c2b92 in __GI___assert_fail (assertion=0x1afa0cb "0", file=0x1af9e38 "/my/maria-10.6/sql/net_serv.cc", line=1202, function=0x1afa460 <my_real_read(st_net*, unsigned long*, char)::__PRETTY_FUNCTION__> "ulong my_real_read(NET*, size_t*, my_bool)") at assert.c:101
      #8  0x0000000000e08d38 in my_real_read (net=0x7f465800c0c8, complen=0x7f4698331ab8, header=0 '\000') at /my/maria-10.6/sql/net_serv.cc:1202
      #9  0x0000000000e0913c in my_net_read_packet_reallen (net=0x7f465800c0c8, read_from_server=0 '\000', reallen=0x7f4698331c68) at /my/maria-10.6/sql/net_serv.cc:1379
      #10 0x0000000000c2ed15 in cli_safe_read_reallen (mysql=0x7f465800c0c8, reallen=0x7f4698331c68) at /my/maria-10.6/sql-common/client.c:383
      #11 0x00000000007f8c9a in read_event (mysql=0x7f465800c0c8, mi=0x4bafcc0, suppress_warnings=0x7f4698331cab, network_read_len=0x7f4698331c68) at /my/maria-10.6/sql/slave.cc:3656
      #12 0x00000000007fba8c in handle_slave_io (arg=0x4bafcc0) at /my/maria-10.6/sql/slave.cc:4824
      

      The code is:

          DBUG_PRINT("error",
                     ("Packets out of order (Found: %d, expected %u)",
                      (int) net->buff[net->where_b + 3],
                      net->pkt_nr));
          EXTRA_DEBUG_ASSERT(0);
      

      You need to have a debug server with -DEXTRA_DEBUG to get crash. Alternatively compile with:
      ./BUILD/compile-pentium64-valgrind-max

      This crash happened after the last merge to 10.6, around last Friday, has not happened before that.
      I did verify that all versions starting with 10.3 are affected. I did not test 10.2, so I don't know if this is affected

      Attachments

        Activity

          monty Michael Widenius created issue -
          monty Michael Widenius made changes -
          Field Original Value New Value
          Affects Version/s 10.3 [ 22126 ]
          sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
          Assignee Andrei Elkin [ elkin ] Sujatha Sivakumar [ sujatha.sivakumar ]
          serg Sergei Golubchik made changes -
          Description mtr rpl.rpl_semi_sync_slave_compressed_protocol crashes

          #7 0x00007f46a16c2b92 in __GI___assert_fail (assertion=0x1afa0cb "0", file=0x1af9e38 "/my/maria-10.6/sql/net_serv.cc", line=1202, function=0x1afa460 <my_real_read(st_net*, unsigned long*, char)::__PRETTY_FUNCTION__> "ulong my_real_read(NET*, size_t*, my_bool)") at assert.c:101
          #8 0x0000000000e08d38 in my_real_read (net=0x7f465800c0c8, complen=0x7f4698331ab8, header=0 '\000') at /my/maria-10.6/sql/net_serv.cc:1202
          #9 0x0000000000e0913c in my_net_read_packet_reallen (net=0x7f465800c0c8, read_from_server=0 '\000', reallen=0x7f4698331c68) at /my/maria-10.6/sql/net_serv.cc:1379
          #10 0x0000000000c2ed15 in cli_safe_read_reallen (mysql=0x7f465800c0c8, reallen=0x7f4698331c68) at /my/maria-10.6/sql-common/client.c:383
          #11 0x00000000007f8c9a in read_event (mysql=0x7f465800c0c8, mi=0x4bafcc0, suppress_warnings=0x7f4698331cab, network_read_len=0x7f4698331c68) at /my/maria-10.6/sql/slave.cc:3656
          #12 0x00000000007fba8c in handle_slave_io (arg=0x4bafcc0) at /my/maria-10.6/sql/slave.cc:4824

          The code is:

              DBUG_PRINT("error",
                         ("Packets out of order (Found: %d, expected %u)",
                          (int) net->buff[net->where_b + 3],
                          net->pkt_nr));
              EXTRA_DEBUG_ASSERT(0);

          You need to have a debug server with -DEXTRA_DEBUG to get crash. Alternatively compile with:
          ./BUILD/compile-pentium64-valgrind-max

          This crash happened after the last merge to 10.6, around last Friday, has not happened before that.
          mtr rpl.rpl_semi_sync_slave_compressed_protocol crashes
          {noformat}
          #7 0x00007f46a16c2b92 in __GI___assert_fail (assertion=0x1afa0cb "0", file=0x1af9e38 "/my/maria-10.6/sql/net_serv.cc", line=1202, function=0x1afa460 <my_real_read(st_net*, unsigned long*, char)::__PRETTY_FUNCTION__> "ulong my_real_read(NET*, size_t*, my_bool)") at assert.c:101
          #8 0x0000000000e08d38 in my_real_read (net=0x7f465800c0c8, complen=0x7f4698331ab8, header=0 '\000') at /my/maria-10.6/sql/net_serv.cc:1202
          #9 0x0000000000e0913c in my_net_read_packet_reallen (net=0x7f465800c0c8, read_from_server=0 '\000', reallen=0x7f4698331c68) at /my/maria-10.6/sql/net_serv.cc:1379
          #10 0x0000000000c2ed15 in cli_safe_read_reallen (mysql=0x7f465800c0c8, reallen=0x7f4698331c68) at /my/maria-10.6/sql-common/client.c:383
          #11 0x00000000007f8c9a in read_event (mysql=0x7f465800c0c8, mi=0x4bafcc0, suppress_warnings=0x7f4698331cab, network_read_len=0x7f4698331c68) at /my/maria-10.6/sql/slave.cc:3656
          #12 0x00000000007fba8c in handle_slave_io (arg=0x4bafcc0) at /my/maria-10.6/sql/slave.cc:4824
          {noformat}
          The code is:
          {code:c++}
              DBUG_PRINT("error",
                         ("Packets out of order (Found: %d, expected %u)",
                          (int) net->buff[net->where_b + 3],
                          net->pkt_nr));
              EXTRA_DEBUG_ASSERT(0);
          {code}
          You need to have a debug server with -DEXTRA_DEBUG to get crash. Alternatively compile with:
          ./BUILD/compile-pentium64-valgrind-max

          This crash happened after the last merge to 10.6, around last Friday, has not happened before that.
          serg Sergei Golubchik made changes -
          Fix Version/s 10.5 [ 23123 ]
          monty Michael Widenius made changes -
          Description mtr rpl.rpl_semi_sync_slave_compressed_protocol crashes
          {noformat}
          #7 0x00007f46a16c2b92 in __GI___assert_fail (assertion=0x1afa0cb "0", file=0x1af9e38 "/my/maria-10.6/sql/net_serv.cc", line=1202, function=0x1afa460 <my_real_read(st_net*, unsigned long*, char)::__PRETTY_FUNCTION__> "ulong my_real_read(NET*, size_t*, my_bool)") at assert.c:101
          #8 0x0000000000e08d38 in my_real_read (net=0x7f465800c0c8, complen=0x7f4698331ab8, header=0 '\000') at /my/maria-10.6/sql/net_serv.cc:1202
          #9 0x0000000000e0913c in my_net_read_packet_reallen (net=0x7f465800c0c8, read_from_server=0 '\000', reallen=0x7f4698331c68) at /my/maria-10.6/sql/net_serv.cc:1379
          #10 0x0000000000c2ed15 in cli_safe_read_reallen (mysql=0x7f465800c0c8, reallen=0x7f4698331c68) at /my/maria-10.6/sql-common/client.c:383
          #11 0x00000000007f8c9a in read_event (mysql=0x7f465800c0c8, mi=0x4bafcc0, suppress_warnings=0x7f4698331cab, network_read_len=0x7f4698331c68) at /my/maria-10.6/sql/slave.cc:3656
          #12 0x00000000007fba8c in handle_slave_io (arg=0x4bafcc0) at /my/maria-10.6/sql/slave.cc:4824
          {noformat}
          The code is:
          {code:c++}
              DBUG_PRINT("error",
                         ("Packets out of order (Found: %d, expected %u)",
                          (int) net->buff[net->where_b + 3],
                          net->pkt_nr));
              EXTRA_DEBUG_ASSERT(0);
          {code}
          You need to have a debug server with -DEXTRA_DEBUG to get crash. Alternatively compile with:
          ./BUILD/compile-pentium64-valgrind-max

          This crash happened after the last merge to 10.6, around last Friday, has not happened before that.
          mtr rpl.rpl_semi_sync_slave_compressed_protocol crashes
          {noformat}
          #7 0x00007f46a16c2b92 in __GI___assert_fail (assertion=0x1afa0cb "0", file=0x1af9e38 "/my/maria-10.6/sql/net_serv.cc", line=1202, function=0x1afa460 <my_real_read(st_net*, unsigned long*, char)::__PRETTY_FUNCTION__> "ulong my_real_read(NET*, size_t*, my_bool)") at assert.c:101
          #8 0x0000000000e08d38 in my_real_read (net=0x7f465800c0c8, complen=0x7f4698331ab8, header=0 '\000') at /my/maria-10.6/sql/net_serv.cc:1202
          #9 0x0000000000e0913c in my_net_read_packet_reallen (net=0x7f465800c0c8, read_from_server=0 '\000', reallen=0x7f4698331c68) at /my/maria-10.6/sql/net_serv.cc:1379
          #10 0x0000000000c2ed15 in cli_safe_read_reallen (mysql=0x7f465800c0c8, reallen=0x7f4698331c68) at /my/maria-10.6/sql-common/client.c:383
          #11 0x00000000007f8c9a in read_event (mysql=0x7f465800c0c8, mi=0x4bafcc0, suppress_warnings=0x7f4698331cab, network_read_len=0x7f4698331c68) at /my/maria-10.6/sql/slave.cc:3656
          #12 0x00000000007fba8c in handle_slave_io (arg=0x4bafcc0) at /my/maria-10.6/sql/slave.cc:4824
          {noformat}
          The code is:
          {code:c++}
              DBUG_PRINT("error",
                         ("Packets out of order (Found: %d, expected %u)",
                          (int) net->buff[net->where_b + 3],
                          net->pkt_nr));
              EXTRA_DEBUG_ASSERT(0);
          {code}
          You need to have a debug server with -DEXTRA_DEBUG to get crash. Alternatively compile with:
          ./BUILD/compile-pentium64-valgrind-max

          This crash happened after the last merge to 10.6, around last Friday, has not happened before that.
          I did verify that all versions starting with 10.3 are affected. I did not test 10.2, so I don't know if this is affected
          monty Michael Widenius made changes -
          Fix Version/s 10.3 [ 22126 ]
          sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
          Priority Blocker [ 1 ] Critical [ 2 ]
          sujatha.sivakumar Sujatha Sivakumar (Inactive) made changes -
          Assignee Sujatha Sivakumar [ sujatha.sivakumar ] Andrei Elkin [ elkin ]
          Elkin Andrei Elkin made changes -
          Assignee Andrei Elkin [ elkin ] Brandon Nesterenko [ JIRAUSER48702 ]
          bnestere Brandon Nesterenko made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          bnestere Brandon Nesterenko made changes -
          Assignee Brandon Nesterenko [ JIRAUSER48702 ] Andrei Elkin [ elkin ]
          Status In Progress [ 3 ] In Review [ 10002 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 121581 ] MariaDB v4 [ 143790 ]
          Elkin Andrei Elkin made changes -
          Status In Review [ 10002 ] Stalled [ 10000 ]
          Elkin Andrei Elkin made changes -
          Assignee Andrei Elkin [ elkin ] Brandon Nesterenko [ JIRAUSER48702 ]
          bnestere Brandon Nesterenko made changes -
          Status Stalled [ 10000 ] In Progress [ 3 ]
          bnestere Brandon Nesterenko made changes -
          issue.field.resolutiondate 2022-04-01 02:01:44.0 2022-04-01 02:01:44.516
          bnestere Brandon Nesterenko made changes -
          Fix Version/s 10.3.35 [ 27512 ]
          Fix Version/s 10.4.25 [ 27510 ]
          Fix Version/s 10.5.16 [ 27508 ]
          Fix Version/s 10.6.8 [ 27506 ]
          Fix Version/s 10.7.4 [ 27504 ]
          Fix Version/s 10.8.3 [ 27502 ]
          Fix Version/s 10.3 [ 22126 ]
          Fix Version/s 10.4 [ 22408 ]
          Fix Version/s 10.5 [ 23123 ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]

          People

            bnestere Brandon Nesterenko
            monty Michael Widenius
            Votes:
            0 Vote for this issue
            Watchers:
            6 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.