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

Assertion `granted_thd->wsrep_aborter == request_thd->thread_id' failed in void wsrep_handle_mdl_conflict(MDL_context*, const MDL_ticket*, const MDL_key*)

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6
    • 10.6
    • Galera

    Description

      RQG test case. Attached RQG grammar files, cnf files and full stack trace

      perl gendata.pl --dsn=dbi:mysql:host=127.0.0.1:port=10665:user=root:database=test --spec=conf/mariadb/oltp.zz
      perl gentest.pl --dsn=dbi:mysql:host=127.0.0.1:port=10665:user=root:database=test --grammar=conf/mariadb/oltp_and_ddl_v4.yy --threads=32 --duration=10300 --queries=100000000 &
      perl gentest.pl --dsn=dbi:mysql:host=127.0.0.1:port=12247:user=root:database=test --grammar=conf/mariadb/oltp_and_ddl_v4.yy --threads=32 --duration=10300 --queries=100000000 &
      
      

      CS 10.6.20 1ed30e08af4780a2b1f6d2b52f91fea89f892ef3 (Debug)

      
      

      ramesh@galapq:/test/GAL_MD221024-mariadb-10.6.20-linux-x86_64-dbg$ ~/stack

      CS 10.6.20 1ed30e08af4780a2b1f6d2b52f91fea89f892ef3 (Debug)

      Core was generated by `/test/GAL_MD221024-mariadb-10.6.20-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 0x14aa5125d700 (LWP 3886867))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x0000564357dc0707 in my_write_core (sig=sig@entry=6) at /test/10.6_dbg/mysys/stacktrace.c:424
      #2  0x000056435765adbb in handle_fatal_signal (sig=6) at /test/10.6_dbg/sql/signal_handler.cc:366
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #5  0x000014aa98887859 in __GI_abort () at abort.c:79
      #6  0x000014aa98887729 in __assert_fail_base (fmt=0x14aa98a1d588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x5643581bb668 "granted_thd->wsrep_aborter == request_thd->thread_id", file=0x5643581bac38 "/test/10.6_dbg/sql/wsrep_mysqld.cc", line=3136, function=<optimized out>) at assert.c:92
      #7  0x000014aa98898fd6 in __GI___assert_fail (assertion=assertion@entry=0x5643581bb668 "granted_thd->wsrep_aborter == request_thd->thread_id", file=file@entry=0x5643581bac38 "/test/10.6_dbg/sql/wsrep_mysqld.cc", line=line@entry=3136, function=function@entry=0x5643581bb5b0 "void wsrep_handle_mdl_conflict(MDL_context*, const MDL_ticket*, const MDL_key*)") at assert.c:101
      #8  0x0000564357957c73 in wsrep_handle_mdl_conflict (requestor_ctx=requestor_ctx@entry=0x14a9d0000ea0, ticket=ticket@entry=0x14aa1407d4e0, key=key@entry=0x14aa70073c48) at /test/10.6_dbg/sql/wsrep_mysqld.cc:3136
      #9  0x00005643574f30f4 in MDL_lock::can_grant_lock (this=this@entry=0x14aa70073c48, type_arg=MDL_EXCLUSIVE, requestor_ctx=requestor_ctx@entry=0x14a9d0000ea0, ignore_lock_priority=ignore_lock_priority@entry=false) at /test/10.6_dbg/sql/mdl.cc:1795
      #10 0x00005643574f342f in MDL_context::try_acquire_lock_impl (this=this@entry=0x14a9d0000ea0, mdl_request=mdl_request@entry=0x14aa51258020, out_ticket=out_ticket@entry=0x14aa51257f98) at /test/10.6_dbg/sql/mdl.cc:2131
      #11 0x00005643574f38d9 in MDL_context::acquire_lock (this=this@entry=0x14a9d0000ea0, mdl_request=mdl_request@entry=0x14aa51258020, lock_wait_timeout=lock_wait_timeout@entry=31536000) at /test/10.6_dbg/sql/mdl.cc:2292
      #12 0x00005643574f47a3 in MDL_context::upgrade_shared_lock (this=this@entry=0x14a9d0000ea0, mdl_ticket=0x14a9d0088a00, new_type=new_type@entry=MDL_EXCLUSIVE, lock_wait_timeout=31536000) at /test/10.6_dbg/sql/mdl.cc:2597
      #13 0x0000564357456b92 in mysql_inplace_alter_table (thd=thd@entry=0x14a9d0000d48, table_list=0x14a9d0013380, table=table@entry=0x14a9b0082c38, altered_table=altered_table@entry=0x14aa51258cf0, ha_alter_info=ha_alter_info@entry=0x14aa51258c30, target_mdl_request=target_mdl_request@entry=0x14aa512595b0, ddl_log_state=0x14aa51258bc0, trigger_param=0x14aa51259120, alter_ctx=0x14aa5125a480) at /test/10.6_dbg/sql/sql_table.cc:7480
      #14 0x0000564357469e68 in mysql_alter_table (thd=thd@entry=0x14a9d0000d48, new_db=new_db@entry=0x14a9d00057f8, new_name=new_name@entry=0x14a9d0005c68, create_info=create_info@entry=0x14aa5125b2f0, table_list=<optimized out>, table_list@entry=0x14a9d0013380, recreate_info=recreate_info@entry=0x14aa5125b160, alter_info=0x14aa5125b180, order_num=0, order=0x0, ignore=false, if_exists=false) at /test/10.6_dbg/sql/sql_table.cc:10681
      #15 0x00005643574ecff2 in Sql_cmd_alter_table::execute (this=<optimized out>, thd=0x14a9d0000d48) at /test/10.6_dbg/sql/structs.h:569
      #16 0x000056435739ada1 in mysql_execute_command (thd=thd@entry=0x14a9d0000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/10.6_dbg/sql/sql_parse.cc:6141
      #17 0x0000564357382238 in mysql_parse (thd=thd@entry=0x14a9d0000d48, rawbuf=rawbuf@entry=0x14a9d0013200 "ALTER TABLE `oLtp11` ADD z INT NULL, LOCK=DEFAULT, ALGORITHM=INSTANT /* QNO 1159 CON_ID 34 */", length=length@entry=93, parser_state=parser_state@entry=0x14aa5125c310) at /test/10.6_dbg/sql/sql_parse.cc:8181
      #18 0x0000564357381b3e in wsrep_mysql_parse (thd=thd@entry=0x14a9d0000d48, rawbuf=0x14a9d0013200 "ALTER TABLE `oLtp11` ADD z INT NULL, LOCK=DEFAULT, ALGORITHM=INSTANT /* QNO 1159 CON_ID 34 */", length=93, parser_state=parser_state@entry=0x14aa5125c310) at /test/10.6_dbg/sql/sql_parse.cc:7992
      #19 0x000056435739080e in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x14a9d0000d48, packet=packet@entry=0x14a9d000ade9 "ALTER TABLE `oLtp11` ADD z INT NULL, LOCK=DEFAULT, ALGORITHM=INSTANT /* QNO 1159 CON_ID 34 */ ", packet_length=packet_length@entry=94, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_class.h:1419
      #20 0x0000564357392ee6 in do_command (thd=0x14a9d0000d48, blocking=blocking@entry=true) at /test/10.6_dbg/sql/sql_parse.cc:1410
      #21 0x00005643574e60dd in do_handle_one_connection (connect=<optimized out>, connect@entry=0x56435a37d4d8, put_in_cache=put_in_cache@entry=true) at /test/10.6_dbg/sql/sql_connect.cc:1417
      #22 0x00005643574e65b7 in handle_one_connection (arg=0x56435a37d4d8) at /test/10.6_dbg/sql/sql_connect.cc:1319
      #23 0x000014aa98db3609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #24 0x000014aa98984133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Attachments

        1. full_back_trace.log
          188 kB
        2. n1.cnf
          1.0 kB
        3. n2.cnf
          1.0 kB
        4. oltp_and_ddl_v4.yy
          5 kB
        5. oltp.zz
          2 kB

        Activity

          People

            sysprg Julius Goryavsky
            ramesh Ramesh Sivaraman
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.