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

test_if_hard_path() crashes on recursively resolving $HOME

    XMLWordPrintable

Details

    • Can result in hang or crash
    • Fix crash when resolving `$HOME`
    • Q2/2026 Server Maintenance

    Description

      apply this change (let's say your tree is in ~/foo/bar/mariadb):

      --- a/mysql-test/main/symlink.test
      +++ b/mysql-test/main/symlink.test
      @@ -40,7 +40,7 @@ drop table t2;
       
       --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
       eval create table t9 (a int not null auto_increment, b char(16) not null, primary key (a)) 
      -engine=myisam data directory="$MYSQLTEST_VARDIR/tmp" index directory="$MYSQLTEST_VARDIR/run";
      +engine=myisam data directory="~/foo/bar/mariadb/mysql-test/var/tmp" index directory="$MYSQLTEST_VARDIR/run";
       
       insert into t9 select * from t1;
       check table t9;
      

      run

      $ HOME='~/' ./mtr main.symlink
      

      Attachments

        Activity

          People

            raghunandan.bhat Raghunandan Bhat
            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.