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

Crash on insert with PARTITION clause after TRUNCATE

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 10.4.8, 10.4.10
    • N/A
    • Server
    • AWS Linux from mariadb yum repo
      Docker image 10.4 hash 92495405fc36
      Docker test is also running in AWS Linux

    Description

      Mysqld receives segfault (signal 11) on an insert statement following a truncate partition. It only happens if the insert has a PARTITION clause. If there are any other operations on the table without a PARTITION clause between the truncate and the insert, the crash does not occur.

      I tested in 10.4.8-MariaDB-1:10.4.8+maria~bionic-log in docker container, as well as 10.4.8-MariaDB-log on an Amazon Linux server.

      The error did not occur in version 10.2 which I was running previously in the Amazon Linux server.

      I have attached a sql script which can reproduce the crash on my docker container running 10.4.8 (docker image tagged 10.4 hash 92495405fc36).

      When producing the reproduction script I found that the error only occurred when the table had an AUTO_INCREMENT column. Without the AUTO_INCREMENT, no crash occurred.

      Attachments

        1. mariadb-bug.sql
          0.8 kB
          Jacob Williams
        2. mariadb-bug-v2.sql
          0.9 kB
          Jacob Williams

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jacob.williams Jacob Williams
              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.