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

Assertion `! is_set()' or `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed upon REVOKE under LOCK TABLE

    XMLWordPrintable

Details

    Description

      CREATE TABLE t1 (a INT);
      LOCK TABLE t1 WRITE;
       
      --error ER_TABLE_NOT_LOCKED
      REVOKE EXECUTE ON PROCEDURE sp FROM u;
       
      # Cleanup
      DROP TABLE t1;
      

      10.1 ecd3a7e00d

      mysqld: /data/src/10.1/sql/sql_error.cc:378: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `! is_set()' failed.
      181211 22:40:08 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f89bf603ee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x000055efad1a284e in Diagnostics_area::set_ok_status (this=0x7f89b84da000, affected_rows=0, last_insert_id=0, message=0x0) at /data/src/10.1/sql/sql_error.cc:378
      #9  0x000055efad15b1db in my_ok (thd=0x7f89b84d5070, affected_rows=0, id=0, message=0x0) at /data/src/10.1/sql/sql_class.h:4183
      #10 0x000055efad1d1a78 in mysql_execute_command (thd=0x7f89b84d5070) at /data/src/10.1/sql/sql_parse.cc:4757
      #11 0x000055efad1d95eb in mysql_parse (thd=0x7f89b84d5070, rawbuf=0x7f89b6843088 "REVOKE EXECUTE ON PROCEDURE sp FROM u", length=37, parser_state=0x7f89c146c5e0) at /data/src/10.1/sql/sql_parse.cc:7467
      #12 0x000055efad1c7e3c in dispatch_command (command=COM_QUERY, thd=0x7f89b84d5070, packet=0x7f89baff9071 "REVOKE EXECUTE ON PROCEDURE sp FROM u", packet_length=37) at /data/src/10.1/sql/sql_parse.cc:1495
      #13 0x000055efad1c6bc1 in do_command (thd=0x7f89b84d5070) at /data/src/10.1/sql/sql_parse.cc:1124
      #14 0x000055efad301720 in do_handle_one_connection (thd_arg=0x7f89b84d5070) at /data/src/10.1/sql/sql_connect.cc:1330
      #15 0x000055efad301484 in handle_one_connection (arg=0x7f89b84d5070) at /data/src/10.1/sql/sql_connect.cc:1242
      #16 0x000055efad6bf7c6 in pfs_spawn_thread (arg=0x7f89bec39ef0) at /data/src/10.1/storage/perfschema/pfs.cc:1861
      #17 0x00007f89c10ec494 in start_thread (arg=0x7f89c146db00) at pthread_create.c:333
      #18 0x00007f89bf6c093f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      10.4 1c53aeff5

      mysqld: /data/src/10.4/sql/sql_error.cc:335: void Diagnostics_area::set_ok_status(ulonglong, ulonglong, const char*): Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed.
      181211 22:40:46 [ERROR] mysqld got signal 6 ;
       
      #7  0x00007f557cd7dee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
      #8  0x00005636473e3f15 in Diagnostics_area::set_ok_status (this=0x7f555c0062a8, affected_rows=0, last_insert_id=0, message=0x0) at /data/src/10.4/sql/sql_error.cc:335
      #9  0x000056364739092c in my_ok (thd=0x7f555c000b00, affected_rows_arg=0, id=0, message=0x0) at /data/src/10.4/sql/sql_class.h:4937
      #10 0x00005636474364dc in mysql_execute_command (thd=0x7f555c000b00) at /data/src/10.4/sql/sql_parse.cc:5509
      #11 0x000056364743def2 in mysql_parse (thd=0x7f555c000b00, rawbuf=0x7f555c014db8 "REVOKE EXECUTE ON PROCEDURE sp FROM u", length=37, parser_state=0x7f557809c600, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8103
      #12 0x000056364742b11c in dispatch_command (command=COM_QUERY, thd=0x7f555c000b00, packet=0x7f555c00b421 "REVOKE EXECUTE ON PROCEDURE sp FROM u", packet_length=37, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1850
      #13 0x0000563647429b40 in do_command (thd=0x7f555c000b00) at /data/src/10.4/sql/sql_parse.cc:1395
      #14 0x0000563647595a2e in do_handle_one_connection (connect=0x56364aeb10a0) at /data/src/10.4/sql/sql_connect.cc:1402
      #15 0x00005636475957b2 in handle_one_connection (arg=0x56364aeb10a0) at /data/src/10.4/sql/sql_connect.cc:1308
      #16 0x0000563647a5311e in pfs_spawn_thread (arg=0x56364ae11190) at /data/src/10.4/storage/perfschema/pfs.cc:1862
      #17 0x00007f557e839494 in start_thread (arg=0x7f557809d700) at pthread_create.c:333
      #18 0x00007f557ce3a93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
      

      Not reproducible on 10.0.
      No visible effect on a non-debug build.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.