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

Server crashes in wsrep_should_replicate_ddl_iterate upon CREATE VIEW

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            jplindst Jan Lindström (Inactive)
            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.