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

Assertion `!thd->is_current_stmt_binlog_format_row()' failed in bool sp_revoke_privileges(THD*, const char*, const char*, const Sp_handler*)

    XMLWordPrintable

Details

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

    Description

      SET autocommit=OFF;
      SET GLOBAL wsrep_forced_binlog_format=0;
      ALTER TABLE mysql.procs_priv ENGINE=InnoDB;
      CREATE PROCEDURE p() INSERT INTO t VALUES (1);
      DROP PROCEDURE IF EXISTS p;
      

      Leads to

      10.4.30 9f909e546e14ed9b529cddc2c1a5c2aa61d57e56 (Debug)

      mysqld: /test/10.4_dbg/sql/sql_acl.cc:11528: bool sp_revoke_privileges(THD*, const char*, const char*, const Sp_handler*): Assertion `!thd->is_current_stmt_binlog_format_row()' failed.
      

      10.4.30 9f909e546e14ed9b529cddc2c1a5c2aa61d57e56 (Debug)

      Core was generated by `/test/GAL_MD230523-mariadb-10.4.30-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 0x15511c302700 (LWP 160606))]
      (gdb) bt
      #0  __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
      #1  0x0000562c4b79c03d in my_write_core (sig=sig@entry=6) at /test/10.4_dbg/mysys/stacktrace.c:386
      #2  0x0000562c4afab472 in handle_fatal_signal (sig=6) at /test/10.4_dbg/sql/signal_handler.cc:372
      #3  <signal handler called>
      #4  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
      #5  0x000015512ce04859 in __GI_abort () at abort.c:79
      #6  0x000015512ce04729 in __assert_fail_base (fmt=0x15512cf9a588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x562c4b914dc8 "!thd->is_current_stmt_binlog_format_row()", file=0x562c4b916dfd "/test/10.4_dbg/sql/sql_acl.cc", line=11528, function=<optimized out>) at assert.c:92
      #7  0x000015512ce15fd6 in __GI___assert_fail (assertion=assertion@entry=0x562c4b914dc8 "!thd->is_current_stmt_binlog_format_row()", file=file@entry=0x562c4b916dfd "/test/10.4_dbg/sql/sql_acl.cc", line=line@entry=11528, function=function@entry=0x562c4b914df8 "bool sp_revoke_privileges(THD*, const char*, const char*, const Sp_handler*)") at assert.c:101
      #8  0x0000562c4ac9cf36 in sp_revoke_privileges (thd=thd@entry=0x1550a0000d28, sp_db=0x1550a0012560 "test", sp_name=0x1550a0012558 "p", sph=0x562c4c10d5e0 <sp_handler_procedure>) at /test/10.4_dbg/sql/sql_acl.cc:11528
      #9  0x0000562c4ad3457e in mysql_execute_command (thd=thd@entry=0x1550a0000d28) at /test/10.4_dbg/sql/sql_class.h:5165
      #10 0x0000562c4ad373f9 in mysql_parse (thd=thd@entry=0x1550a0000d28, rawbuf=rawbuf@entry=0x1550a00124c0 "DROP PROCEDURE IF EXISTS p", length=length@entry=26, parser_state=parser_state@entry=0x15511c3013b0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_parse.cc:8008
      #11 0x0000562c4ad380dc in wsrep_mysql_parse (thd=thd@entry=0x1550a0000d28, rawbuf=0x1550a00124c0 "DROP PROCEDURE IF EXISTS p", length=26, parser_state=parser_state@entry=0x15511c3013b0, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_parse.cc:7810
      #12 0x0000562c4ad39f99 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x1550a0000d28, packet=packet@entry=0x1550a001a699 "DROP PROCEDURE IF EXISTS p", packet_length=packet_length@entry=26, is_com_multi=is_com_multi@entry=false, is_next_command=is_next_command@entry=false) at /test/10.4_dbg/sql/sql_class.h:1231
      #13 0x0000562c4ad3c80a in do_command (thd=0x1550a0000d28) at /test/10.4_dbg/sql/sql_parse.cc:1378
      #14 0x0000562c4ae5b2b6 in do_handle_one_connection (connect=<optimized out>) at /test/10.4_dbg/sql/sql_connect.cc:1420
      #15 0x0000562c4ae5b372 in handle_one_connection (arg=<optimized out>) at /test/10.4_dbg/sql/sql_connect.cc:1324
      #16 0x000015512d315609 in start_thread (arg=<optimized out>) at pthread_create.c:477
      #17 0x000015512cf01133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Bug confirmed present in:
      MariaDB: 10.4.30 (dbg)

      Bug (or feature/syntax) confirmed not present in:
      MariaDB: 10.4.30 (opt), 10.5.21 (opt), 10.5.21 (dbg), 10.6.14 (dbg), 10.6.14 (opt), 10.8.8 (dbg), 10.8.8 (opt), 10.9.7 (dbg), 10.9.7 (opt), 10.10.4 (opt), 10.10.4 (dbg), 10.11.3 (dbg), 10.11.3 (opt), 11.0.2 (dbg), 11.1.0 (dbg)

      Attachments

        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.