Segmentation fault in multipath RHEL 7.3
Issue
-
After updating
device-mapper-multipathrpms to0.4.9-99.el7.x86_64or later, there are segfaults observed formultipathdandlibc:$ 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_retryoption enabled for all devices by addingall_devs yesoption:$ less etc/multipath.conf [...] devices { device { all_devs yes <---------- no_path_retry 5 <---------- } } [...] -
With above options added to
/etc/multipath.conffile, if the multipath device maps are re-scanned withmultipath -v2ormultipathdservice 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.el70.4.9-99.el7_3.10.4.9-99.el7_3.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
