Closed
Bug 650753
Opened 13 years ago
Closed 13 years ago
Crash [@ js::gc::Cell::compartment] with WeakMap, forced GC
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: gwagner)
References
Details
(Keywords: crash, testcase, Whiteboard: fixed-in-tracemonkey)
Crash Data
Attachments
(2 files)
78 bytes,
text/html
|
Details | |
1.06 KB,
patch
|
gal
:
review+
|
Details | Diff | Splinter Review |
Tested version: http://hg.mozilla.org/tracemonkey/rev/63a06fbd23e0 1. Install 'DOM Fuzz Lite' from https://www.squarefree.com/extensions/domFuzzLite.xpi 2. Load the testcase. Result: crash [@ js::gc::Cell::compartment] I couldn't get it to crash without the extension, which is surprising because the forced GC is at the end of the testcase. I'm curious what's going on here.
Comment 1•13 years ago
|
||
Interesting. Gregor?
Assignee | ||
Comment 2•13 years ago
|
||
null is a gcThing for historically reasons according to luke. isMarkable is what we want.
Assignee: general → anygregor
Assignee | ||
Updated•13 years ago
|
Attachment #526790 -
Flags: review?(gal)
Comment 3•13 years ago
|
||
Comment on attachment 526790 [details] [diff] [review] patch Doh. Thanks.
Attachment #526790 -
Flags: review?(gal) → review+
Assignee | ||
Comment 4•13 years ago
|
||
http://hg.mozilla.org/tracemonkey/rev/59325b2ca38b
Whiteboard: fixed-in-tracemonkey
Comment 5•13 years ago
|
||
jorendorff, this is probably the crash we had during the aurora landing
Comment 6•13 years ago
|
||
I'm so glad this turned up sooner rather than later. Though, this patch absolutely should not have gotten an r+ without a js test. Don't worry about it, I'll push one.
Reporter | ||
Comment 7•13 years ago
|
||
> I'm so glad this turned up sooner rather than later.
I found this by adding special WeakMap stuff to my DOM fuzzer and running it on TM branch (which I don't normally do).
Just for you <3
Reporter | ||
Comment 8•13 years ago
|
||
Why does this bug only happen with a forced GC, and not with normal GCs or shutdown GC?
Assignee | ||
Comment 9•13 years ago
|
||
(In reply to comment #8) > Why does this bug only happen with a forced GC, and not with normal GCs or > shutdown GC? This path is only executed when the key is alive. I guess the keys are already unreachable if we wait for the normal GC.
Reporter | ||
Comment 10•13 years ago
|
||
Interesting. So we might want to check in several testcases, with various combinations of keeping the key and the map alive.
Comment 11•13 years ago
|
||
Pushed: http://hg.mozilla.org/tracemonkey/rev/332284d2b284 Jesse: <3
Comment 12•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/332284d2b284
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Crash Signature: [@ js::gc::Cell::compartment]
Comment 13•12 years ago
|
||
A testcase for this bug was automatically identified at js/src/tests/js1_8_5/extensions/regress-650753.js.
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•