Bug 1485900 - Robust mutex may deadlock (fixed upstream)
Summary: Robust mutex may deadlock (fixed upstream)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
Florian Weimer
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-28 12:00 UTC by Petr Špaček
Modified: 2017-09-02 22:24 UTC (History)
11 users (show)

Fixed In Version: glibc-2.25-10.fc26 glibc-2.25.90-30.fc27
Clone Of:
Environment:
Last Closed: 2017-09-02 22:24:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Sourceware 21778 0 None None None 2017-08-28 13:10:13 UTC

Description Petr Špaček 2017-08-28 12:00:16 UTC
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 .

Comment 1 Florian Weimer 2017-08-28 12:41:00 UTC
I'm going to backport the upstream fixes into the upstream stable branch and import that into Fedora.

Comment 2 Petr Špaček 2017-08-28 13:02:23 UTC
Awesome, thank you!

Comment 3 Florian Weimer 2017-08-29 08:15:45 UTC
Bodhi update: https://bodhi.fedoraproject.org/updates/FEDORA-2017-103e80de0b

(Somehow, it didn't make it to the bug so far.)

Comment 4 Fedora Update System 2017-09-01 11:53:17 UTC
glibc-2.25-10.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-103e80de0b

Comment 5 Fedora Update System 2017-09-02 22:24:44 UTC
glibc-2.25-10.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.