Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 10.1
-
Fix Version/s: 10.1.5
-
Component/s: Admin statements
-
Labels:None
-
Sprint:10.1.6-1
Description
create role r1; create role r2; grant r2 to r1; drop role r1; create user foo;
Stack trace from 10.1 commit 20c23048
10.1/sql/sql_acl.cc:2610: my_bool add_role_user_mapping_action(void*, void*): Assertion `status == 0' failed. 150518 17:05:18 [ERROR] mysqld got signal 6 ; #6 0x00007fa9bcd89311 in *__GI___assert_fail (assertion=0x7fa9bffec7ce "status == 0", file=<optimized out>, line=2610, function=0x7fa9bffefee0 "my_bool add_role_user_mapping_action(void*, void*)") at assert.c:81 #7 0x00007fa9bf6315c9 in add_role_user_mapping_action (ptr=0x7fa9b5ded8c0, unused=0x0) at 10.1/sql/sql_acl.cc:2610 #8 0x00007fa9bff156e6 in my_hash_iterate (hash=0x7fa9c09c6a00, action=0x7fa9bf631567 <add_role_user_mapping_action(void*, void*)>, argument=0x0) at 10.1/mysys/hash.c:761 #9 0x00007fa9bf631675 in rebuild_role_grants () at 10.1/sql/sql_acl.cc:2635 #10 0x00007fa9bf630700 in acl_insert_user (user=0x7fa9b38e4118 "foo", host=0x7fa9bffebc4b "%", password=0x7fa9c00035a0 "", password_len=0, ssl_type=SSL_TYPE_NOT_SPECIFIED, ssl_cipher=0x0, x509_issuer=0x0, x509_subject=0x0, mqh=0x7fa9b5e5ff18, privileges=0, plugin=0x7fa9b38e4150, auth=0x7fa9b38e4160) at 10.1/sql/sql_acl.cc:2271 #11 0x00007fa9bf63574c in replace_user_table (thd=0x7fa9b5e5b070, table=0x7fa9bc4df870, combo=..., rights=0, revoke_grant=false, can_create_user=true, no_auto_create=false) at 10.1/sql/sql_acl.cc:3626 #12 0x00007fa9bf646d53 in mysql_create_user (thd=0x7fa9b5e5b070, list=..., handle_as_role=false) at 10.1/sql/sql_acl.cc:9435 #13 0x00007fa9bf6c52d9 in mysql_execute_command (thd=0x7fa9b5e5b070) at 10.1/sql/sql_parse.cc:4547 #14 0x00007fa9bf6cd234 in mysql_parse (thd=0x7fa9b5e5b070, rawbuf=0x7fa9b38e4088 "create user foo", length=15, parser_state=0x7fa9bf16a1b0) at 10.1/sql/sql_parse.cc:7161 #15 0x00007fa9bf6bc1e1 in dispatch_command (command=COM_QUERY, thd=0x7fa9b5e5b070, packet=0x7fa9b8bf6071 "create user foo", packet_length=15) at 10.1/sql/sql_parse.cc:1462 #16 0x00007fa9bf6bafb1 in do_command (thd=0x7fa9b5e5b070) at 10.1/sql/sql_parse.cc:1090 #17 0x00007fa9bf7eccb3 in do_handle_one_connection (thd_arg=0x7fa9b5e5b070) at 10.1/sql/sql_connect.cc:1347 #18 0x00007fa9bf7ec9f8 in handle_one_connection (arg=0x7fa9b5e5b070) at 10.1/sql/sql_connect.cc:1258 #19 0x00007fa9bfda608e in pfs_spawn_thread (arg=0x7fa9bc4235f0) at 10.1/storage/perfschema/pfs.cc:1860 #20 0x00007fa9beda4b50 in start_thread (arg=<optimized out>) at pthread_create.c:304 #21 0x00007fa9bce3995d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
Does not crash on 10.0.
Gliffy Diagrams
Attachments
Issue Links
- relates to
-
MDEV-5164 Testing Roles
-
- Stalled
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Cannot repeat neither in the current 10.1 tree nor in 10.1.5