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

LP:1007776 - mysqld crashes with assertion space != 0 when using invalid innodb ibdata1

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Not a Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      When using an invalid innodb data file (ibdata1) mysqld crashed for me.

      On Windows x64, mariadb-5.5.24-winx64.

      This happened on an upgrade from 5.2 to 5.5, where I had a seemingly older ibdata1 file in the data directory, but used a custom innodb_data_home_dir previously.
      Upon upgrading, without the old innodb_data_home_dir set correctly, the outdated ibdata1 from the data directory seems to have been read.

      When starting mysqld, it crashed with
      > 120602 11:21:08 InnoDB: Assertion failure in thread 34164 in file fsp0fsp.c line 2874
      > InnoDB: Failing assertion: space != 0

      The full log in detail is attached.

      What I would expect is not a crash, but a sane error-handling, quitting with an appropriate error being logged/printed out.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            kissaki Kissaki added a comment -

            Full error log from the respective mysqld call.
            LPexportBug1007776_crash.log

            Show
            kissaki Kissaki added a comment - Full error log from the respective mysqld call. LPexportBug1007776_crash.log
            Hide
            kissaki Kissaki added a comment -

            Re: mysqld crashes with assertion space != 0 when using invalid innodb ibdata1

            Show
            kissaki Kissaki added a comment - Re: mysqld crashes with assertion space != 0 when using invalid innodb ibdata1
            Hide
            wlad Vladislav Vaintroub added a comment -

            Re: mysqld crashes with assertion space != 0 when using invalid innodb ibdata1
            I' changing the status to "invalid", since it seems to be a user error rather than Innodb logic. Innodb can't always know what you're doing , and log appropriate error message. You data file can be corupt on different reasons, so crashing like this is not insane, to have some attention from a DBA.

            As for the upgrade, I added "General recommendations" section in the KB article about upgrading on Windows :http://kb.askmonty.org/en/upgrading-mariadb-on-windows/ . If one follows the steps, no such errors should happen .

            Show
            wlad Vladislav Vaintroub added a comment - Re: mysqld crashes with assertion space != 0 when using invalid innodb ibdata1 I' changing the status to "invalid", since it seems to be a user error rather than Innodb logic. Innodb can't always know what you're doing , and log appropriate error message. You data file can be corupt on different reasons, so crashing like this is not insane, to have some attention from a DBA. As for the upgrade, I added "General recommendations" section in the KB article about upgrading on Windows : http://kb.askmonty.org/en/upgrading-mariadb-on-windows/ . If one follows the steps, no such errors should happen .
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 1007776

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 1007776

              People

              • Assignee:
                Unassigned
                Reporter:
                kissaki Kissaki
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: