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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.22
    • Affects Version/s: 3.6.15, 3.6.20
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • 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.
    • Service arch 2020-10-05, Service arch 2020-11-02, Service arch 2020-11-16, Service arch 2020-11-30

      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.

        1. 3.6.20-rc2_core_dump_repro
          20 kB
          Andrew Feierabend

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

              Created:
              Updated:
              Resolved: