Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-7940

Main process exited after running `systemctl reload autofs.service`

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-9.1.0
    • autofs
    • None
    • None
    • sst_filesystems
    • ssg_filesystems_storage_and_HA
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      Running the command `systemctl reload autofs.service` returns to the prompt without any output (no news are good news, right?). But checking the service status by running `systemctl status autofs.service` shows that the main process exited.

      Instead of reloading the config the status changed from active to failed. To recover from this issue run `systemctl start autofs.service`.

      Version-Release number of selected component (if applicable):
      autofs-5.1.7-32.el9_1.1.x86_64
      libsss_autofs-2.7.3-4.el9.x86_64
      kernel 5.14.0-162.6.1.el9_1.x86_64

      How reproducible:
      This issue is reproducible on any fresh install of RHEL 9.1.

      Steps to Reproduce:
      1. Take a fresh install of RHEL 9.1 (e.g. with minimal environment).
      2. Run `# dnf in autofs`.
      3. Run `# systemctl enable --now autofs`.
      4. Check that `# systemctl status autofs` returns active and running.
      5. Run `# systemctl reload autofs`.
      6. Run `# systemctl status autofs` again.

      Actual results:

      ~~~
      [root@rhel91-2023-03-24 ~]# systemctl reload autofs
      [root@rhel91-2023-03-24 ~]# systemctl --no-pager status autofs
      × autofs.service - Automounts filesystems on demand
      Loaded: loaded (/usr/lib/systemd/system/autofs.service; enabled; vendor preset: disabled)
      Active: failed (Result: signal) since Fri 2023-03-24 10:11:15 CET; 2s ago
      Duration: 33.915s
      Process: 14310 ExecStart=/usr/sbin/automount $OPTIONS --systemd-service --dont-check-daemon (code=killed, signal=SEGV)
      Process: 14324 ExecReload=/usr/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
      Main PID: 14310 (code=killed, signal=SEGV)
      CPU: 23ms

      Mar 24 10:10:41 rhel91-2023-03-24 systemd[1]: Starting Automounts filesystems on demand...
      Mar 24 10:10:41 rhel91-2023-03-24 systemd[1]: Started Automounts filesystems on demand.
      Mar 24 10:11:14 rhel91-2023-03-24 systemd[1]: Reloading Automounts filesystems on demand...
      Mar 24 10:11:14 rhel91-2023-03-24 systemd[1]: Reloaded Automounts filesystems on demand.
      Mar 24 10:11:15 rhel91-2023-03-24 systemd[1]: autofs.service: Main process exited, code=killed, status=11/SEGV
      Mar 24 10:11:15 rhel91-2023-03-24 systemd[1]: autofs.service: Failed with result 'signal'.
      ~~~

      Expected results:
      Service should reload without segfault.

      Additional info:
      I have reproduced this issue on a new install using a test system. I attached the systemd-coredump, a screenshot from console and sos report to this bugzilla. They contain no secrets as it's a pure test system.

            ikent@redhat.com Ian Kent
            rhn-support-jkastnin Joerg Kastning
            Ian Kent Ian Kent
            Kun Wang Kun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: