Segmentation fault in multipath RHEL 7.3

Solution Verified - Updated -

Issue

  • After updating device-mapper-multipath rpms to 0.4.9-99.el7.x86_64 or later, there are segfaults observed for multipathd and libc:

    $ grep segfault var/log/messages*
    Jun  6 10:16:06 hostname kernel: multipath[1954]: segfault at 0 ip 00007f98d91544db sp 00007fff7f4bd718 error 4 in libc-2.17.so[7f98d901f000+1b7000]
    Jun  6 10:16:48 hostname kernel: multipath[23218]: segfault at 0 ip 00007f767e7bc4db sp 00007ffdc6c755f8 error 4 in libc-2.17.so[7f767e687000+1b7000]
    Jun  6 10:16:48 hostname kernel: multipathd[23224]: segfault at 0 ip 00007f107b4404db sp 00007ffcaa7c2de8 error 4 in libc-2.17.so[7f107b30b000+1b7000]
    
  • The current issue is being observed only when there is a no_path_retry option enabled for all devices by adding all_devs yes option:

    $ less etc/multipath.conf 
    [...]
    devices {
        device {
        all_devs                yes     <----------
        no_path_retry           5       <----------
        }
    }
    [...]
    
  • With above options added to /etc/multipath.conf file, if the multipath device maps are re-scanned with multipath -v2 or multipathd service is restarted, then it immediately results in a segmentation fault:

    [root@testsystem ~]# multipath -v2
    Segmentation fault
    
    Jun 15 17:10:06 testsystem kernel: multipath[15506]: segfault at 0 ip 00007f60c204a551 sp 00007ffcd1bbee50 error 4 in libc-2.17.so[7f60c1fab000+1b7000]
    
    [root@testsystem ~]# systemctl restart multipathd
    [root@testsystem ~]# 
    
    Jun 15 17:11:42 testsystem systemd: Starting Device-Mapper Multipath Device Controller...
    Jun 15 17:11:42 testsystem kernel: multipath[15514]: segfault at 0 ip 00007f4bd8b51551 sp 00007ffd37e89eb0 error 4 in libc-2.17.so[7f4bd8ab2000+1b7000]
    Jun 15 17:11:42 testsystem kernel: multipathd[15520]: segfault at 0 ip 00007f8efd097551 sp 00007ffd99598e70 error 4 in libc-2.17.so[7f8efcff8000+1b7000]
    Jun 15 17:11:42 testsystem systemd: Started Device-Mapper Multipath Device Controller.
    Jun 15 17:11:42 testsystem systemd: multipathd.service: main process exited, code=killed, status=11/SEGV
    Jun 15 17:11:42 testsystem systemd: Unit multipathd.service entered failed state.
    Jun 15 17:11:42 testsystem systemd: multipathd.service failed.
    

Environment

  • Red Hat Enterprise Linux 7.3
  • Affected versions of device-mapper-multipath:
    • 0.4.9-99.el7
    • 0.4.9-99.el7_3.1
    • 0.4.9-99.el7_3.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content