Bug#751993: another instance

Vincent McIntyre vincent.mcintyre at csiro.au
Tue Nov 8 22:15:27 UTC 2016


Hi

I upgraded from wheezy and I see this segfault too.
I purged and reinstalled and still saw it.

I moved my multipath.conf away and the segfaults stopped.

I put back a multipath.conf with only comments in it - no segfault.

I added this section to the file - no segfault

blacklist {
#       devnode "^sda$"
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z][[0-9]*]"
        devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]"
}

I added this to the blacklist - segfault
        device {
                vendor DELL
        }

I changed that stanza to this - no segfault
        device {
                vendor Apple
        }

This does not segfault either
        device {
                vendor Dell
        }

This is a problem because I need to blacklist DELL,
multipath -l -v 3 gives me the listing below.
Note that at this point I have no fibre channel links plugged in,
I don't trust this package that far yet.

Farther below, backtrace for the segfaulting configuration.
I also tried blacklisting the 'product' (PERC 6/i) instead of
'vendor', that segfaulted too.
It would appear the segfault only occurs on a blacklist match.

Please consider upgrading the severity of this again.
Vince

# multipath -l -v 3 2>/dev/null
Nov 09 09:07:13 | libdevmapper version 1.02.90 (2014-09-01)
Nov 09 09:07:13 | DM multipath kernel driver v1.7.0
Nov 09 09:07:13 | loading /lib/multipath/libcheckdirectio.so checker
Nov 09 09:07:13 | loading /lib/multipath/libprioconst.so prioritizer
Nov 09 09:07:13 | sda: udev property ID_WWN whitelisted
Nov 09 09:07:13 | sda: not found in pathvec
Nov 09 09:07:13 | sda: mask = 0x21
Nov 09 09:07:13 | sda: dev_t = 8:0
Nov 09 09:07:13 | sda: size = 584843264
Nov 09 09:07:13 | sda: vendor = DELL
Nov 09 09:07:13 | sda: product = PERC 6/i
Nov 09 09:07:13 | sda: rev = 1.22
Nov 09 09:07:13 | sda: h:b:t:l = 0:2:0:0
Nov 09 09:07:13 | sda: path state = running

Nov 09 09:07:13 | sdb: udev property ID_WWN whitelisted
Nov 09 09:07:13 | sdb: not found in pathvec
Nov 09 09:07:13 | sdb: mask = 0x21
Nov 09 09:07:13 | sdb: dev_t = 8:16
Nov 09 09:07:13 | sdb: size = 11717836800
Nov 09 09:07:13 | sdb: vendor = DELL
Nov 09 09:07:13 | sdb: product = PERC 6/i
Nov 09 09:07:13 | sdb: rev = 1.22
Nov 09 09:07:13 | sdb: h:b:t:l = 0:2:1:0
Nov 09 09:07:13 | sdb: path state = running

Nov 09 09:07:13 | sdc: udev property ID_WWN whitelisted
Nov 09 09:07:13 | sdc: not found in pathvec
Nov 09 09:07:13 | sdc: mask = 0x21
Nov 09 09:07:13 | sdc: dev_t = 8:32
Nov 09 09:07:13 | sdc: size = 39059456000
Nov 09 09:07:13 | sdc: vendor = DELL
Nov 09 09:07:13 | sdc: product = PERC H800
Nov 09 09:07:13 | sdc: rev = 2.10
Nov 09 09:07:13 | sdc: h:b:t:l = 2:2:0:0
Nov 09 09:07:13 | sdc: path state = running

Nov 09 09:07:13 | sr0: blacklisted, udev property missing
Nov 09 09:07:13 | loop0: blacklisted, udev property missing
Nov 09 09:07:13 | loop1: blacklisted, udev property missing
Nov 09 09:07:13 | loop2: blacklisted, udev property missing
Nov 09 09:07:13 | loop3: blacklisted, udev property missing
Nov 09 09:07:13 | loop4: blacklisted, udev property missing
Nov 09 09:07:13 | loop5: blacklisted, udev property missing
Nov 09 09:07:13 | loop6: blacklisted, udev property missing
Nov 09 09:07:13 | loop7: blacklisted, udev property missing
Nov 09 09:07:13 | dm-0: blacklisted, udev property missing
Nov 09 09:07:13 | dm-1: blacklisted, udev property missing
Nov 09 09:07:13 | dm-2: blacklisted, udev property missing
Nov 09 09:07:13 | dm-3: blacklisted, udev property missing
Nov 09 09:07:13 | dm-4: blacklisted, udev property missing
Nov 09 09:07:13 | dm-5: blacklisted, udev property missing
Nov 09 09:07:13 | dm-6: blacklisted, udev property missing
Nov 09 09:07:13 | dm-7: blacklisted, udev property missing
Nov 09 09:07:13 | dm-8: blacklisted, udev property missing
Nov 09 09:07:13 | dm-9: blacklisted, udev property missing
===== paths list =====
uuid hcil    dev dev_t pri dm_st chk_st vend/prod/rev  dev_st 
     0:2:0:0 sda 8:0   -1  undef undef  DELL,PERC 6/i  running
     0:2:1:0 sdb 8:16  -1  undef undef  DELL,PERC 6/i  running
     2:2:0:0 sdc 8:32  -1  undef undef  DELL,PERC H800 running
Nov 09 09:07:13 | unloading const prioritizer
Nov 09 09:07:13 | unloading directio checker


# gdb -- multipath -l
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from multipath...Reading symbols from /usr/lib/debug//sbin/multipath...done.
done.
/root/-l: No such file or directory.
(gdb) run
Starting program: /sbin/multipath 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
warning: the debug information found in "/usr/lib/debug//lib/libmultipath.so.0" does not match "/lib/libmultipath.so.0" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/lib/libmultipath.so.0" does not match "/lib/libmultipath.so.0" (CRC mismatch).


Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7047e02 in __regexec (preg=0x555555767780, string=0x55555575ea10 "Universal Xport", nmatch=0, pmatch=0x0, eflags=0) at regexec.c:247
247     regexec.c: No such file or directory.
(gdb) bt
#0  0x00007ffff7047e02 in __regexec (preg=0x555555767780, string=0x55555575ea10 "Universal Xport", nmatch=0, pmatch=0x0, eflags=0) at regexec.c:247
#1  0x00007ffff7544795 in _blacklist_device () from /lib/libmultipath.so.0
#2  0x00007ffff7544a0f in setup_default_blist () from /lib/libmultipath.so.0
#3  0x00007ffff7547a89 in load_config () from /lib/libmultipath.so.0
#4  0x0000555555555ee0 in main (argc=1, argv=0x7fffffffeb38) at main.c:433
(gdb) quit
A debugging session is active.

        Inferior 1 [process 30015] will be killed.

Quit anyway? (y or n) y

# grep -v ^# /etc/multipath.conf


blacklist {
        devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
        devnode "^hd[a-z][[0-9]*]"
        devnode "^cciss!c[0-9]d[0-9]*[p[0-9]*]"
        device {
                vendor DELL
        }
}



More information about the pkg-lvm-maintainers mailing list