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

SIGSEGV in wsrep_register_hton

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.3, 10.4
    • 10.4
    • None

    Description

      Testcase

      /test/GAL_MD150321-mariadb-10.3.29-linux-x86_64-opt/scripts/mysql_install_db --no-defaults --force --basedir=/test/GAL_MD150321-mariadb-10.3.29-linux-x86_64-opt --datadir=/test/framework/node1 > /test/framework/log/startup1.log 2>&1
      /test/GAL_MD150321-mariadb-10.3.29-linux-x86_64-opt/scripts/mysql_install_db --no-defaults --force --basedir=/test/GAL_MD150321-mariadb-10.3.29-linux-x86_64-opt --datadir=/test/framework/node2 > /test/framework/log/startup2.log 2>&1
      /test/GAL_MD150321-mariadb-10.3.29-linux-x86_64-opt/scripts/mysql_install_db --no-defaults --force --basedir=/test/GAL_MD150321-mariadb-10.3.29-linux-x86_64-opt --datadir=/test/framework/node3 > /test/framework/log/startup3.log 2>&1
      /test/GAL_MD150321-mariadb-10.3.29-linux-x86_64-opt/bin/mysqld --defaults-file=/test/framework/conf/node1.cnf  --wsrep-new-cluster > /test/framework/node1/node1.err 2>&1 &
      /test/GAL_MD150321-mariadb-10.3.29-linux-x86_64-opt/bin/mysqld --defaults-file=/test/framework/conf/node2.cnf  > /test/framework/node2/node2.err 2>&1 &
      /test/GAL_MD150321-mariadb-10.3.29-linux-x86_64-opt/bin/mysqld --defaults-file=/test/framework/conf/node3.cnf  > /test/framework/node3/node3.err 2>&1 &
      /test/GAL_MD150321-mariadb-10.3.29-linux-x86_64-opt/bin/mysql --user=root --socket=/test/framework/node1/mysql.sock -e"drop database if exists test; create database test;" > /dev/null 2>&1
      /test/GAL_MD150321-mariadb-10.3.29-linux-x86_64-opt/bin/mysql --user=root --socket=/test/framework/node1/mysql.sock -e"create user if not exists sysbench@'localhost' identified  by 'sysbench';grant all on *.* to sysbench@'localhost';" > /dev/null 2>&1
      sysbench /usr/share/sysbench/oltp_insert.lua --table-size=1000 --tables=10 --threads=10 --mysql-db=test  --mysql-user=sysbench --mysql-password=sysbench --db-driver=mysql  --mysql-socket=/test/framework/node1/mysql.sock prepare >/test/framework/log/sysbench_prepare.log
      sysbench /usr/share/sysbench/oltp_read_write.lua --table-size=1000 --tables=10 --threads=10 --mysql-db=test  --mysql-user=sysbench --mysql-password=sysbench --db-driver=mysql  --mysql-socket=/test/framework/node1/mysql.sock --time=1000 --db-ps-mode=disable run > /test/framework/log/sysbench_read_write_10.log &
      sysbench /usr/share/sysbench/oltp_read_write.lua --table-size=1000 --tables=10 --threads=10 --mysql-db=test  --mysql-user=sysbench --mysql-password=sysbench --db-driver=mysql  --mysql-socket=/test/framework/node2/mysql.sock --time=1000 --db-ps-mode=disable run > /test/framework/log/sysbench_read_write_10.log &
      sysbench /usr/share/sysbench/oltp_read_write.lua --table-size=1000 --tables=10 --threads=10 --mysql-db=test  --mysql-user=sysbench --mysql-password=sysbench --db-driver=mysql  --mysql-socket=/test/framework/node3/mysql.sock --time=1000 --db-ps-mode=disable run > /test/framework/log/sysbench_read_write_10.log &
      Terminating sysbench run on node3 : 
      kill -9 2310828 > /dev/null 2>&1
      Shutdown cluster node3 for upgrade testing 
      /test/GAL_MD150321-mariadb-10.3.29-linux-x86_64-opt/bin/mysqladmin --user=root --socket=/test/framework/node3/mysql.sock shutdown > /dev/null 2>&1
      /test/GAL_MD150321-mariadb-10.3.29-linux-x86_64-opt/bin/mysql --user=root --socket=/test/framework/node1/mysql.sock -e"drop database if exists test_one; create database test_one;" > /dev/null 2>&1
       
      Node1 or Node2 will crash while creating test_one schema.
      

      10.3.29 eb7c5530eccb7d6782077e5562f5a471d2ccbc01 (Optimized)

      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=11) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x00005574d68b8c4f in my_write_core (sig=sig@entry=11) at /test/10.3_opt/mysys/stacktrace.c:386
      #2  0x00005574d6354068 in handle_fatal_signal (sig=11) at /test/10.3_opt/sql/signal_handler.cc:343
      #3  <signal handler called>
      #4  0x00005574d62c3ae2 in wsrep_register_hton (thd=thd@entry=0x147290000c48, all=all@entry=true) at /test/10.3_opt/sql/handler.h:1841
      #5  0x00005574d625a6f5 in trans_rollback (thd=0x147290000c48) at /test/10.3_opt/sql/transaction.cc:404
      #6  trans_rollback (thd=thd@entry=0x147290000c48) at /test/10.3_opt/sql/transaction.cc:392
      #7  0x00005574d62d6f32 in wsrep_client_rollback (thd=thd@entry=0x147290000c48) at /test/10.3_opt/sql/wsrep_thd.cc:61
      #8  0x00005574d62d72eb in wsrep_rollback_process (thd=0x147310000c48) at /test/10.3_opt/sql/wsrep_thd.cc:678
      #9  0x00005574d62c7f0b in start_wsrep_THD (arg=0x5574d9807a78) at /test/10.3_opt/sql/wsrep_mysqld.cc:2158
      #10 0x0000147334c09609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #11 0x0000147334800293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Getting different assertion on 10.4 build (Slightly sporadic)

      10.4.19 1ea6ac3c953f847da033254d5df67f57987a1884 (Optimized)

      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x000055828d1435af in my_write_core (sig=sig@entry=6) at /test/10.4_opt/mysys/stacktrace.c:386
      #2  0x000055828cb4fcc8 in handle_fatal_signal (sig=6) at /test/10.4_opt/sql/signal_handler.cc:344
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #5  0x000015384258d859 in __GI_abort () at abort.c:79
      #6  0x000015384258d729 in __assert_fail_base (fmt=0x153842723588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
          assertion=0x55828d20dfd1 "state_ == s_exec", file=0x55828d20d040 "/test/10.4_opt/wsrep-lib/include/wsrep/client_state.hpp", line=320,
          function=<optimized out>) at assert.c:92
      #7  0x000015384259ef36 in __GI___assert_fail (assertion=assertion@entry=0x55828d20dfd1 "state_ == s_exec",
          file=file@entry=0x55828d20d040 "/test/10.4_opt/wsrep-lib/include/wsrep/client_state.hpp", line=line@entry=320,
          function=function@entry=0x55828d20e010 "int wsrep::client_state::start_transaction(const wsrep::transaction_id&)") at assert.c:101
      #8  0x000055828cacab55 in wsrep::client_state::start_transaction (id=..., this=0x153784006bd8)
          at /test/10.4_opt/wsrep-lib/include/wsrep/transaction_id.hpp:52
      #9  wsrep_start_transaction (trx_id=<optimized out>, thd=0x153784000c48) at /test/10.4_opt/sql/wsrep_trans_observer.h:138
      #10 wsrep_bf_abort (bf_thd=bf_thd@entry=0x153794000c48, victim_thd=victim_thd@entry=0x153784000c48) at /test/10.4_opt/sql/wsrep_thd.cc:352
      #11 0x000055828cad2c43 in wsrep_thd_bf_abort (bf_thd=bf_thd@entry=0x153794000c48, victim_thd=victim_thd@entry=0x153784000c48,
          signal=<optimized out>) at /test/10.4_opt/sql/service_wsrep.cc:215
      #12 0x000055828cd0f67e in bg_wsrep_kill_trx (void_arg=<optimized out>) at /test/10.4_opt/storage/innobase/handler/ha_innodb.cc:18691
      #13 0x000055828c91e19e in handle_manager (arg=<optimized out>) at /test/10.4_opt/sql/sql_manager.cc:112
      #14 0x0000153842b4a609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #15 0x000015384268a293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Attachments

        Activity

          People

            seppo Seppo Jaakola
            ramesh Ramesh Sivaraman
            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.