Issue with autofs (coredump) comand: systemctl reload autofs generate coredump on rhel9.2

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 9.2
  • autofs-5.1.7-36.el9.x86_64

Issue

  • systemctl reload autofs generates a coredump each time. After reboot everything is OK again.
  • autofs works fails at autofs-5.1.7-36.el9.x86_64

Resolution

Root Cause

  • This issue is caused by an internal bug 2216535
  • autofs reload a coredump.

Diagnostic Steps

  • autofs status shows the failure below:
● systemctl status autofs
× autofs.service - Automounts filesystems on demand
     Loaded: loaded (/usr/lib/systemd/system/autofs.service; enabled; preset: disabled)
     Active: failed (Result: core-dump) since Fri 2023-06-09 16:26:25 CEST; 2min 8s ago
   Duration: 2min 19.913s
   Main PID: 1815 (code=dumped, signal=SEGV)
        CPU: 39ms
Jun 09 16:26:25 dal-v-128335 automount[1815]: parse_mount: parse(sun): expanded entry: -rw,retrans=50,retry=50,sloppy,noacl,hard,timeo=600,bg,intr,proto=tcp,rsize=65536,wsize=65536,vers=3,maxgroups=32 s>
Jun 09 16:26:25 dal-v-128335 automount[1815]: parse_mount: parse(sun): gathered options: rw,retrans=50,retry=50,sloppy,noacl,hard,timeo=600,bg,intr,proto=tcp,rsize=65536,wsize=65536,vers=3,maxgroups=32
Jun 09 16:26:25 dal-v-128335 automount[1815]: parse_mount: parse(sun): dequote("example1.dassault-.fr:/X.X_0504_098/uscnu_data") -> example1.dassault-.fr:/ns_np_op_data_fsc_050>
Jun 09 16:26:25 dal-v-128335 automount[1815]: parse_mount: parse(sun): core of entry: options=rw,retrans=50,retry=50,sloppy,noacl,hard,timeo=600,bg,intr,proto=tcp,rsize=65536,wsize=65536,vers=3,maxgroup>
Jun 09 16:26:25 dal-v-128335 automount[1815]: sun_mount: parse(sun): mounting root /dx/sx/X/home/data, mountpoint /dx/sc\x/nx/home/data, what example1.dassault-.fr:/x.x.x_fsc_0504_098/uscnu>
Jun 09 16:26:25 dal-v-128335 automount[1815]: re-connected to /dx/sx/nx/home/data
Jun 09 16:26:25 dal-v-128335 automount[1815]: remount_active_mount: re-connected to mount /dx/sx/nx/home/data
Jun 09 16:26:25 dal-v-128335 systemd[1]: autofs.service: Main process exited, code=dumped, status=11/SEGV
Jun 09 16:26:25 dal-v-128335 systemd[1]: autofs.service: Failed with result 'core-dump'.
Jun 09 16:26:25 dal-v-128335 systemd[1]: Failed to start Automounts filesystems on demand..
#2  0x0000562fc1420fa2 in mount_autofs_direct (ap=0x562fc21d9fb0) at /usr/src/debug/autofs-5.1.7-36.el9.x86_64/daemon/direct.c:508
        __clframe = {__cancel_routine = <optimized out>, __cancel_arg = 0x562fc21d6670, __do_it = 1, __cancel_type = <optimized out>}
        timeout = 300
        __clframe = {__cancel_routine = <optimized out>, __cancel_arg = 0x562fc21a68e0, __do_it = 1, __cancel_type = <optimized out>}
        __clframe = {__cancel_routine = <optimized out>, __cancel_arg = 0x562fc21d6d70, __do_it = 1, __cancel_type = <optimized out>}
        map = 0x562fc21da0b0
        nc = 0x562fc21a68e0
        mc = 0x562fc21d6670
        me = 0x7f7c2804f160
        ne = <optimized out>
        nested = <optimized out>
        now = <optimized out>
        __FUNCTION__ = "mount_autofs_direct"
#3  0x0000562fc14218b8 in mount_autofs (root=0x7f7c28000b60 "/-", ap=0x562fc21d9fb0) at /usr/src/debug/autofs-5.1.7-36.el9.x86_64/daemon/automount.c:1231
        status = 0
        status = <optimized out>
#4  handle_mounts (arg=0x7fff9ed3ef70) at /usr/src/debug/autofs-5.1.7-36.el9.x86_64/daemon/automount.c:1937
        __clframe = {__cancel_routine = 0x562fc1419380 <return_start_status>, __cancel_arg = 0x7fff9ed3ef70, __do_it = 1, __cancel_type = <optimized out>}
        suc = <optimized out>
        ap = 0x562fc21d9fb0
        cancel_state = 0
        status = <optimized out>
        root = 0x7f7c28000b60 "/-"
        __FUNCTION__ = "handle_mounts"
#5  0x00007f7c34c9f802 in start_thread (arg=<optimized out>) at pthread_create.c:443
        ret = <optimized out>
        pd = <optimized out>
        out = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140735858076928, 2383233952604443010, 140171391325760, 9, 140171438322992, 0, -2311875622829076094, -2311864807752773246}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, 
              canceltype = 0}}}
        not_first_call = <optimized out>
#6  0x00007f7c34c3f450 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments