We're updating the issue view to help you get more done. 

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

Description

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

Stack trace from 10.0 0403790722e3941779ccea26e85fcd818e2320b5

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 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

Environment

None

Status

Assignee

Sergei Golubchik

Reporter

Elena Stepanova

Components

Sprint

None

Fix versions

Affects versions

10.0
10.1

Priority

Major