Closed
Bug 1534238
Opened 6 years ago
Closed 6 years ago
GraphRunner::Run can run before its constructor is finished
Categories
(Core :: Audio/Video: MediaStreamGraph, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla67
| Tracking | Status | |
|---|---|---|
| firefox67 | --- | fixed |
People
(Reporter: pehrsons, Assigned: pehrsons)
References
Details
Crash Data
Attachments
(1 file)
When this happens, mShutdown is uninitialized so GraphRunner::mThread runs to completion and exits, leaving any subsequent call to GraphRunner::OneIteration hanging.
| Assignee | ||
Comment 1•6 years ago
|
||
Hmm, the symptoms here are actually a bit different, because I diagnosed this with a local patch to change [1] to say while (!mShutdown) {.
Instead the symptom on m-c should be that mStarted is set to true by GraphRunner::Run, then to false by the ctor, leaving both GraphRunner::OneIteration and GraphRunner::Run hanging.
| Assignee | ||
Comment 2•6 years ago
|
||
The thread may pre-empt the thread running the ctor and launch GraphRunner::Run
with uninitialized members. This patch ensures they are initialized first.
| Assignee | ||
Updated•6 years ago
|
Rank: 9
Priority: -- → P1
Pushed by pehrsons@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/b015322cb779
Initialize GraphRunner::mThread last. r=padenot
Comment 4•6 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox67:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Updated•6 years ago
|
Crash Signature: [@ libc.so + 0x1c3dc]
You need to log in
before you can comment on or make changes to this bug.
Description
•