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

mysqld gets SIGFPE when mysql.user table is empty

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.30, 5.2.14, 5.3.12
    • Fix Version/s: 5.5.31, 5.3.13, 5.2.15
    • Component/s: None
    • Labels:
      None

      Description

      I realize that having mysql.user empty is a very rare use case, but still I think it's not nice to just crash in the face of someone who screw his database like this.

      The culprit is sql/sql_acl.cc:8159:
      uint i= nr1 % acl_users.elements;

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            serg Sergei Golubchik added a comment -

            pushed in 5.2

            Show
            serg Sergei Golubchik added a comment - pushed in 5.2
            Hide
            allight Alex Light added a comment -

            When was this merged into mariadb 10?

            Show
            allight Alex Light added a comment - When was this merged into mariadb 10?
            Hide
            serg Sergei Golubchik added a comment -

            On 2013-06-06, revno 3758

            Show
            serg Sergei Golubchik added a comment - On 2013-06-06, revno 3758

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                pivanof Pavel Ivanov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m