Bug 1295189
Summary: | fork hangs after mallocs in multithreaded processes | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Albert Flügel <af> | ||||
Component: | glibc | Assignee: | Florian Weimer <fweimer> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 23 | CC: | arjun.is, codonell, fweimer, jakub, law, mfabian, pfrankli, siddhesh | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | glibc-2.22-7.fc23 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-01-05 21:55:14 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Albert Flügel
2016-01-03 12:15:27 UTC
This is likely due to this bug: https://sourceware.org/bugzilla/show_bug.cgi?id=19182 Bug 906468 is indeed a different problem. Note that the test case needs to run with an environment setting like MALLOC_ARENA_MAX=20 if you have sufficiently many cores. Sorry, i don't understand, what test case you mean. Should this environment setting change the behaviour of my program (currently don't have access to my Fedora 23 machine - later today) ? In my understanding MALLOC_ARENA_MAX is a parameter effecting performance, not whether sth. works or not. In general i agree, seems to me, too, the issue reported at sourceware.org with id 19182. So will it be available / backported to Fedora 23 ? I'd gladly volunteer to test / verify whatever necessary. (In reply to Albert Flügel from comment #3) > Sorry, i don't understand, what test case you mean. Should this environment > setting change the behaviour of my program (currently don't have access to > my Fedora 23 machine - later today) ? In my understanding MALLOC_ARENA_MAX > is a parameter effecting performance, not whether sth. works or not. On my test machine, the arena limit is 64. This means that with 40 threads, all receive distinct arenas, and reused_arena is never called. The deadlock happens due to an interaction between the malloc fork handler and the reused_arena function. Lowering the arena limit 20 means that reused_arena is actually called. > So will it be available / backported to Fedora 23 ? I'm preparing updated packages right now. glibc-2.22-7.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-61b86643d4 (In reply to Albert Flügel from comment #3) > I'd gladly volunteer to test / verify whatever necessary. I would appreciate if you could test the glibc-2.22-7.fc23 update I just submitted. Confirmed. Cannot reproduce the problem anymore. The reproducer fails and openvenus (framework and monitoring) works again. Super cool ! glibc-2.22-7.fc23 has been pushed to the Fedora 23 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-2016-61b86643d4 glibc-2.22-7.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. |