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

Server with wsrep_on crashes in do_rename upon RENAME TABLE on a view

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.5
    • 10.5.3
    • Views, wsrep
    • None
    • Galera 26.4.4(r4599)

    Description

      --source include/galera_cluster.inc
       
      CREATE VIEW v AS SELECT 1;
      RENAME TABLE v TO v2;
       
      # Cleanup
      DROP VIEW v2;
      

      10.5 b212f1da

      #3  <signal handler called>
      #4  0x0000560abde46bff in do_rename (thd=0x62b0000ee288, ren_table=0x62b0000f53f0, new_db=0x62b0000f5b00, new_table_name=0x62b0000f5b10, new_table_alias=0x62b0000f5b30, skip_error=false, if_exists=false, force_if_exists=0x7f11b782a670) at /data/src/10.5/sql/sql_rename.cc:328
      #5  0x0000560abde4738a in rename_tables (thd=0x62b0000ee288, table_list=0x62b0000f53f0, skip_error=false, if_exists=false, force_if_exists=0x7f11b782a670) at /data/src/10.5/sql/sql_rename.cc:422
      #6  0x0000560abde45a46 in mysql_rename_tables (thd=0x62b0000ee288, table_list=0x62b0000f53f0, silent=false, if_exists=false) at /data/src/10.5/sql/sql_rename.cc:158
      #7  0x0000560abddd452d in mysql_execute_command (thd=0x62b0000ee288) at /data/src/10.5/sql/sql_parse.cc:4283
      #8  0x0000560abddeeffb in mysql_parse (thd=0x62b0000ee288, rawbuf=0x62b0000f52a8 "RENAME TABLE v TO v2", length=20, parser_state=0x7f11b782ba50, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:7953
      #9  0x0000560abddeddeb in wsrep_mysql_parse (thd=0x62b0000ee288, rawbuf=0x62b0000f52a8 "RENAME TABLE v TO v2", length=20, parser_state=0x7f11b782ba50, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:7756
      #10 0x0000560abddc4c90 in dispatch_command (command=COM_QUERY, thd=0x62b0000ee288, packet=0x62900033e289 "RENAME TABLE v TO v2", packet_length=20, is_com_multi=false, is_next_command=false) at /data/src/10.5/sql/sql_parse.cc:1825
      #11 0x0000560abddc1820 in do_command (thd=0x62b0000ee288) at /data/src/10.5/sql/sql_parse.cc:1358
      #12 0x0000560abe1de8a7 in do_handle_one_connection (connect=0x6110000613c8, put_in_cache=true) at /data/src/10.5/sql/sql_connect.cc:1422
      #13 0x0000560abe1de142 in handle_one_connection (arg=0x6110000613c8) at /data/src/10.5/sql/sql_connect.cc:1319
      #14 0x0000560abee7c016 in pfs_spawn_thread (arg=0x616000093a08) at /data/src/10.5/storage/perfschema/pfs.cc:2201
      #15 0x00007f11cc1e6fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
      #16 0x00007f11cba354cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
      

      Non-debug and debug builds crash the same way.
      Not reproducible on 10.4.

      Attachments

        Activity

          There are no comments yet on this issue.

          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.