Assertion failure: proto->isNative(), at jsobjinlines.h:917

RESOLVED FIXED

Status

()

--
critical
RESOLVED FIXED
8 years ago
6 years ago

People

(Reporter: decoder, Assigned: brendan)

Tracking

(Blocks: 1 bug, {assertion, testcase})

Trunk
assertion, testcase
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(blocking2.0 .x+)

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 attachment)

(Reporter)

Description

8 years ago
Running the following code with -j in the shell causes an assertion (tested on TM tip):

this.__defineGetter__("x3", Function);
parseInt = x3;
parseInt.prototype = [];
for (var z = 0; z < 10; ++z) { new parseInt() }

Updated

8 years ago
Group: core-security

Updated

8 years ago
blocking2.0: --- → ?
Exploitable?
(Assignee)

Comment 2

8 years ago
This doesn't crash my opt shell.

It seems to be just a bogus assertion; more specifically, a latent bug exposed by patch for bug 633929. Underlying code goes back to my patch for bug 535416.

/be
Blocks: 630865
Group: core-security
(Assignee)

Updated

8 years ago
Assignee: general → brendan
Status: NEW → ASSIGNED
blocking2.0: ? → .x
(Assignee)

Comment 3

8 years ago
This is not a blocker but bogus assertions are bad for fuzzing, so it should be fixed (DEBUG-only change, I hope).

/be

Comment 4

8 years ago
Non-native objects can provide empty shapes?
(Assignee)

Comment 5

8 years ago
(In reply to comment #4)
> Non-native objects can provide empty shapes?

Surprising but true.

/be
OS: Linux → Windows CE
(Assignee)

Comment 6

8 years ago
Created attachment 513000 [details] [diff] [review]
remove bogus assertion
Attachment #513000 - Flags: review?(jorendorff)
Comment on attachment 513000 [details] [diff] [review]
remove bogus assertion

Needs a test. r=me with that.
Attachment #513000 - Flags: review?(jorendorff) → review+

Updated

8 years ago
OS: Windows CE → Linux
(Assignee)

Updated

8 years ago
OS: Linux → All
Hardware: x86_64 → All
(Assignee)

Comment 8

8 years ago
http://hg.mozilla.org/tracemonkey/rev/b0fd21292a78

/be
Whiteboard: fixed-in-tracemonkey

Comment 9

8 years ago
http://hg.mozilla.org/mozilla-central/rev/b0fd21292a78
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
(Reporter)

Updated

7 years ago
Blocks: 676763
(Reporter)

Comment 10

6 years ago
A testcase for this bug was automatically identified at js/src/jit-test/tests/basic/bug634593.js.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.