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

Assertion `status == 0' failed in add_role_user_mapping_action on RENAME USER

    XMLWordPrintable

Details

    • 10.0.22

    Description

      CREATE ROLE 'look', 'isp', 'xxx', 'ppp';
      RENAME USER CURRENT_USER TO nnnn@'%';

      Stack trace from 10.0 0403790722e3941779ccea26e85fcd818e2320b5

      10.0/sql/sql_acl.cc:2472: my_bool add_role_user_mapping_action(void*, void*): Assertion `status == 0' failed.
      150813 17:11:46 [ERROR] mysqld got signal 6 ;
       
      #6  0x00007f4dec645311 in *__GI___assert_fail (assertion=0xef9326 "status == 0", file=<optimized out>, line=2472, function=0xefc760 "my_bool add_role_user_mapping_action(void*, void*)") at assert.c:81
      #7  0x00000000005f9295 in add_role_user_mapping_action (ptr=0x7f4debc1dd78, unused=0x0) at 10.0/sql/sql_acl.cc:2472
      #8  0x0000000000e337a9 in my_hash_iterate (hash=0x1882e00, action=0x5f9233 <add_role_user_mapping_action(void*, void*)>, argument=0x0) at 10.0/mysys/hash.c:762
      #9  0x00000000005f9340 in rebuild_role_grants () at 10.0/sql/sql_acl.cc:2497
      #10 0x000000000060d892 in mysql_rename_user (thd=0x7f4de7bd4070, list=...) at 10.0/sql/sql_acl.cc:9507
      #11 0x0000000000682550 in mysql_execute_command (thd=0x7f4de7bd4070) at 10.0/sql/sql_parse.cc:4096
      #12 0x0000000000688a5e in mysql_parse (thd=0x7f4de7bd4070, rawbuf=0x7f4de67f8088 "RENAME USER CURRENT_USER TO nnnn@'%'", length=36, parser_state=0x7f4de5bb4600) at 10.0/sql/sql_parse.cc:6531
      #13 0x000000000067b43f in dispatch_command (command=COM_QUERY, thd=0x7f4de7bd4070, packet=0x7f4de7bca071 "RENAME USER CURRENT_USER TO nnnn@'%'", packet_length=36) at 10.0/sql/sql_parse.cc:1308
      #14 0x000000000067a725 in do_command (thd=0x7f4de7bd4070) at 10.0/sql/sql_parse.cc:999
      #15 0x0000000000798c86 in do_handle_one_connection (thd_arg=0x7f4de7bd4070) at 10.0/sql/sql_connect.cc:1378
      #16 0x00000000007989e5 in handle_one_connection (arg=0x7f4de7bd4070) at 10.0/sql/sql_connect.cc:1293
      #17 0x0000000000cdb22b in pfs_spawn_thread (arg=0x7f4de65da5f0) at 10.0/storage/perfschema/pfs.cc:1860
      #18 0x00007f4dee43fb50 in start_thread (arg=<optimized out>) at pthread_create.c:304
      #19 0x00007f4dec6f595d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112

      Attachments

        Issue Links

          Activity

            People

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