[MDEV-22075] Server crashes in wsrep_should_replicate_ddl_iterate upon CREATE VIEW Created: 2020-03-29  Updated: 2020-04-08  Resolved: 2020-04-08

Status: Closed
Project: MariaDB Server
Component/s: Galera, Views, wsrep
Affects Version/s: 10.5
Fix Version/s: 10.5.3

Type: Bug Priority: Critical
Reporter: Elena Stepanova Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: affects-tests


 Description   

Note: Place the test case under suite/galera/t to avoid manual configuration.

--source include/galera_cluster.inc
 
CREATE OR REPLACE VIEW v AS WITH cte AS ( SELECT 1 ) SELECT * FROM cte;
 
# Cleanup
DROP VIEW v;

10.5 e1295554

#3  <signal handler called>
#4  0x000055bb8514b28d in wsrep_should_replicate_ddl_iterate (thd=0x7fb9f4000b18, table_list=0x7fb9f4014268) at /data/src/10.5/sql/wsrep_mysqld.cc:1747
#5  0x000055bb84b1121e in mysql_create_view (thd=0x7fb9f4000b18, views=0x7fb9f40126c8, mode=VIEW_CREATE_OR_REPLACE) at /data/src/10.5/sql/sql_view.cc:458
#6  0x000055bb849ed8e8 in mysql_execute_command (thd=0x7fb9f4000b18) at /data/src/10.5/sql/sql_parse.cc:5718
#7  0x000055bb849f48cc in mysql_parse (thd=0x7fb9f4000b18, rawbuf=0x7fb9f4012570 "CREATE OR REPLACE VIEW v AS WITH cte AS ( SELECT 1 ) SELECT * FROM cte", length=70, parser_state=0x7fba65212520, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:7953
#8  0x000055bb849f3fdd in wsrep_mysql_parse (thd=0x7fb9f4000b18, rawbuf=0x7fb9f4012570 "CREATE OR REPLACE VIEW v AS WITH cte AS ( SELECT 1 ) SELECT * FROM cte", length=70, parser_state=0x7fba65212520, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:7756
#9  0x000055bb849e0021 in dispatch_command (command=COM_QUERY, thd=0x7fb9f4000b18, packet=0x7fb9f4008919 "CREATE OR REPLACE VIEW v AS WITH cte AS ( SELECT 1 ) SELECT * FROM cte", packet_length=70, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:1825
#10 0x000055bb849de853 in do_command (thd=0x7fb9f4000b18) at /data/src/10.5/sql/sql_parse.cc:1359
#11 0x000055bb84b80fc5 in do_handle_one_connection (connect=0x55bb883de998, put_in_cache=true) at /data/src/10.5/sql/sql_connect.cc:1422
#12 0x000055bb84b80cf4 in handle_one_connection (arg=0x55bb883de998) at /data/src/10.5/sql/sql_connect.cc:1319
#13 0x000055bb850b493a in pfs_spawn_thread (arg=0x55bb887b35d8) at /data/src/10.5/storage/perfschema/pfs.cc:2201
#14 0x00007fba74e6e4a4 in start_thread (arg=0x7fba65213700) at pthread_create.c:456
#15 0x00007fba72fa2d0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Reproducible on debug and non-debug builds alike.
Not reproducible on 10.4.


Generated at Thu Feb 08 09:12:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.