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

Assertion `total == 0' failed in Event_log::write_cache_raw

    XMLWordPrintable

Details

    Description

      bb-11.2-release c028e25cc1aea78c1cb8c7c7263dc121f8cacb9e with patch for MDEV-32771

      (rr) bt
      #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #1  0x000014902e71e859 in __GI_abort () at abort.c:79
      #2  0x000014902e71e729 in __assert_fail_base (fmt=0x14902e8b4588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5607009a5850 "total == 0", 
          file=0x5607009a2130 "/data/for_nikita/bb-11.2-release-patched/sql/log.cc", line=7411, function=<optimized out>) at assert.c:92
      #3  0x000014902e72ffd6 in __GI___assert_fail (assertion=0x5607009a5850 "total == 0", file=0x5607009a2130 "/data/for_nikita/bb-11.2-release-patched/sql/log.cc", line=7411, 
          function=0x5607009a5820 "int Event_log::write_cache_raw(THD*, IO_CACHE*)") at assert.c:101
      #4  0x00005606ffed8f98 in Event_log::write_cache_raw (this=0x6a338036a8c0, thd=0x56cf80000d48, cache=0x55c704364c20) at /data/for_nikita/bb-11.2-release-patched/sql/log.cc:7411
      #5  0x00005606fff66dac in online_alter_end_trans (cache_list=..., thd=0x56cf80000d48, is_ending_transaction=false, commit=false) at /data/for_nikita/bb-11.2-release-patched/sql/online_alter.cc:238
      #6  0x00005606fff67330 in online_alter_rollback (hton=0x560702e43538, thd=0x56cf80000d48, all=false) at /data/for_nikita/bb-11.2-release-patched/sql/online_alter.cc:344
      #7  0x00005606ffd7b72a in ha_rollback_trans (thd=0x56cf80000d48, all=false) at /data/for_nikita/bb-11.2-release-patched/sql/handler.cc:2264
      #8  0x00005606ffb90034 in trans_rollback_stmt (thd=0x56cf80000d48) at /data/for_nikita/bb-11.2-release-patched/sql/transaction.cc:535
      #9  0x00005606ff9b5b53 in mysql_execute_command (thd=0x56cf80000d48, is_called_from_prepared_stmt=false) at /data/for_nikita/bb-11.2-release-patched/sql/sql_parse.cc:5856
      #10 0x00005606ff9bafb9 in mysql_parse (thd=0x56cf80000d48, rawbuf=0x56cf80013360 "/* WRK-6 QNO 20404 */  LOAD DATA INFILE '/tmp/gentest3386729.tmp' INTO TABLE `dbt3_db`.`r`", length=90, 
          parser_state=0x6f9530c1e340) at /data/for_nikita/bb-11.2-release-patched/sql/sql_parse.cc:7808
      #11 0x00005606ff9a8f2a in dispatch_command (command=COM_QUERY, thd=0x56cf80000d48, packet=0x56cf8000aff9 "/* WRK-6 QNO 20404 */  LOAD DATA INFILE '/tmp/gentest3386729.tmp' INTO TABLE `dbt3_db`.`r`", 
          packet_length=90, blocking=true) at /data/for_nikita/bb-11.2-release-patched/sql/sql_parse.cc:1893
      #12 0x00005606ff9a7b27 in do_command (thd=0x56cf80000d48, blocking=true) at /data/for_nikita/bb-11.2-release-patched/sql/sql_parse.cc:1406
      #13 0x00005606ffb7491f in do_handle_one_connection (connect=0x5607034a48c8, put_in_cache=true) at /data/for_nikita/bb-11.2-release-patched/sql/sql_connect.cc:1418
      #14 0x00005606ffb746ab in handle_one_connection (arg=0x5607034a48c8) at /data/for_nikita/bb-11.2-release-patched/sql/sql_connect.cc:1320
      #15 0x0000421662844609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #16 0x000014902e81b133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      The failure happens with and without the patch for MDEV-32771, but its probability (low as it is in the tests) is much lower without the patch, because usually MDEV-32771 happens sooner.

      I don't have any good way to reproduce it so far, the random test which triggers it had to be run dozens times without rr and hundreds times with rr.

      Attachments

        Activity

          People

            nikitamalyavin Nikita Malyavin
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            5 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.