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

InnoDB reports corruption on 32-bit platforms with ibd files sizes > 4GB

    XMLWordPrintable

Details

    Description

      Mariadb reports a space/page mismatch and index corruption on 32-bit platforms when loading large InnoDB files. This started in the 10.5 series and is reproducible on each version I have tested since that series.

      I tracked the issue down to a 32-bit truncation when the file offset is calculated in storage/innobase/buf/buf0rea.cc.

      Casting this to os_offset_t solves the issue (patch attached).

      On 64-bit platforms this calculation would naturally occur in a 64-bit register so it is not reproducible there.

      Attachments

        Issue Links

          Activity

            People

              marko Marko Mäkelä
              danwood76 Danny Wood
              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.