Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-155

segmentation fault on calling connection.get_server_version()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.6
    • Fix Version/s: 1.0.7
    • Component/s: Generic
    • Labels:
    • Environment:
      Python 3.9.5
      Linux 5.10.36
      GCC 10.2

      Description

      Calling a connection objects get_server_version function returns the version once, and then on a second or third call will segfault the interpreter.
      Additionally sometimes it will return the version once, and then return garbaged data.
      It is more accurate to say that get_server_version returns the version once and then goes into undefined behavior
      server_version_info and server_version do not suffer from this.

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            ultrabear Alex Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration