Description of problem:
Glibc 2.25 has a bug in pthread_mutex_lock which may lead to deadlock.
This is alredy fixed upstream, see
https://sourceware.org/bugzilla/show_bug.cgi?id=21778
Version-Release number of selected component (if applicable):
glibc 2.25
How reproducible: 100 %
Steps to Reproduce:
1. install Knot Resolver (knot-resolver)
2. run the resolver with multiple processes sharing single cache (kresd parameter -f 2)
3. put the resolver under heavy load (e.g. using resperf tool)
Actual results:
Resolver deadlocks within a minute or two.
Expected results:
It should not deadlock.
Additional info:
We have verified that the problem does not appear on Glibc 2.26. GDB shows deadlock on the right spot pointing towards https://sourceware.org/bugzilla/show_bug.cgi?id=21778 .