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

Assertion `0' failed in Protocol::end_statement() upon KILL_SERVER

    XMLWordPrintable

Details

    Description

      10.2 1ad79c81

      2019-09-23  1:50:18 139912696772352 [Note] /data/bld/10.2-debug-nightly/bin/mysqld (initiated by: root[root] @ localhost [127.0.0.1]): Normal shutdown
      mysqld: /data/src/10.2/sql/protocol.cc:598: void Protocol::end_statement(): Assertion `0' failed.
      190923  1:50:18 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f400e189f12 in __GI___assert_fail (assertion=0x562ca44fc020 "0", file=0x562ca44fbdc0 "/data/src/10.2/sql/protocol.cc", line=598, function=0x562ca44fc870 <Protocol::end_statement()::__PRETTY_FUNCTION__> "void Protocol::end_statement()") at assert.c:101
      #8  0x0000562ca39b668c in Protocol::end_statement (this=0x7f3f7c0010b8) at /data/src/10.2/sql/protocol.cc:598
      #9  0x0000562ca3a7db1f in dispatch_command (command=COM_STMT_PREPARE, thd=0x7f3f7c000b00, packet=0x7f3f7c0087c1 "CREATE TABLE `D` LIKE `t9` /* QNO 19406 CON_ID 19 */ ", packet_length=53, is_com_multi=false, is_next_command=false) at /data/src/10.2/sql/sql_parse.cc:2388
      #10 0x0000562ca3a7a9c1 in do_command (thd=0x7f3f7c000b00) at /data/src/10.2/sql/sql_parse.cc:1384
      #11 0x0000562ca3bcfb83 in do_handle_one_connection (connect=0x562ca6a32c80) at /data/src/10.2/sql/sql_connect.cc:1336
      #12 0x0000562ca3bcf8ee in handle_one_connection (arg=0x562ca6a32c80) at /data/src/10.2/sql/sql_connect.cc:1241
      #13 0x00007f400fcfe4a4 in start_thread (arg=0x7f3ff69be700) at pthread_create.c:456
      #14 0x00007f400e246d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
       
      Trying to get some variables.
      Some pointers may be invalid and cause the dump to abort.
      Query (0x0): 
      Connection ID (thread ID): 19
      Status: KILL_SERVER
      

      To reproduce:

      git clone https://github.com/MariaDB/randgen --branch mdev17539 rqg-mdev17539
      cd rqg-mdev17539
      perl ./runall-trials.pl --trials=10 --output='Protocol::end_statement' --grammar=mdev17539.yy --scenario=Restart --ps-protocol --threads=6 --duration=200 --gendata-advanced --vardir=/dev/shm/vardir --basedir=/data/bld/10.2
      

      Remember to use your own basedir.
      Reproducing might take a while. Currently the failure always happens for me within 10 attempts (as configured in the command line), but it can vary on different machines and builds. Increase the trials number if necessary.
      Couldn't reproduce on 10.4.

      Attachments

        Activity

          People

            shulga Dmitry Shulga
            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.