Package: libc6
Version: 2.19-9
Severity: important
Tags: jessie
Source: glibc
After manual rebuilding libmzq3 package tests/test_conflate doesnt pass with error "Device or resource busy (mutex.hpp:94)" on jessie amd64 installation. Manual building from sources from
http://zeromq.org/ gave the same result.
Succesfull test running has been achieved only through using
libpthread-2.19.so manually built
http://ftp.gnu.org/gnu/glibc/glibc-2.19.tar.xz going with LD_LIBRARY_PATH setting to temporary path. Same positive result was achieved with
libpthread-2.13.so from
ftp://ftp.ru.debian.org/debian/pool/main/e/eglibc/libc6_2.13-38+deb7u2_amd64.deb. At the same time test_conflate failed with
libpthread-2.19.so built by dpkg-buildpackage retrieved by "apt-get source" from
debian.org repository.
Here's example where i've used for better visual custom test_conflate.cpp and mutex.hpp:
kif@nto-202:~/wrk/zmq/root/lib/x86_64-linux-gnu$ ln -s
libpthread-2.19.so libpthread.so.0kif@nto-202:~/wrk/zmq/root/lib/x86_64-linux-gnu$ ls -l
total 4492
-rwxr-xr-x 1 kif kif 131107 May 27 01:24
libpthread-2.13.so ---- from libc6_2.13-38+deb7u2_amd64.deb
-rwxr-xr-x 1 kif kif 137439 Aug 25 11:43
libpthread-2.19p.so ---- from package built by dpkg-buildpackage from repository sources
-rwxr-xr-x 1 kif kif 137439 Aug 22 17:41
libpthread-2.19.so ---- from /lib/x86_64-linux-gnu from libc6
-rwxr-xr-x 1 kif kif 792677 Aug 25 09:07
libpthread-2.19s.so ---- manually built from sources from
gnu.org
lrwxrwxrwx 1 kif kif 18 Aug 25 13:06 libpthread.so.0 ->
libpthread-2.19.solrwxrwxrwx 1 kif kif 15 Aug 25 11:56 libzmq.so -> libzmq.so.3.1.0
lrwxrwxrwx 1 kif kif 15 Aug 25 11:56 libzmq.so.3 -> libzmq.so.3.1.0
-rwxr-xr-x 1 kif kif 3390068 Aug 25 11:56 libzmq.so.3.1.0 ---- built with custom mutex.hpp for better visual
kif@nto-202:~/wrk/zmq/zeromq-4.0.4/tests/.libs$ export LD_LIBRARY_PATH=/home/kif/wrk/zmq/root/lib/x86_64-linux-gnu/ ; ldd test_conflate ; unset LD_LIBRARY_PATH
linux-vdso.so.1 (0x00007fff09dfe000)
libzmq.so.3 => /home/kif/wrk/zmq/root/lib/x86_64-linux-gnu/libzmq.so.3 (0x00007f96be047000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f96bde2b000)
libpthread.so.0 => /home/kif/wrk/zmq/root/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f96bdc0d000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f96bd902000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f96bd601000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f96bd3ea000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f96bd041000)
/lib64/ld-linux-x86-64.so.2 (0x00007f96be29a000)
kif@nto-202:~/wrk/zmq/zeromq-4.0.4/tests/.libs$ export LD_LIBRARY_PATH=/home/kif/wrk/zmq/root/lib/x86_64-linux-gnu/ ; ./test_conflate ; unset LD_LIBRARY_PATH
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
recieved
closed inbound
closed outbound
-------
pthread_mutex_destroy (&mutex) returned 16, errno: 156384765
Device or resource busy (mutex.hpp:94)
-------Aborted
kif@nto-202:~/wrk/zmq/zeromq-4.0.4/tests/.libs$
Changing sy
kif@nto-202:~/wrk/zmq/root/lib/x86_64-linux-gnu$ ls -l
total 4492
-rwxr-xr-x 1 kif kif 131107 May 27 01:24
libpthread-2.13.so
-rwxr-xr-x 1 kif kif 137439 Aug 25 11:43
libpthread-2.19p.so-rwxr-xr-x 1 kif kif 137439 Aug 22 17:41
libpthread-2.19.so-rwxr-xr-x 1 kif kif 792677 Aug 25 09:07
libpthread-2.19s.so
lrwxrwxrwx 1 kif kif 18 Aug 25 13:06 libpthread.so.0 ->
libpthread-2.19.solrwxrwxrwx 1 kif kif 15 Aug 25 11:56 libzmq.so -> libzmq.so.3.1.0
lrwxrwxrwx 1 kif kif 15 Aug 25 11:56 libzmq.so.3 -> libzmq.so.3.1.0
-rwxr-xr-x 1 kif kif 3390068 Aug 25 11:56 libzmq.so.3.1.0
kif@nto-202:~/wrk/zmq/root/lib/x86_64-linux-gnu$ rm libpthread.so.0
kif@nto-202:~/wrk/zmq/root/lib/x86_64-linux-gnu$ ln -s
libpthread-2.19s.so libpthread.so.0
kif@nto-202:~/wrk/zmq/zeromq-4.0.4/tests/.libs$ export LD_LIBRARY_PATH=/home/kif/wrk/zmq/root/lib/x86_64-linux-gnu/ ; ldd test_conflate ; unset LD_LIBRARY_PATH
linux-vdso.so.1 (0x00007fff409fe000)
libzmq.so.3 => /home/kif/wrk/zmq/root/lib/x86_64-linux-gnu/libzmq.so.3 (0x00007f1acc521000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f1acc305000)
libpthread.so.0 => /home/kif/wrk/zmq/root/lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1acc0e6000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1acbddb000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1acbada000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1acb8c3000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1acb51a000)
/lib64/ld-linux-x86-64.so.2 (0x00007f1acc774000)
kif@nto-202:~/wrk/zmq/zeromq-4.0.4/tests/.libs$
kif@nto-202:~/wrk/zmq/zeromq-4.0.4/tests/.libs$ export LD_LIBRARY_PATH=/home/kif/wrk/zmq/root/lib/x86_64-linux-gnu/ ; ./test_conflate ; unset LD_LIBRARY_PATH
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
sent
recieved
closed inbound
closed outbound
class destroyed
kif@nto-202:~/wrk/zmq/zeromq-4.0.4/tests/.libs$
And so on: with symlink set on
libpthread-2.13.so it works too, but with
libpthread-2.19p.so package built from debian repository doesn't.
mutex.hpp and test_comflate applied.
--
ildar.