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

Assertion `desync_count_ > 0' failed in void wsrep::server_state::resync(wsrep::unique_lock<wsrep::mutex>&)

    XMLWordPrintable

Details

    Description

      # mysqld options required for replay: --wsrep-ignore-apply-errors=0
      USE test;
      CREATE TABLE t1 ENGINE=MEMORY AS SELECT REPEAT ('a', 5) AS s1 LIMIT 0;
      SET collation_connection='utf8_general_ci';
      CREATE TABLE t1 (a CHAR(1)) DEFAULT CHARACTER SET utf8mb4;
      SELECT 1;
      EXPLAIN SELECT 1;
      SELECT length (DATA) AS len FROM (SELECT RPAD (_utf8 0xD0B1, 65535, _utf8 0xD0B2) AS DATA) AS sub;
      SELECT length (DATA) AS len FROM (SELECT RPAD (_utf8 0xD0B1, 65535, _utf8 0xD0B2) AS DATA) AS sub;
      SELECT length (DATA) AS len FROM (SELECT RPAD (_utf8 0xD0B1, 65535, _utf8 0xD0B2) AS DATA) AS sub;
      SELECT 1;
      EXPLAIN SELECT * FROM t1 WHERE a NOT IN (SELECT s1 FROM t1);
      EXPLAIN SELECT * FROM t1 WHERE a NOT IN (SELECT s1 FROM t1);
      EXPLAIN SELECT * FROM t1 WHERE a NOT IN (SELECT s1 FROM t1);
      EXPLAIN SELECT * FROM t1 WHERE a NOT IN (SELECT s1 FROM t1);
      BACKUP STAGE START;
      BACKUP STAGE block_commit;
      

      Leads to:

      10.8.0 897d8c57b68858a58eea6cda4d971c3a94f6cc4a (Debug)

      mysqld: /test/10.8_dbg/wsrep-lib/src/server_state.cpp:1336: void wsrep::server_state::resync(wsrep::unique_lock<wsrep::mutex>&): Assertion `desync_count_ > 0' failed.
      

      10.8.0 897d8c57b68858a58eea6cda4d971c3a94f6cc4a (Debug)

      Core was generated by `/test/GAL_MD011221-mariadb-10.8.0-linux-x86_64-dbg/bin/mysqld --defaults-file=/'.
      Program terminated with signal SIGABRT, Aborted.
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6)
          at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      [Current thread is 1 (Thread 0x14989c08c700 (LWP 3758853))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x000056166d17ea9b in my_write_core (sig=sig@entry=6) at /test/10.8_dbg/mysys/stacktrace.c:424
      #2  0x000056166c95b4a5 in handle_fatal_signal (sig=6) at /test/10.8_dbg/sql/signal_handler.cc:345
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #5  0x00001498a04ba859 in __GI_abort () at abort.c:79
      #6  0x00001498a04ba729 in __assert_fail_base (fmt=0x1498a0650588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x56166d8c2fce "desync_count_ > 0", file=0x56166d8c3460 "/test/10.8_dbg/wsrep-lib/src/server_state.cpp", line=1336, function=<optimized out>) at assert.c:92
      #7  0x00001498a04cbf36 in __GI___assert_fail (assertion=assertion@entry=0x56166d8c2fce "desync_count_ > 0", file=file@entry=0x56166d8c3460 "/test/10.8_dbg/wsrep-lib/src/server_state.cpp", line=line@entry=1336, function=function@entry=0x56166d8c3490 "void wsrep::server_state::resync(wsrep::unique_lock<wsrep::mutex>&)") at assert.c:101
      #8  0x000056166d2cf286 in wsrep::server_state::resync (this=this@entry=0x56166f358290, lock=@0x14989c08aa70: {_M_device = 0x56166f358590, _M_owns = true}) at /test/10.8_dbg/wsrep-lib/src/server_state.cpp:1340
      #9  0x000056166d2d19d3 in wsrep::server_state::resync (this=0x56166f358290) at /test/10.8_dbg/wsrep-lib/include/wsrep/server_state.hpp:459
      #10 wsrep::server_state::desync_and_pause (this=0x56166f358290) at /test/10.8_dbg/wsrep-lib/src/server_state.cpp:618
      #11 0x000056166c8bfa40 in backup_block_ddl (thd=0x149830000958) at /test/10.8_dbg/sql/backup.cc:294
      #12 run_backup_stage (thd=thd@entry=0x149830000958, stage=BACKUP_LOCK_COMMIT) at /test/10.8_dbg/sql/backup.cc:121
      #13 0x000056166c660d3b in mysql_execute_command (thd=thd@entry=0x149830000958, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.8_dbg/sql/sql_parse.cc:5142
      #14 0x000056166c649d97 in mysql_parse (thd=thd@entry=0x149830000958, rawbuf=rawbuf@entry=0x149830012900 "BACKUP STAGE block_commit", length=length@entry=25, parser_state=parser_state@entry=0x14989c08b400) at /test/10.8_dbg/sql/sql_parse.cc:8028
      #15 0x000056166c64971d in wsrep_mysql_parse (thd=thd@entry=0x149830000958, rawbuf=0x149830012900 "BACKUP STAGE block_commit", length=25, parser_state=parser_state@entry=0x14989c08b400) at /test/10.8_dbg/sql/sql_parse.cc:7841
      #16 0x000056166c658b1c in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x149830000958, packet=packet@entry=0x149830007d79 "BACKUP STAGE block_commit", packet_length=packet_length@entry=25, blocking=blocking@entry=true) at /test/10.8_dbg/sql/sql_class.h:1360
      #17 0x000056166c65bf4b in do_command (thd=0x149830000958, blocking=blocking@entry=true) at /test/10.8_dbg/sql/sql_parse.cc:1402
      #18 0x000056166c7d6cc5 in do_handle_one_connection (connect=<optimized out>, connect@entry=0x56166faa6808, put_in_cache=put_in_cache@entry=true) at /test/10.8_dbg/sql/sql_connect.cc:1418
      #19 0x000056166c7d72cd in handle_one_connection (arg=arg@entry=0x56166faa6808) at /test/10.8_dbg/sql/sql_connect.cc:1312
      #20 0x000056166cc5af65 in pfs_spawn_thread (arg=0x56166f3b6c98) at /test/10.8_dbg/storage/perfschema/pfs.cc:2201
      #21 0x00001498a09c8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #22 0x00001498a05b7293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.5.13 (dbg), 10.6.5 (dbg), 10.8.0 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.2.41 (opt), 10.2.41 (dbg), 10.3.32 (opt), 10.3.32 (dbg), 10.4.22 (dbg), 10.4.22 (opt), 10.5.13 (opt), 10.6.5 (opt), 10.7.1 (opt), 10.7.1 (dbg), 10.8.0 (opt)

      Attachments

        Activity

          People

            janlindstrom Jan Lindström
            ramesh Ramesh Sivaraman
            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.