Bug#798283: clvmd: stack smashing detected

Adi Kriegisch adi at kriegisch.at
Mon Sep 7 16:55:25 UTC 2015


Package: clvm
Version: 2.02.111-2.2
Severity: normal

Hi!

After upgrading one of my machines from wheezy to jessie, clvmd did not
start with the following error:
  | *** stack smashing detected ***: clvmd terminated
(also see attached log).

The cluster stack in use is OpenAIS (which worked fine, even after the
upgrade). In an attempt to bisect the issue, I first started to use the old
binary from wheezy (v2.02.95) which instantly worked, then tried to build
the sources (v2.02.100, v2.02.105, v2.02.110 and v2.02.111) on a wheezy
machine (sorry, I have no devel box with jessie available atm).
Interesting enough, all binaries built on wheezy work; just the one from
the package does not (with said error message).

The builds were done using dpkg-buildpackage with the upstream debian
directory. The binary built and stripped on wheezy is slightly smaller
in size:
  | -rwxr-xr-x 1 root root  912832 Sep  7 18:27 /usr/sbin/clvmd-v111-self
vs
  | -rwxr-xr-x 1 root root  937792 Sep  7 18:22 /usr/sbin/clvmd-v111-deb
Inspecting the binaries with ldd showed that the version built on wheezy is
linked against libudev.so.0 too (not just libudev.so.1 as the jessie
version is):
  | libudev.so.0 => /lib/x86_64-linux-gnu/libudev.so.0 (0x00007f1955441000)

I'd be happy to help in ironing out that bug. Do you need any more
information? Are there any tests I should run?

-- Adi
-------------- next part --------------
root at host:~# clvmd -T20 -Iopenais -f -d1
  local socket: connect failed: No such file or directory
