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

Assertion `m_thd == _current_thd()' failed in virtual int Wsrep_client_service::bf_rollback()

    XMLWordPrintable

Details

    Description

      XA START 'a';
      XA END 'a';
      XA PREPARE 'a';
      LOAD INDEX INTO cache t1 KEY(PRIMARY);
      

      10.6.0 219925919cd7b63b4a177755c55c13929bf6dfa8 (Debug)

      mysqld: /test/10.6_dbg/sql/wsrep_client_service.cc:439: virtual int Wsrep_client_service::bf_rollback(): Assertion `m_thd == _current_thd()' failed.
      

      10.6.0 219925919cd7b63b4a177755c55c13929bf6dfa8 (Debug)

      Core was generated by `/test/GAL_EMD230221-mariadb-10.6.0-0-linux-x86_64-dbg/bin/mysqld --defaults-fil'.
      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 0x14569482d700 (LWP 421596))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x0000555cffa44b95 in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
      #2  0x0000555cff18ff57 in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:330
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #5  0x00001456abbc7859 in __GI_abort () at abort.c:79
      #6  0x00001456abbc7729 in __assert_fail_base (fmt=0x1456abd5d588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x555cffddac9b "m_thd == _current_thd()", file=0x555cffddad40 "/test/10.6_dbg/sql/wsrep_client_service.cc", line=439, function=<optimized out>) at assert.c:92
      #7  0x00001456abbd8f36 in __GI___assert_fail (assertion=assertion@entry=0x555cffddac9b "m_thd == _current_thd()", file=file@entry=0x555cffddad40 "/test/10.6_dbg/sql/wsrep_client_service.cc", line=line@entry=439, function=function@entry=0x555cffddb088 "virtual int Wsrep_client_service::bf_rollback()") at assert.c:101
      #8  0x0000555cff545401 in Wsrep_client_service::bf_rollback (this=0x14561c041c78) at /test/10.6_dbg/sql/wsrep_client_service.cc:439
      #9  0x0000555cffb58ce7 in wsrep::client_state::close (this=0x14561c041c90) at /test/10.6_dbg/wsrep-lib/src/client_state.cpp:59
      #10 0x0000555cff548c27 in Wsrep_applier_service::~Wsrep_applier_service (this=0x555d01c81050, __in_chrg=<optimized out>) at /test/10.6_dbg/sql/sql_class.h:5089
      #11 0x0000555cff573af8 in Wsrep_prepared_applier_service::~Wsrep_prepared_applier_service (this=0x555d01c81050, __in_chrg=<optimized out>) at /test/10.6_dbg/sql/wsrep_high_priority_service.h:103
      #12 Wsrep_prepared_applier_service::~Wsrep_prepared_applier_service (this=0x555d01c81050, __in_chrg=<optimized out>) at /test/10.6_dbg/sql/wsrep_high_priority_service.h:103
      #13 0x0000555cff571bfa in Wsrep_server_service::release_high_priority_service (this=<optimized out>, high_priority_service=<optimized out>) at /test/10.6_dbg/sql/wsrep_server_service.cc:169
      #14 0x0000555cffb63fda in wsrep::server_state::convert_streaming_client_to_applier (this=0x555d010eee50, client_state=0x14561c007240) at /test/10.6_dbg/wsrep-lib/src/server_state.cpp:1195
      #15 0x0000555cffb67e5b in wsrep::transaction::streaming_rollback (this=this@entry=0x14561c0072a8, lock=@0x14569482b330: {_M_device = 0x14561c007208, _M_owns = false}) at /test/10.6_dbg/wsrep-lib/src/transaction.cpp:1859
      #16 0x0000555cffb694ef in wsrep::transaction::before_rollback (this=this@entry=0x14561c0072a8) at /test/10.6_dbg/wsrep-lib/src/transaction.cpp:687
      #17 0x0000555cff19587f in wsrep::client_state::before_rollback (this=0x14561c007240) at /test/10.6_dbg/wsrep-lib/include/wsrep/client_state.hpp:527
      #18 wsrep_before_rollback (all=true, thd=0x14561c000db8) at /test/10.6_dbg/sql/wsrep_trans_observer.h:469
      #19 ha_rollback_trans (thd=thd@entry=0x14561c000db8, all=all@entry=true) at /test/10.6_dbg/sql/handler.cc:2081
      #20 0x0000555cff036ace in trans_rollback_implicit (thd=thd@entry=0x14561c000db8) at /test/10.6_dbg/sql/transaction.cc:421
      #21 0x0000555cff034bbe in mysql_admin_table (thd=thd@entry=0x14561c000db8, tables=tables@entry=0x14561c0127c8, check_opt=check_opt@entry=0x0, operator_name=<optimized out>, operator_name@entry=0x555cffd938a3 "preload_keys", lock_type=lock_type@entry=TL_READ_NO_INSERT, org_open_for_modify=org_open_for_modify@entry=false, repair_table_use_frm=false, extra_open_options=0, prepare_func=0x0, operator_func=&virtual table offset 768, view_operator_func=0x0) at /test/10.6_dbg/sql/sql_admin.cc:1195
      #22 0x0000555cff0359ae in mysql_preload_keys (thd=thd@entry=0x14561c000db8, tables=tables@entry=0x14561c0127c8) at /test/10.6_dbg/sql/sql_admin.cc:1339
      #23 0x0000555cfeec68eb in mysql_execute_command (thd=thd@entry=0x14561c000db8) at /test/10.6_dbg/sql/sql_parse.cc:3976
      #24 0x0000555cfeeb2282 in mysql_parse (thd=thd@entry=0x14561c000db8, rawbuf=rawbuf@entry=0x14561c0126d0 "LOAD INDEX INTO cache t1", length=length@entry=24, parser_state=parser_state@entry=0x14569482c3d0) at /test/10.6_dbg/sql/sql_parse.cc:7918
      #25 0x0000555cfeeb1b34 in wsrep_mysql_parse (thd=thd@entry=0x14561c000db8, rawbuf=0x14561c0126d0 "LOAD INDEX INTO cache t1", length=24, parser_state=parser_state@entry=0x14569482c3d0) at /test/10.6_dbg/sql/sql_parse.cc:7732
      #26 0x0000555cfeec0499 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14561c000db8, packet=packet@entry=0x14561c008d49 "", packet_length=packet_length@entry=24) at /test/10.6_dbg/sql/sql_class.h:1254
      #27 0x0000555cfeec3a8b in do_command (thd=0x14561c000db8) at /test/10.6_dbg/sql/sql_parse.cc:1355
      #28 0x0000555cff0205aa in do_handle_one_connection (connect=<optimized out>, connect@entry=0x555d01d3cb88, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1410
      #29 0x0000555cff020cb1 in handle_one_connection (arg=arg@entry=0x555d01d3cb88) at /test/10.6_dbg/sql/sql_connect.cc:1312
      #30 0x0000555cff4ddc5f in pfs_spawn_thread (arg=0x555d01d3e3a8) at /test/10.6_dbg/storage/perfschema/pfs.cc:2201
      #31 0x00001456ac0d3609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #32 0x00001456abcc4293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.6.0 (dbg)

      Bug confirmed not present in:
      MariaDB: 10.2.37 (dbg), 10.3.28 (dbg), 10.4.18 (dbg), 10.5.9 (dbg)

      Attachments

        Issue Links

          Activity

            People

              sciascid Daniele Sciascia
              ramesh Ramesh Sivaraman
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.