Closed
Bug 1346042
Opened 9 years ago
Closed 9 years ago
Intermittent dom/media/test/test_invalid_reject_play.html | application crashed [@ 0xe7574c24][@ LibHandle::ReleaseDirectRef]
Categories
(Core :: mozglue, defect)
Core
mozglue
Tracking
()
RESOLVED
FIXED
mozilla55
People
(Reporter: intermittent-bug-filer, Assigned: esawin)
References
Details
(Keywords: intermittent-failure)
Attachments
(1 file)
|
1.45 KB,
patch
|
glandium
:
review+
ritu
:
approval-mozilla-beta-
|
Details | Diff | Splinter Review |
Filed by: wkocher [at] mozilla.com
https://treeherder.mozilla.org/logviewer.html#?job_id=82772935&repo=autoland
https://autophone.s3.amazonaws.com/v1/task/Xgvgyx6ATOyu71dKRauLxg/runs/0/artifacts/public/build/mochitest-dom-media-mochitests-dom-media-settings.ini-1-pixel-07-d7c18e37-0f10-43cd-b1f0-52689666c650.log
Comment 1•9 years ago
|
||
https://treeherder.mozilla.org/logviewer.html#?job_id=82772935&repo=autoland&lineNumber=3579
Assertion failure: directRefCnt <= mozilla::external::AtomicRefCounted<LibHandle>::refCount(), at /home/worker/workspace/build/src/mozglue/linker/ElfLoader.h:167
Component: Audio/Video → mozglue
Updated•9 years ago
|
Summary: Intermittent dom/media/test/test_invalid_reject_play.html | application crashed [@ 0xe7574c24] → Intermittent dom/media/test/test_invalid_reject_play.html | application crashed [@ 0xe7574c24][@ LibHandle::ReleaseDirectRef]
| Comment hidden (Intermittent Failures Robot) |
Assignee: nobody → esawin
Updated•9 years ago
|
tracking-fennec: --- → ?
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
tracking-fennec: ? → +
| Assignee | ||
Comment 6•9 years ago
|
||
I can't reproduce this locally with the test page, but the assertion should only fail when we're calling AddDirectRef and ReleaseDirectRef simultaneously on different threads.
Given that it's a low-frequency failure (1:100), I'm not sure how insightful this test run is, but it looks good: https://treeherder.mozilla.org/#/jobs?repo=try&revision=6ef201ca0182c90ee5e2f53323c103cbe6ff6d3c
Attachment #8855943 -
Flags: review?(mh+mozilla)
Comment 7•9 years ago
|
||
Comment on attachment 8855943 [details] [diff] [review]
0001-Bug-1346042-1.0-Mutex-lock-LibHandle-direct-referenc.patch
Review of attachment 8855943 [details] [diff] [review]:
-----------------------------------------------------------------
Haven't thought much about it, but shouldn't making that refcounter atomic be enough?
Attachment #8855943 -
Flags: review?(mh+mozilla)
| Assignee | ||
Comment 8•9 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #7)
> Haven't thought much about it, but shouldn't making that refcounter atomic
> be enough?
We can check the assertion in ReleaseDirectRef() on a different thread after the directRefCnt increment but before calling AddRef() in AddDirectRef(). I think we need to lock this down to ensure correctness.
The chances for hitting this window are so slim that I expect that something else might be going wrong, but nonetheless, we should make the custom ref-counting thread-safe.
| Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(mh+mozilla)
Updated•9 years ago
|
Attachment #8855943 -
Flags: review+
Updated•9 years ago
|
Flags: needinfo?(mh+mozilla)
Pushed by esawin@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/7b3035c59fe9
[1.0] Mutex-lock LibHandle direct reference management. r=glandium
Comment 10•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Comment 11•9 years ago
|
||
Doesn't seem high enough volume to worry about backporting to 54, but feel free to set the flag back to affected and request uplift if you feel otherwise.
status-firefox53:
--- → wontfix
status-firefox54:
--- → wontfix
| Assignee | ||
Comment 12•9 years ago
|
||
Comment on attachment 8855943 [details] [diff] [review]
0001-Bug-1346042-1.0-Mutex-lock-LibHandle-direct-referenc.patch
Approval Request Comment
[Feature/Bug causing the regression]: N/A.
[User impact if declined]: Crash on startup.
[Is this code covered by automated tests?]: Only indirectly through app startup.
[Has the fix been verified in Nightly?]: Yes, no crashes with this signature in automation.
[Needs manual test from QE? If yes, steps to reproduce]: No.
[List of other uplifts needed for the feature/fix]: 1358241, 1361903.
[Is the change risky?]: No.
[Why is the change risky/not risky?]: Affects only locking mechanics during startup.
[String changes made/needed]: None.
Attachment #8855943 -
Flags: approval-mozilla-beta?
Comment 13•9 years ago
|
||
(In reply to Eugen Sawin [:esawin] from comment #12)
> Comment on attachment 8855943 [details] [diff] [review]
> 0001-Bug-1346042-1.0-Mutex-lock-LibHandle-direct-referenc.patch
>
> Approval Request Comment
> [Feature/Bug causing the regression]: N/A.
> [User impact if declined]: Crash on startup.
> [Is this code covered by automated tests?]: Only indirectly through app
> startup.
> [Has the fix been verified in Nightly?]: Yes, no crashes with this signature
> in automation.
> [Needs manual test from QE? If yes, steps to reproduce]: No.
> [List of other uplifts needed for the feature/fix]: 1358241, 1361903.
> [Is the change risky?]: No.
> [Why is the change risky/not risky?]: Affects only locking mechanics during
> startup.
> [String changes made/needed]: None.
There's no uplift request on the bugs you list as prerequisites, is that an oversight? Is there any evidence of this being a high-volume issue for users? We're a week away from building release candidates for 54 so unless that's the case I think it's too late to take this change.
Flags: needinfo?(esawin)
| Assignee | ||
Comment 14•9 years ago
|
||
(In reply to Julien Cristau [:jcristau] from comment #13)
> There's no uplift request on the bugs you list as prerequisites, is that an
> oversight?
I assumed listing the blocking bugs in the request takes care of it.
I can request for uplift individually if that's not the case.
> Is there any evidence of this being a high-volume issue for
> users? We're a week away from building release candidates for 54 so unless
> that's the case I think it's too late to take this change.
This does not seem to be a high-volume issue in production, we only see this in test automation due to the assertions.
The reason for the uplift request is to remove any known linker-related issues to improve the results of LG's MTBF testing (e.g., bug 1349099) and to help isolate currently unknown issues.
Flags: needinfo?(esawin)
Comment on attachment 8855943 [details] [diff] [review]
0001-Bug-1346042-1.0-Mutex-lock-LibHandle-direct-referenc.patch
I agree with Julien's assessment. Snorp, is this something that is a must for 54 in terms of a partner ask? I am not sure this uplift right before we enter RC week is justified.
Flags: needinfo?(snorp)
Attachment #8855943 -
Flags: approval-mozilla-beta? → approval-mozilla-beta-
It could help with the partner, but no reason to rush it out, and I don't think we have high confidence that it will fix their issue.
Flags: needinfo?(snorp)
Thanks Snorp, we will let this fix ride the 55 train then.
You need to log in
before you can comment on or make changes to this bug.
Description
•