CLVMD[5b171800]: Sep  7 18:34:27 CLVMD started
CLVMD[5b171800]: Sep  7 18:34:27 Our local node id is 60
CLVMD[5b171800]: Sep  7 18:34:27 Add_internal_client, fd = 8
CLVMD[5b171800]: Sep  7 18:34:27 Connected to OpenAIS
*** stack smashing detected ***: clvmd terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x731ff)[0x7fb7592a11ff]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7fb7593244c7]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x0)[0x7fb759324490]
clvmd(+0x16482)[0x7fb75aebb482]
clvmd(+0xe8fb)[0x7fb75aeb38fb]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7fb75924fb45]
clvmd(+0xee00)[0x7fb75aeb3e00]
======= Memory map: ========
7fb758277000-7fb75828d000 r-xp 00000000 fd:00 655438                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb75828d000-7fb75848c000 ---p 00016000 fd:00 655438                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb75848c000-7fb75848d000 rw-p 00015000 fd:00 655438                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7fb75848d000-7fb75858d000 rw-s 00000000 00:12 53705                      /run/shm/dispatch_buffer-tLzRBo (deleted)
7fb75858d000-7fb75868d000 rw-s 00000000 00:12 53705                      /run/shm/dispatch_buffer-tLzRBo (deleted)
7fb75868d000-7fb75878d000 rw-s 00000000 00:12 53704                      /run/shm/response_buffer-NNnWgi (deleted)
7fb75878d000-7fb75888d000 rw-s 00000000 00:12 53700                      /run/shm/dispatch_buffer-qisWgZ (deleted)
7fb75888d000-7fb75898d000 rw-s 00000000 00:12 53700                      /run/shm/dispatch_buffer-qisWgZ (deleted)
7fb75898d000-7fb7589f9000 r-xp 00000000 fd:00 655368                     /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7fb7589f9000-7fb758bf9000 ---p 0006c000 fd:00 655368                     /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7fb758bf9000-7fb758bfa000 r--p 0006c000 fd:00 655368                     /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7fb758bfa000-7fb758bfb000 rw-p 0006d000 fd:00 655368                     /lib/x86_64-linux-gnu/libpcre.so.3.13.1
7fb758bfb000-7fb758c00000 r-xp 00000000 fd:00 790269                     /usr/lib/libcoroipcc.so.4.0.0
7fb758c00000-7fb758dff000 ---p 00005000 fd:00 790269                     /usr/lib/libcoroipcc.so.4.0.0
7fb758dff000-7fb758e00000 r--p 00004000 fd:00 790269                     /usr/lib/libcoroipcc.so.4.0.0
7fb758e00000-7fb758e01000 rw-p 00005000 fd:00 790269                     /usr/lib/libcoroipcc.so.4.0.0
7fb758e01000-7fb758e22000 r-xp 00000000 fd:00 655442                     /lib/x86_64-linux-gnu/libselinux.so.1
7fb758e22000-7fb759022000 ---p 00021000 fd:00 655442                     /lib/x86_64-linux-gnu/libselinux.so.1
7fb759022000-7fb759023000 r--p 00021000 fd:00 655442                     /lib/x86_64-linux-gnu/libselinux.so.1
7fb759023000-7fb759024000 rw-p 00022000 fd:00 655442                     /lib/x86_64-linux-gnu/libselinux.so.1
7fb759024000-7fb759026000 rw-p 00000000 00:00 0
7fb759026000-7fb75902d000 r-xp 00000000 fd:00 655909                     /lib/x86_64-linux-gnu/librt-2.19.so
7fb75902d000-7fb75922c000 ---p 00007000 fd:00 655909                     /lib/x86_64-linux-gnu/librt-2.19.so
7fb75922c000-7fb75922d000 r--p 00006000 fd:00 655909                     /lib/x86_64-linux-gnu/librt-2.19.so
7fb75922d000-7fb75922e000 rw-p 00007000 fd:00 655909                     /lib/x86_64-linux-gnu/librt-2.19.so
7fb75922e000-7fb7593cd000 r-xp 00000000 fd:00 655937                     /lib/x86_64-linux-gnu/libc-2.19.so
7fb7593cd000-7fb7595cd000 ---p 0019f000 fd:00 655937                     /lib/x86_64-linux-gnu/libc-2.19.so
7fb7595cd000-7fb7595d1000 r--p 0019f000 fd:00 655937                     /lib/x86_64-linux-gnu/libc-2.19.so
7fb7595d1000-7fb7595d3000 rw-p 001a3000 fd:00 655937                     /lib/x86_64-linux-gnu/libc-2.19.so
7fb7595d3000-7fb7595d7000 rw-p 00000000 00:00 0
7fb7595d7000-7fb7595da000 r-xp 00000000 fd:00 790257                     /usr/lib/libquorum.so.4.0.0
7fb7595da000-7fb7597d9000 ---p 00003000 fd:00 790257                     /usr/lib/libquorum.so.4.0.0
7fb7597d9000-7fb7597da000 r--p 00002000 fd:00 790257                     /usr/lib/libquorum.so.4.0.0
7fb7597da000-7fb7597db000 rw-p 00003000 fd:00 790257                     /usr/lib/libquorum.so.4.0.0
7fb7597db000-7fb7597e2000 r-xp 00000000 fd:00 791823                     /usr/lib/libSaLck.so.3.0.0
7fb7597e2000-7fb7599e1000 ---p 00007000 fd:00 791823                     /usr/lib/libSaLck.so.3.0.0
7fb7599e1000-7fb7599e2000 rw-p 00006000 fd:00 791823                     /usr/lib/libSaLck.so.3.0.0
7fb7599e2000-7fb7599e8000 r-xp 00000000 fd:00 790251                     /usr/lib/libcpg.so.4.1.0
7fb7599e8000-7fb759be7000 ---p 00006000 fd:00 790251                     /usr/lib/libcpg.so.4.1.0
7fb759be7000-7fb759be8000 r--p 00005000 fd:00 790251                     /usr/lib/libcpg.so.4.1.0
7fb759be8000-7fb759be9000 rw-p 00006000 fd:00 790251                     /usr/lib/libcpg.so.4.1.0
7fb759be9000-7fb759c01000 r-xp 00000000 fd:00 655903                     /lib/x86_64-linux-gnu/libpthread-2.19.so
7fb759c01000-7fb759e00000 ---p 00018000 fd:00 655903                     /lib/x86_64-linux-gnu/libpthread-2.19.so
7fb759e00000-7fb759e01000 r--p 00017000 fd:00 655903                     /lib/x86_64-linux-gnu/libpthread-2.19.so
7fb759e01000-7fb759e02000 rw-p 00018000 fd:00 655903                     /lib/x86_64-linux-gnu/libpthread-2.19.so
7fb759e02000-7fb759e06000 rw-p 00000000 00:00 0
7fb759e06000-7fb759e0a000 r-xp 00000000 fd:00 791158                     /usr/lib/libdlm.so.3.0
7fb759e0a000-7fb75a00a000 ---p 00004000 fd:00 791158                     /usr/lib/libdlm.so.3.0
7fb75a00a000-7fb75a00b000 r--p 00004000 fd:00 791158                     /usr/lib/libdlm.so.3.0
7fb75a00b000-7fb75a00c000 rw-p 00005000 fd:00 791158                     /usr/lib/libdlm.so.3.0
7fb75a00c000-7fb75a018000 r-xp 00000000 fd:00 790274                     /usr/lib/libconfdb.so.4.1.0
7fb75a018000-7fb75a217000 ---p 0000c000 fd:00 790274                     /usr/lib/libconfdb.so.4.1.0
7fb75a217000-7fb75a218000 r--p 0000b000 fd:00 790274                     /usr/lib/libconfdb.so.4.1.0
7fb75a218000-7fb75a219000 rw-p 0000c000 fd:00 790274                     /usr/lib/libconfdb.so.4.1.0
7fb75a219000-7fb75a21e000 r-xp 00000000 fd:00 790220                     /usr/lib/libcman.so.3.0
7fb75a21e000-7fb75a41d000 ---p 00005000 fd:00 790220                     /usr/lib/libcman.so.3.0
7fb75a41d000-7fb75a41e000 r--p 00004000 fd:00 790220                     /usr/lib/libcman.so.3.0
7fb75a41e000-7fb75a41f000 rw-p 00005000 fd:00 790220                     /usr/lib/libcman.so.3.0
7fb75a41f000-7fb75a463000 r-xp 00000000 fd:00 655852                     /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1
7fb75a463000-7fb75a663000 ---p 00044000 fd:00 655852                     /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1
7fb75a663000-7fb75a664000 r--p 00044000 fd:00 655852                     /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1
7fb75a664000-7fb75a667000 rw-p 00045000 fd:00 655852                     /lib/x86_64-linux-gnu/libdevmapper.so.1.02.1
7fb75a667000-7fb75a668000 rw-p 00000000 00:00 0
7fb75a668000-7fb75a66e000 r-xp 00000000 fd:00 659324                     /lib/x86_64-linux-gnu/libdevmapper-event.so.1.02.1
7fb75a66e000-7fb75a86d000 ---p 00006000 fd:00 659324                     /lib/x86_64-linux-gnu/libdevmapper-event.so.1.02.1
7fb75a86d000-7fb75a86e000 r--p 00005000 fd:00 659324                     /lib/x86_64-linux-gnu/libdevmapper-event.so.1.02.1
7fb75a86e000-7fb75a86f000 rw-p 00006000 fd:00 659324                     /lib/x86_64-linux-gnu/libdevmapper-event.so.1.02.1
7fb75a86f000-7fb75a872000 r-xp 00000000 fd:00 655859                     /lib/x86_64-linux-gnu/libdl-2.19.so
7fb75a872000-7fb75aa71000 ---p 00003000 fd:00 655859                     /lib/x86_64-linux-gnu/libdl-2.19.so
7fb75aa71000-7fb75aa72000 r--p 00002000 fd:00 655859                     /lib/x86_64-linux-gnu/libdl-2.19.so
7fb75aa72000-7fb75aa73000 rw-p 00003000 fd:00 655859                     /lib/x86_64-linux-gnu/libdl-2.19.so
7fb75aa73000-7fb75aa81000 r-xp 00000000 fd:00 655706                     /lib/x86_64-linux-gnu/libudev.so.1.5.0
7fb75aa81000-7fb75ac80000 ---p 0000e000 fd:00 655706                     /lib/x86_64-linux-gnu/libudev.so.1.5.0
7fb75ac80000-7fb75ac81000 r--p 0000d000 fd:00 655706                     /lib/x86_64-linux-gnu/libudev.so.1.5.0
7fb75ac81000-7fb75ac82000 rw-p 0000e000 fd:00 655706                     /lib/x86_64-linux-gnu/libudev.so.1.5.0
7fb75ac82000-7fb75aca2000 r-xp 00000000 fd:00 655843                     /lib/x86_64-linux-gnu/ld-2.19.so
7fb75aca2000-7fb75ada2000 rw-s 00000000 00:12 53703                      /run/shm/request_buffer-Y4TaWb (deleted)
7fb75ada2000-7fb75aea2000 rw-s 00000000 00:12 53699                      /run/shm/response_buffer-o2VxWS (deleted)
7fb75aea2000-7fb75aea3000 r--p 00020000 fd:00 655843                     /lib/x86_64-linux-gnu/ld-2.19.so
7fb75aea3000-7fb75aea4000 rw-p 00021000 fd:00 655843                     /lib/x86_64-linux-gnu/ld-2.19.so
7fb75aea4000-7fb75aea5000 rw-p 00000000 00:00 0
7fb75aea5000-7fb75af84000 r-xp 00000000 fd:00 788011                     /usr/sbin/clvmd
7fb75b071000-7fb75b171000 rw-s 00000000 00:12 53698                      /run/shm/request_buffer-NdniCM (deleted)
7fb75b171000-7fb75b17a000 rw-p 00000000 00:00 0
7fb75b17d000-7fb75b17e000 rw-p 00000000 00:00 0
7fb75b17e000-7fb75b180000 rw-s 00000000 00:12 53702                      /run/shm/control_buffer-tGxyB5 (deleted)
7fb75b180000-7fb75b182000 rw-s 00000000 00:12 53697                      /run/shm/control_buffer-sMvciG (deleted)
7fb75b182000-7fb75b184000 rw-p 00000000 00:00 0
7fb75b184000-7fb75b186000 r--p 000df000 fd:00 788011                     /usr/sbin/clvmd
7fb75b186000-7fb75b18a000 rw-p 000e1000 fd:00 788011                     /usr/sbin/clvmd
7fb75b18a000-7fb75b1a8000 rw-p 00000000 00:00 0
7fb75ccde000-7fb75ccff000 rw-p 00000000 00:00 0                          [heap]
7fff3e1f1000-7fff3e212000 rw-p 00000000 00:00 0                          [stack]
7fff3e3d0000-7fff3e3d2000 r-xp 00000000 00:00 0                          [vdso]
7fff3e3d2000-7fff3e3d4000 r--p 00000000 00:00 0                          [vvar]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20150907/72c838a4/attachment.sig>


More information about the pkg-lvm-maintainers mailing list