Package: valgrind Version: 1:3.9.0-6 Severity: normal Tags: patch upstream valgrind happens to announce RTM flag in cpuid (as can be seen by running valgrind cpuid), but only implements XBEGIN, not XABORT [1]. This confuses pthread to use lock elision [2] and therefore programs using pthread mutexes crash. I can reproduce this using e.g.
ROOTDIR=/usr/lib/erlang BINDIR=/usr/lib/erlang/erts-6.1/bin valgrind /usr/lib/erlang/erts-6.1/bin/beam.smp -sbt db -- -root /usr/lib/erlang -progname erl [1] http://anonscm.debian.org/gitweb/?p=collab-maint/valgrind.git;a=blob;f=VEX/priv/guest_amd64_toIR.c;h=a17c8f4b0c05d4b8e5e80894ce68ec15b9bac2aa;hb=HEAD#l20253 [2] http://fossies.org/dox/glibc-2.19/elision-conf_8c_source.html#l00065 This is fixed in upstream: https://bugs.kde.org/show_bug.cgi?id=328100 Alternatively, not announcing RTM in cpuid should fix this as well: http://anonscm.debian.org/gitweb/?p=collab-maint/valgrind.git;a=blob;f=VEX/priv/guest_amd64_helpers.c;h=021aceabbabc20dda6e5f5cfbbdca10129cb9a91;hb=HEAD#l2654 -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (980, 'testing'), (980, 'stable'), (500, 'unstable'), (500, 'stable'), (200, 'experimental') Architecture: i386 (x86_64) Foreign Architectures: amd64 Kernel: Linux 3.15.2-lis64+ (SMP w/4 CPU cores) Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages valgrind depends on: ii libc6 2.19-4 ii libc6-dbg 2.19-4 Versions of packages valgrind recommends: ii gdb 7.6.2-1.1+b1 pn valgrind-dbg <none> Versions of packages valgrind suggests: pn alleyoop <none> ii kcachegrind 4:4.13.1-1 pn valgrind-mpi <none> pn valkyrie <none> -- no debconf information -- Tomáš Janoušek, a.k.a. Liskni_si, http://work.lisk.in/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org