Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.4(EOL), 10.5, 10.6, 10.11, 11.0(EOL), 11.1(EOL), 11.2(EOL), 11.3(EOL), 11.4, 11.5(EOL)
Description
SET GLOBAL aria_encrypt_tables=1; |
TRUNCATE TABLE mysql.global_priv; |
CREATE ROLE r1; |
SET GLOBAL table_open_cache=1; |
RENAME USER current_user TO abc@localhost; |
Leads to:
10.11.2 b81b1943932a383a92bcd22d053e112198507ae2 (Debug) |
mysqld: /test/mtest/10.11_dbg/sql/sql_acl.cc:3960: my_bool add_role_user_mapping_action(void*, void*): Assertion `status == 0' failed.
|
10.11.2 b81b1943932a383a92bcd22d053e112198507ae2 (Debug) |
Core was generated by `/test/mtest/MD301122-mariadb-10.11.2-linux-x86_64-dbg/bin/mysqld --no-defaults'.
|
Program terminated with signal SIGABRT, Aborted.
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
[Current thread is 1 (Thread 0x1486ff8e5700 (LWP 1402407))]
|
(gdb) bt
|
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#1 0x0000148737c9e859 in __GI_abort () at abort.c:79
|
#2 0x0000148737c9e729 in __assert_fail_base (fmt=0x148737e34588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55a4472bba02 "status == 0", file=0x55a4472bc098 "/test/mtest/10.11_dbg/sql/sql_acl.cc", line=3960, function=<optimized out>) at assert.c:92
|
#3 0x0000148737caffd6 in __GI___assert_fail (assertion=assertion@entry=0x55a4472bba02 "status == 0", file=file@entry=0x55a4472bc098 "/test/mtest/10.11_dbg/sql/sql_acl.cc", line=line@entry=3960, function=function@entry=0x55a4472ba218 "my_bool add_role_user_mapping_action(void*, void*)") at assert.c:101
|
#4 0x000055a446660ee9 in add_role_user_mapping_action (ptr=<optimized out>, unused=<optimized out>) at /test/mtest/10.11_dbg/sql/sql_acl.cc:3960
|
#5 0x000055a4470edcac in my_hash_iterate (hash=hash@entry=0x55a447c9a380 <acl_roles_mappings>, action=action@entry=0x55a446660e8b <add_role_user_mapping_action(void*, void*)>, argument=argument@entry=0x0) at /test/mtest/10.11_dbg/mysys/hash.c:808
|
#6 0x000055a44665277e in rebuild_role_grants () at /test/mtest/10.11_dbg/sql/sql_acl.cc:3985
|
#7 0x000055a4466670c7 in mysql_rename_user (thd=thd@entry=0x1486e0000d48, list=@0x1486e0005e50: {<base_list> = {<Sql_alloc> = {<No data fields>}, first = 0x1486e0013270, last = 0x1486e0013280, elements = 2}, <No data fields>}) at /test/mtest/10.11_dbg/sql/sql_acl.cc:11376
|
#8 0x000055a44670af29 in mysql_execute_command (thd=thd@entry=0x1486e0000d48, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false) at /test/mtest/10.11_dbg/sql/sql_parse.cc:5364
|
#9 0x000055a4466f54aa in mysql_parse (thd=thd@entry=0x1486e0000d48, rawbuf=<optimized out>, length=<optimized out>, parser_state=parser_state@entry=0x1486ff8e4300) at /test/mtest/10.11_dbg/sql/sql_parse.cc:7998
|
#10 0x000055a4467029e9 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x1486e0000d48, packet=packet@entry=0x1486e000adf9 "RENAME USER current_user TO abc@localhost", packet_length=packet_length@entry=41, blocking=blocking@entry=true) at /test/mtest/10.11_dbg/sql/sql_class.h:1346
|
#11 0x000055a446704e22 in do_command (thd=0x1486e0000d48, blocking=blocking@entry=true) at /test/mtest/10.11_dbg/sql/sql_parse.cc:1407
|
#12 0x000055a44685f65f in do_handle_one_connection (connect=<optimized out>, connect@entry=0x55a44a5207c8, put_in_cache=put_in_cache@entry=true) at /test/mtest/10.11_dbg/sql/sql_connect.cc:1415
|
#13 0x000055a44685fb2e in handle_one_connection (arg=0x55a44a5207c8) at /test/mtest/10.11_dbg/sql/sql_connect.cc:1317
|
#14 0x00001487381af609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#15 0x0000148737d9b133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
Bug confirmed present in:
MariaDB: 10.4.28 (dbg), 10.5.19 (dbg), 10.6.12 (dbg), 10.7.8 (dbg), 10.8.7 (dbg), 10.9.5 (dbg), 10.10.3 (dbg), 10.11.2 (dbg)
Bug (or feature/syntax) confirmed not present in:
MariaDB: 10.3.38 (dbg), 10.3.38 (opt), 10.4.28 (opt), 10.5.19 (opt), 10.6.12 (opt), 10.7.8 (opt), 10.8.7 (opt), 10.9.5 (opt), 10.10.3 (opt), 10.11.2 (opt)