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

conflicting data types, crashing clients

Details

    • 10.2.7-1

    Description

      MariaDB 10.2.x (including current stable version 10.2.6) ships with new libmariadb. This new client library is built with new header files mariadb_*.h.

      When compiling clients these are linked against new libmariadb, but use old header file mysql.h that is still shipped.

      The header files use conflicting data definitions. One example is struct st_mysql_stmt, defined in mysql.h at line 723 and mariadb_stmt.h at line 193. Possibly there are more conflicts.

      These conflicting data definitions lead to memory corruption, illegal memory access and crashes for the client. This has been discovered with perl-dbd-mysql where lots of tests fail with make test.

      Attachments

        Activity

          eworm Christian Hesse created issue -
          elenst Elena Stepanova made changes -
          Field Original Value New Value
          Assignee Georg Richter [ georg ]
          elenst Elena Stepanova made changes -
          Fix Version/s 10.2 [ 14601 ]
          serg Sergei Golubchik made changes -
          Priority Major [ 3 ] Critical [ 2 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Sprint 10.2.7-1 [ 171 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Rank Ranked higher
          serg Sergei Golubchik made changes -
          Labels libmariadb libmariadb need_feedback
          elenst Elena Stepanova made changes -
          Fix Version/s N/A [ 14700 ]
          Fix Version/s 10.2 [ 14601 ]
          Resolution Incomplete [ 4 ]
          Status Open [ 1 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 80980 ] MariaDB v4 [ 152235 ]

          People

            georg Georg Richter
            eworm Christian Hesse
            Votes:
            0 Vote for this issue
            Watchers:
            6 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.