Closed
Bug 846024
Opened 10 years ago
Closed 7 years ago
Abort on shmem leaks during normal shutdown
Categories
(Core :: IPC, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: BenWa, Assigned: BenWa)
References
Details
Attachments
(1 file)
4.53 KB,
patch
|
bent.mozilla
:
review-
|
Details | Diff | Splinter Review |
This patch can't land until we fix some leaks in the ImageBridge but it does catch them properly once my other patch lands to fix properly close the ImageBridge channel.
Attachment #719190 -
Flags: review?(jones.chris.g)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → bgirard
Assignee | ||
Comment 1•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=df5c291b8472
Assignee | ||
Comment 2•10 years ago
|
||
Correct try link this time: https://hg.mozilla.org/try/rev/4b2c7faa2dd5
Assignee | ||
Comment 3•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=5648fefcda94
Updated•10 years ago
|
Attachment #719190 -
Flags: review?(cjones.bugs) → review?(bent.mozilla)
Assignee | ||
Comment 4•10 years ago
|
||
Comment on attachment 719190 [details] [diff] [review] patch Review of attachment 719190 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/layers/ipc/ImageContainerChild.cpp @@ +500,5 @@ > mImageContainerChild(aProtocol), mAllocated(false) {} > > ~SharedPlanarYCbCrImage() { > if (mAllocated) { > + //mImageContainerChild->RecycleSharedImage(ToSharedImage()); Ignore this diff
Comment on attachment 719190 [details] [diff] [review] patch Review of attachment 719190 [details] [diff] [review]: ----------------------------------------------------------------- ::: ipc/ipdl/ipdl/lower.py @@ +3389,5 @@ > foreachdealloc.addstmt(StmtExpr(_shmemDealloc(shmem))) > > + ifnormalleak = StmtIf(ExprBinary( > + whyvar, '==', _DestroyReason.NormalShutdown)) > + ifnormalleak.addifstmt(_runtimeAbort('Leaking Shmem')) I think this is fine for child processes but the parent shouldn't crash on a leak like this imo. Maybe make this DEBUG-only for the parent process?
Attachment #719190 -
Flags: review?(bent.mozilla) → review-
Assignee | ||
Comment 6•7 years ago
|
||
I don't really need this anymore.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•