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

Spider crash on fake loop detection variables

    XMLWordPrintable

Details

    • Can result in hang or crash
    • Spider could crash when loop detection variables were artificially manipulated.

    Description

      install plugin spider soname 'ha_spider';
       
      set global spider_same_server_link=1;
       
      eval create server srv
        foreign data wrapper mysql
        options (
          host 'localhost',
          user 'root',
          socket '$MASTER_MYSOCK'
        );
       
      create table t1 (id int primary key, data varchar(255));
      insert into t1 values (1, 'test'), (2, 'data');
       
      create table st1 (id int primary key, data varchar(255)) engine=spider
      comment='wrapper "mysql", srv "srv", table "t1"';
       
      set @`spider_lc_./test/st1` = concat('-', repeat('x', 900000), '-pid-tbl-');
      select * from st1 limit 1;
       
      uninstall plugin spider;
      

      Attachments

        Activity

          People

            serg Sergei Golubchik
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.