Closed Bug 1175535 Opened 10 years ago Closed 10 years ago

Assertion failure: !IsInsideNursery(ptr_), at c:\mozilla\builds\nightly\mozilla\js\src\jit/MIR.h:2862

Categories

(Core :: JavaScript Engine: JIT, defect)

Unspecified
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla41
Tracking Status
firefox41 --- fixed

People

(Reporter: cbook, Assigned: bhackett1024)

Details

(Keywords: assertion)

Attachments

(2 files)

Attached file bughunter stack
Found via bughunter and reproduced on a windows 7 debug with m-c tip Steps to reproduce: -> Load http://www.paulsmith.co.jp/shop/men/shoes/products/1408098400CASE____ --> Assertion failure: !IsInsideNursery(ptr_), at c:\mozilla\builds\nightly\mozilla\js\src\jit/MIR.h:2862
brian is this something for you ? filed as s-s just in case
Flags: needinfo?(bhackett1024)
Attached patch patchSplinter Review
This is a bogus assert. A nursery pointer found its way to AlwaysTenured, which asserts the pointer is not in the nursery, but the right state was set so that a minor GC would cancel this compilation so no bad behavior can result. This patch changes AlwaysTenured to CompilerGCPointer and relaxes the assertions it does. It also cleans up these assertions a bit, here as well as in MConstant, and removes some IsInsideNursery tests in IonBuilder that should only have been necessary to satisfy the AlwaysTenured requirements.
Assignee: nobody → bhackett1024
Flags: needinfo?(bhackett1024)
Attachment #8624331 - Flags: review?(jdemooij)
Group: core-security
Comment on attachment 8624331 [details] [diff] [review] patch Review of attachment 8624331 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/jit/MIR.h @@ +2862,3 @@ > : ptr_(ptr) > { > + MOZ_ASSERT_IF(ptr && IsInsideNursery(ptr), IonCompilationCanUseNurseryPointers()); Nit: can remove the "ptr &&" check because IsInsideNursery is null-safe.
Attachment #8624331 - Flags: review?(jdemooij) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: