Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5.39, 10.0.13
    • 5.5.42, 10.0.16
    • SSL
    • None
    • mariadb built with OpenSSL

    Description

      Calling mysql_server_end calls OpenSSL cleanup functions via vio_end.
      This is a problem, as OpenSSL might very well be still used in the application using libmysqlclient.

      In my case, it's a plugin that's dynamicaly loaded and unloaded at runtime into an application that itself doesn't use mysql.
      The plugin calls mysql_server_init on load, and mysql_server_end on unload, which is the latest point the plugin still has control.

      As a result, the application that loads and unloads the plugin is no longer able to accept or initiate any SSL encrypted connections.
      Depending on what it does with OpenSSL, it might very well also crash, but i haven't managed to trigger a crash.

      Here's a short example on how to trigger the issue:
      https://gist.github.com/BtbN/3445c13dc9095f371aa9

      Attachments

        Activity

          Transition Time In Source Status Execution Times
          Sergei Golubchik made transition -
          Open In Progress
          137d 16h 46m 1
          Sergei Golubchik made transition -
          In Progress Stalled
          4s 1
          Sergei Golubchik made transition -
          Stalled In Progress
          3d 23h 30m 1
          Sergei Golubchik made transition -
          In Progress Closed
          1h 38m 1

          People

            serg Sergei Golubchik
            Oromit Timo R.
            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.