Closed Bug 925309 Opened 11 years ago Closed 11 years ago

Assertion failure: enable == !(bool)spsOn_, at jit/BaselineJIT.cpp:777

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla28

People

(Reporter: decoder, Assigned: djvj)

Details

(Keywords: assertion, testcase, Whiteboard: [jsbugmon:update])

Attachments

(2 files)

The following testcase asserts on mozilla-central revision aa986b6ce882 (run with --fuzzing-safe --ion-eager):


for(;; enableSPSProfilingAssertions(false)) {}
Whiteboard: [jsbugmon:update,bisect]
Whiteboard: [jsbugmon:update,bisect] → [jsbugmon:update]
JSBugMon: Bisection requested, result:
autoBisect shows this is probably related to the following changeset:

The first bad revision is:
changeset:   http://hg.mozilla.org/mozilla-central/rev/0eaefffce290
user:        Kannan Vijayan
date:        Fri Mar 22 13:42:52 2013 -0400
summary:     Bug 846363 - Integrate SPS Profiler with Baseline. r=jandem

This iteration took 1.279 seconds to run.
Flags: needinfo?(kvijayan)
Assignee: general → kvijayan
Flags: needinfo?(kvijayan)
Problem: if SPS profiler is turned on multiple times, tries to toggle SPS flags on baseline script multiple times, but baseline script asserts because SPS flags have already been toggled on.

Solution: if profiler is already enabled, then enabling profiler should be a no-op.

Added a modified test case for this because the original test case will loop forever when it works successfully.
Attachment #828905 - Flags: review?(bhackett1024)
Comment on attachment 828905 [details] [diff] [review]
sps-bug-925309.patch

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

::: js/src/vm/SPSProfiler.cpp
@@ +52,5 @@
>  SPSProfiler::enable(bool enabled)
>  {
>      JS_ASSERT(installed());
> +
> +    // Don't enable when already enabled.

NOTE: I'm removing this comment as it's useless.
Attachment #828905 - Flags: review?(bhackett1024) → review+
https://hg.mozilla.org/mozilla-central/rev/7e1276c372c2
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Keywords: verifyme
Reproduced with the 11/01 Fx28 JS shell, verified as fixed with the 02/04 Fx28 shell.
Status: RESOLVED → VERIFIED
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: