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

Assertion `state() == s_executing || state() == s_preparing || state() == s_prepared || state() == s_must_abort || state() == s_aborting || state() == s_cert_failed || state() == s_must_replay' failed

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.4(EOL), 10.5, 10.6
    • N/A
    • Galera
    • None

    Description

      Testcase

      perl runall-new.pl \
         --basedir=/test/mtest/MDEV-29684/10.6/mariadb-10.6.12-linux-x86_64 \
         --vardir=/home/ramesh/galera-rqg-test \
         --mysqld=--wsrep-provider=/test/mtest/MDEV-29684/10.6/mariadb-10.6.12-linux-x86_64/lib/libgalera_smm.so \
         --gendata=conf/transactions/transactions.zz \
         --grammar=conf/transactions/transactions-bkp.yy \
         --threads=16 \
         --galera=mms \
         --mysqld=--wsrep_sst_method=rsync \
         --mysqld=--core \
         --mysqld=--general-log \
         --mysqld=--general-log-file=queries.log \
         --mysqld=--log-output=file \
         --mysqld=--wsrep-debug=0 \
         --mysqld=--wsrep-sync-wait=15 \
         --mysqld=--wsrep_retry_autocommit=0 \
         --mysqld=--wsrep_slave_threads=12 \
         --mysqld=--wsrep_log_conflicts=1 \
         --mysqld=--wsrep_on=1 \
         --mysqld=--default-storage-engine=innodb \
         --mysqld=--sort_buffer_size=200M \
         --mysqld=--innodb-lock-wait-timeout=1 \
         --mysqld=--gtid_domain_id=10 \
         --mysqld=--wsrep_gtid_domain_id=100 \
         --mysqld=--wsrep_gtid_mode=ON \
         --mysqld=--wsrep_slave_threads=4 \
         --mysqld=--slave_parallel_threads=4 \
         --mysqld=--server_id=11 \
         --mysqld=--gtid_strict_mode=1 \
         --mysqld=--log_slave_updates=ON \
         --mysqld=--log_bin=binlog \
         --mysqld=--binlog_format=ROW \
         --mysqld=--master_info_repository=TABLE \
         --mysqld=--relay_log_info_repository=TABLE 
         
      

      Leads to

      #0  __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x0000556371aa433f in my_write_core (sig=6) at /test/mtest/MDEV-29684/10.6/mysys/stacktrace.c:424
      #2  0x00005563711c42d9 in handle_fatal_signal (sig=6) at /test/mtest/MDEV-29684/10.6/sql/signal_handler.cc:355
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #5  0x000014f5e2382859 in __GI_abort () at abort.c:79
      #6  0x000014f5e2382729 in __assert_fail_base (fmt=0x14f5e2518588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", 
          assertion=0x556372173c20 "state() == s_executing || state() == s_preparing || state() == s_prepared || state() == s_must_abort || state() == s_aborting || state() == s_cert_failed || state() == s_must_replay", file=0x556372172ed8 "/test/mtest/MDEV-29684/10.6/wsrep-lib/src/transaction.cpp", line=661, function=<optimized out>) at assert.c:92
      #7  0x000014f5e2393fd6 in __GI___assert_fail (
          assertion=0x556372173c20 "state() == s_executing || state() == s_preparing || state() == s_prepared || state() == s_must_abort || state() == s_aborting || state() == s_cert_failed || state() == s_must_replay", file=0x556372172ed8 "/test/mtest/MDEV-29684/10.6/wsrep-lib/src/transaction.cpp", line=661, function=0x556372173bf0 "int wsrep::transaction::before_rollback()") at assert.c:101
      #8  0x0000556371b6273b in wsrep::transaction::before_rollback (this=0x14f4300075b0) at /test/mtest/MDEV-29684/10.6/wsrep-lib/src/transaction.cpp:661
      #9  0x00005563711e33c7 in wsrep::client_state::before_rollback (this=0x14f430007548) at /test/mtest/MDEV-29684/10.6/wsrep-lib/include/wsrep/client_state.hpp:526
      #10 0x00005563711c6768 in wsrep_before_rollback (thd=0x14f430000db8, all=false) at /test/mtest/MDEV-29684/10.6/sql/wsrep_trans_observer.h:402
      #11 0x00005563711cb8ea in ha_rollback_trans (thd=0x14f430000db8, all=false) at /test/mtest/MDEV-29684/10.6/sql/handler.cc:2187
      #12 0x00005563711caf38 in ha_commit_trans (thd=0x14f430000db8, all=false) at /test/mtest/MDEV-29684/10.6/sql/handler.cc:1966
      #13 0x0000556370ffc7b7 in trans_commit_stmt (thd=0x14f430000db8) at /test/mtest/MDEV-29684/10.6/sql/transaction.cc:472
      #14 0x0000556370e2d111 in mysql_execute_command (thd=0x14f430000db8, is_called_from_prepared_stmt=false) at /test/mtest/MDEV-29684/10.6/sql/sql_parse.cc:6060
      #15 0x0000556370e32bac in mysql_parse (thd=0x14f430000db8, 
          rawbuf=0x14f4300141a0 "INSERT INTO `table20_int_autoinc` ( `pk`, `col_int_key`, `col_int`) VALUES ( NULL, 100, 100 ), ( NULL, 100, 100 )  /* QNO 443 CON_ID 26 */", length=138, parser_state=0x14f58094d320)
          at /test/mtest/MDEV-29684/10.6/sql/sql_parse.cc:8019
      #16 0x0000556370e322a9 in wsrep_mysql_parse (thd=0x14f430000db8, 
          rawbuf=0x14f4300141a0 "INSERT INTO `table20_int_autoinc` ( `pk`, `col_int_key`, `col_int`) VALUES ( NULL, 100, 100 ), ( NULL, 100, 100 )  /* QNO 443 CON_ID 26 */", length=138, parser_state=0x14f58094d320)
          at /test/mtest/MDEV-29684/10.6/sql/sql_parse.cc:7831
      #17 0x0000556370e1ef38 in dispatch_command (command=COM_QUERY, thd=0x14f430000db8, 
          packet=0x14f43000b8c9 " INSERT INTO `table20_int_autoinc` ( `pk`, `col_int_key`, `col_int`) VALUES ( NULL, 100, 100 ), ( NULL, 100, 100 )  /* QNO 443 CON_ID 26 */ ", packet_length=140, blocking=true)
          at /test/mtest/MDEV-29684/10.6/sql/sql_parse.cc:1883
      #18 0x0000556370e1d9e6 in do_command (thd=0x14f430000db8, blocking=true) at /test/mtest/MDEV-29684/10.6/sql/sql_parse.cc:1409
      #19 0x0000556370fdfaef in do_handle_one_connection (connect=0x5563746820c8, put_in_cache=true) at /test/mtest/MDEV-29684/10.6/sql/sql_connect.cc:1416
      #20 0x0000556370fdf84b in handle_one_connection (arg=0x5563746820c8) at /test/mtest/MDEV-29684/10.6/sql/sql_connect.cc:1318
      #21 0x000055637151510b in pfs_spawn_thread (arg=0x5563740c4cb8) at /test/mtest/MDEV-29684/10.6/storage/perfschema/pfs.cc:2201
      #22 0x000014f5e28ae609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #23 0x000014f5e247f133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Attachments

        1. bt_all.txt
          112 kB
        2. node1.err
          3.14 MB
        3. transactions.zz
          0.9 kB
        4. transactions-bkp.yy
          4 kB

        Issue Links

          Activity

            People

              janlindstrom Jan Lindström
              ramesh Ramesh Sivaraman
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.