Deadlock on apparent mmap failure in PHC
Categories
(Core :: Memory Allocator, defect, P1)
Tracking
()
People
(Reporter: jesup, Assigned: pbone)
References
Details
(Keywords: crash)
Attachments
(1 file, 3 external files)
|
65.32 KB,
application/gzip
|
Details |
I hit a deadlock when running the profiler. Looking at the stacks, it appears PHC was deadlocked with one thread trying to call MOZ_CRASH in response to a mmap failure, and that thread seems to be waiting on some crashreporter lock.
Search the backtraces attached for threads with PHC.cpp on the stack, etc.
| Reporter | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
Thanks jesup!
I see the problem, the crash reporter asks PHC about the cause of the crash - which causes it to reenter and deadlock. There's two things we should do and IMHO we should do both:
- Unlock PHC before executing MOZ_CRASH.
- Use a try-lock while querying PHC so that if we did crash within PHC the crash reporter can continue.
| Assignee | ||
Comment 3•3 years ago
|
||
| Assignee | ||
Comment 4•3 years ago
|
||
Depends on D183241
| Assignee | ||
Comment 5•3 years ago
|
||
Depends on D183242
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 6•3 years ago
|
||
The severity field is not set for this bug.
:glandium, could you have a look please?
For more information, please visit BugBot documentation.
| Assignee | ||
Updated•3 years ago
|
Comment 8•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/052b5225dd18
https://hg.mozilla.org/mozilla-central/rev/564bee2d9b2c
https://hg.mozilla.org/mozilla-central/rev/57f9fc8d9487
Updated•3 years ago
|
Description
•