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

Possible file descriptor leak @ libmariadbclient18 + YaSSL

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 10.1
    • N/A
    • SSL
    • None

    Description

      Hello,

      I've found that MySQL client @ MariaDB leaves one file descriptor open.

      OS is Debian Stretch.
      Perl is v5.24.1

      A quick one-liner for proof:

      perl -MDBI -e 'my ($host, $port, $user, $pass, $db) = ("some.remote.host", 3306, "user", "pass", "dbname"); $dbh = DBI->connect("DBI:mysql:database=$db;host=$host;port=$port;mysql_ssl=1", $user, $pass); $dbh->disconnect(); print `ls -l /proc/$$/fd | fgrep urandom`;'
      

      This results to:

      lr-x------ 1 root root 64 Nov  2 14:31 5 -> /dev/urandom
      

      With mysql_ssl=0 everything is fine.
      I suspect that we hit some YaSSL clean-up bug. But cannot claim this for sure.
      Thanks.

      Attachments

        Activity

          People

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