Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50891

mongod 3.6.20-rc2 core dumps if dbpath DNE or perms block

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.6.15, 3.6.20
    • Fix Version/s: 3.6.22
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide
      1. Install MDB server via either DEB file / TGZ file / or apt package manager.
      2. Run a chown 444 on the dbpath your mongod is using
      3. Core Dump

      In actual practice, this is largely missed on DEB / apt installs, since both create the necessary dir with correct permissions. But this will spring on many TGZ initial installations, and will likely surface for the package manager / DEB installations during initial configuration, especially if admins seek to use custom users to run their mongod instances.

      Show
      Install MDB server via either DEB file / TGZ file / or apt package manager. Run a chown 444 on the dbpath your mongod is using Core Dump In actual practice, this is largely missed on DEB / apt installs, since both create the necessary dir with correct permissions. But this will spring on many TGZ initial installations, and will likely surface for the package manager / DEB installations during initial configuration, especially if admins seek to use custom users to run their mongod instances.
    • Sprint:
      Service arch 2020-10-05, Service arch 2020-11-02, Service arch 2020-11-16, Service arch 2020-11-30

      Description

      Attempting to spin up a v3.6.20-rc2 mongod reliably core dumps if either:

      • the dbpath does not exist, or
      • the dbpath is permissions restricted to the user that launches mongod.

      This does not match expected behavior, where an error is instead thrown and the server terminates gracefully.

      See attached repro file. All it takes is a chmod 444 on the dbpath to core dump the next mongod start attempt.

        Attachments

          Activity

            People

            Assignee:
            gabriel.russell Gabriel Russell (Inactive)
            Reporter:
            andrew.feierabend Andrew Feierabend
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: