Closed Bug 1245249 Opened 8 years ago Closed 8 years ago

crash in mozalloc_abort | NS_DebugBreak | mozilla::dom::asmjscache::PAsmJSCacheEntryParent::Write

Categories

(Core :: JavaScript Engine, defect)

Unspecified
Windows NT
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: jujjyl, Assigned: janv)

References

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

This bug was filed from the Socorro interface and is 
report bp-f17431d8-0c85-431c-9a3e-916252160202.
=============================================================

Bisected to this range:

https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=aa58a439e77a9ed81b492ff7417346c5ab52c8d5&tochange=958a7057e1ac0379ee4908b644f4a6b00918ad69
Bill, does the callstack give any hints on this?
Flags: needinfo?(wmccloskey)
It sounds like you have an STR if you're able to bisect. I'm happy to investigate if I can reproduce.

The code here is definitely wrong:
http://hg.mozilla.org/mozilla-central/annotate/5f9ba76eb3b1/dom/asmjscache/AsmJSCache.cpp#l1006
If SendFoo returns false, we should not send a __delete__ message. It's possible that the connection has closed by then.

However, it's not clear why SendOnOpenMetadataForRead would return false during normal operation. It's possibly my patches caused that.
Flags: needinfo?(wmccloskey)
Sure thing. Sent you the test case via email (unfortunately not public :/). Let me know if that helps!
Flags: needinfo?(wmccloskey)
Jan: does anything about this jump out to you?  I'm guessing this is related to bug 1173756.
Flags: needinfo?(jvarga)
(In reply to Luke Wagner [:luke] from comment #4)
> Jan: does anything about this jump out to you?  I'm guessing this is related
> to bug 1173756.

I don't think I introduced this behavior, we used to call OnOpenMetadataForRead() on that line of code and since there was just one caller of that method I replaced the call with inlined code.

Anyway, I think we should check mActorDestroyed before calling Send__delete() like we do in Fail().
Let me try it.
Flags: needinfo?(jvarga)
Attached patch patchSplinter Review
Actually, calling Fail() makes more sense here I think.
Assignee: nobody → jvarga
Status: NEW → ASSIGNED
Attachment #8718761 - Flags: review?(luke)
Comment on attachment 8718761 [details] [diff] [review]
patch

Review of attachment 8718761 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks!
Attachment #8718761 - Flags: review?(luke) → review+
Flags: needinfo?(wmccloskey)
https://hg.mozilla.org/mozilla-central/rev/4f450052b2f3
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: