[Bug nptl/18729] x86: glibc-2.21 linked with application which uses pthread_rwlock_unlock on pre Haswell CPUs crashes because of TSX-NI usage

eladv6 at gmail dot com sourceware-bugzilla@sourceware.org
Mon Aug 3 08:00:00 GMT 2015


https://sourceware.org/bugzilla/show_bug.cgi?id=18729

--- Comment #2 from eladv6 at gmail dot com ---
(In reply to Florian Weimer from comment #1)
> Would please provide a complete test case?  I think this happens only if the
> application misuses the pthreads library, but I could be mistaken.

Hi Florian,

This involves usage of gdb 7.9.1 . It is possible this is a result of a bug in
GDB 7.9.1, but I think that a crash is a bit too harsh.

Anyway, the test case is quite simple:

Build gdb 7.9.1 for x86_64 with using a toolchain bootstrapped with glibc-2.21,
e.g. :

../gdb-7.9.1/configure --host=x86_64-unknown-linux-gnu
--target=x86_64-unknown-linux-gnu
make

Now run: ./gdb/gdb -batch -ex bt -p 1
(or any other valid PID number)

Thanks,

Elad.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list