You are not logged in.

#1 2012-11-23 15:31:20

mxx
Member
Registered: 2012-11-23
Posts: 27

multipathd segfaults (downgrading multipath-tools works)

Edit: downgrading to multipath-tools-0.4.9-10-x86_64 makes it work again.
Although like the current version which segfaults it also comes with a wrong .service file for /sbin/multipathd where it's actually in /usr/bin.

Hi,

it would be great if someone could help me out with this weird issue ;)

I was running multipathd with iscsi without any problems in the past (stopped using both about 2 weeks ago because I had to change my nas).

All packages are up to date (23rd Nov)
Linux 3.6.6-1-ARCH #1 SMP PREEMPT x86_64

Whenever I try to run multipathd (reverted to default /etc/multipath.conf) it segfaults.
The "multipath" binary crashes too.
It doesn't matter whether I use systemd or run them manually.

Exactly one new entry in dmesg:

multipathd[6941]: segfault at 8 ip 00007f805d93641a sp 00007fffd6e844c0 error 4 in ld-2.16.so[7f805d92b000+21000]

journalctl -n:

systemd[1]: Starting Device-Mapper Multipath Device Controller...
systemd[1]: multipathd.service: control process exited, code=killed status=11
kernel: multipathd[6941]: segfault at 8 ip 00007f805d93641a sp 00007fffd6e844c0 error 4 in ld-2.16.so[7f805d92b000+21000]
systemd[1]: Failed to start Device-Mapper Multipath Device Controller.
systemd[1]: Unit multipathd.service entered failed state

strace multipathd:

execve("/usr/bin/multipathd", ["multipathd"], [/* 58 vars */]) = 0
brk(0)                                  = 0x1ed0000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=291234, ...}) = 0
mmap(NULL, 291234, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd37dfce000
close(3)                                = 0
open("/usr/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@l\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=138205, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd37dfcd000
mmap(NULL, 2208672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd37dbd9000
mprotect(0x7fd37dbf0000, 2093056, PROT_NONE) = 0
mmap(0x7fd37ddef000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7fd37ddef000
mmap(0x7fd37ddf1000, 13216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd37ddf1000
close(3)                                = 0
open("/usr/lib/libdevmapper.so.1.02", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260j\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=254737, ...}) = 0
mmap(NULL, 2329936, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd37d9a0000
mprotect(0x7fd37d9d5000, 2097152, PROT_NONE) = 0
mmap(0x7fd37dbd5000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x35000) = 0x7fd37dbd5000
mmap(0x7fd37dbd8000, 3408, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd37dbd8000
close(3)                                = 0
open("/usr/lib/libreadline.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200V\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0555, st_size=326724, ...}) = 0
mmap(NULL, 2380712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd37d75a000
mprotect(0x7fd37d796000, 2097152, PROT_NONE) = 0
mmap(0x7fd37d996000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3c000) = 0x7fd37d996000
mmap(0x7fd37d99e000, 5032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd37d99e000
close(3)                                = 0
open("/usr/lib/tls/x86_64/libmultipath.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls/x86_64", 0x7fff5ef6fb50) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libmultipath.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/tls", 0x7fff5ef6fb50)    = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64/libmultipath.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64", 0x7fff5ef6fb50) = -1 ENOENT (No such file or directory)
open("/usr/lib/libmultipath.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\317\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=272620, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd37dfcc000
mmap(NULL, 2338392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd37d51f000
mprotect(0x7fd37d556000, 2097152, PROT_NONE) = 0
mmap(0x7fd37d756000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x37000) = 0x7fd37d756000
close(3)                                = 0
open("/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\30\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2010709, ...}) = 0
mmap(NULL, 3828848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd37d178000
mprotect(0x7fd37d315000, 2097152, PROT_NONE) = 0
mmap(0x7fd37d515000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19d000) = 0x7fd37d515000
mmap(0x7fd37d51b000, 15472, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd37d51b000
close(3)                                = 0
open("/usr/lib/libudev.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360D\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=67560, ...}) = 0
mmap(NULL, 2164840, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd37cf67000
mprotect(0x7fd37cf77000, 2093056, PROT_NONE) = 0
mmap(0x7fd37d176000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf000) = 0x7fd37d176000
close(3)                                = 0
open("/usr/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\"\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=31776, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd37dfcb000
mmap(NULL, 2128912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd37cd5f000
mprotect(0x7fd37cd66000, 2093056, PROT_NONE) = 0
mmap(0x7fd37cf65000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7fd37cf65000
close(3)                                = 0
open("/usr/lib/libncursesw.so.5", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260M\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=378800, ...}) = 0
mmap(NULL, 2475912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd37cb02000
mprotect(0x7fd37cb5a000, 2093056, PROT_NONE) = 0
mmap(0x7fd37cd59000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x57000) = 0x7fd37cd59000
mmap(0x7fd37cd5e000, 1928, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd37cd5e000
close(3)                                = 0
open("/usr/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=14648, ...}) = 0
mmap(NULL, 2109720, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd37c8fe000
mprotect(0x7fd37c901000, 2093056, PROT_NONE) = 0
mmap(0x7fd37cb00000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fd37cb00000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd37dfca000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd37dfc9000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd37dfc8000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd37dfc7000
arch_prctl(ARCH_SET_FS, 0x7fd37dfc8700) = 0
mprotect(0x7fd37d515000, 16384, PROT_READ) = 0
mprotect(0x7fd37cb00000, 4096, PROT_READ) = 0
mprotect(0x7fd37cd59000, 16384, PROT_READ) = 0
mprotect(0x7fd37ddef000, 4096, PROT_READ) = 0
mprotect(0x7fd37cf65000, 4096, PROT_READ) = 0
mprotect(0x7fd37d176000, 4096, PROT_READ) = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x8} ---
+++ killed by SIGSEGV +++
Segmentation fault

The only foreign packages I remember installing after the point where it still worked, were netflix-desktop from AUR and installing vmware workstation.

I reinstalled glibc and multipath-tools but it didn't help at all.
What I found a bit strange was that the systemd .service file for multipathd pointed to /bin/multipathd, but my binary is in /usr/bin/.


Since everything else seems to work without any problems and there are no other segfaults (at least everything's stable and dmesg | grep segfault doesn't list anything except multipathd) I really have no idea where to start looking...

Thank you very much for your time,

Max

Last edited by mxx (2012-11-23 16:39:37)

Offline

#2 2012-11-23 16:25:54

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: multipathd segfaults (downgrading multipath-tools works)

I don't used multipath on my Arch box but I'm familair with it, so I installed it and have the same issue as you.  I guess a bug report is in order.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#3 2012-11-23 16:29:52

mxx
Member
Registered: 2012-11-23
Posts: 27

Re: multipathd segfaults (downgrading multipath-tools works)

alphaniner wrote:

I don't used multipath on my Arch box but I'm familair with it, so I installed it and have the same issue as you.  I guess a bug report is in order.

Thank you! That's really good to hear :) This was driving me insane yesterday :D
Unfortunately I've never done that... no idea if it should be reported upstream et.c.

I'll try downgrading multipath-tools in the mean while.

Edit: worked.

Last edited by mxx (2012-11-23 16:37:44)

Offline

Board footer

Powered by FluxBB