Closed Bug 491965 Opened 17 years ago Closed 17 years ago

TM: "Assertion failure: JSVAL_IS_NUMBER(v)" with "new Number(/x/)"

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
critical

Tracking

()

VERIFIED FIXED
mozilla1.9.2a1

People

(Reporter: jruderman, Assigned: gal)

References

Details

(4 keywords, Whiteboard: fixed-in-tracemonkey)

Attachments

(2 files, 1 obsolete file)

js> for (let i = 0; i < 5; ++i) print(new Number(/x/)); NaN NaN NaN Assertion failure: JSVAL_IS_NUMBER(v), at ../jsnum.cpp:362
confirmed
Assignee: general → gal
Blocks: 487134
Attached patch patch (obsolete) — Splinter Review
We didn't properly signal to callNative that the slow native being called is a constructor. If we do so, the code falls on its face though in some old code that was trying to compensate for calling a builtin as constructor. We don't have any traceable constructors any more, so that special case code can be removed safely. Cycling through the tryserver.
Attachment #376338 - Flags: review?(graydon)
Attachment #376338 - Attachment is obsolete: true
Attachment #376338 - Flags: review?(graydon)
autoBisect shows this is probably related to bug 487134 : The first bad revision is: changeset: 27516:b8cf788763a0 user: jorendorff date: Tue May 05 14:26:06 2009 -0700 summary: Record all calls to native functions (487134, r=gal, brendan).
Flags: blocking1.9.1?
Keywords: regression
OS: Mac OS X → All
Hardware: x86 → All
Comment on attachment 376340 [details] [diff] [review] patch with testcase I think you might have requested review on this but forgot to set the flag when you updated the patch? It looks fine to me but I don't really know that path well. Confirm with jorendorff maybe?
Attachment #376340 - Flags: review+
Flags: blocking1.9.1? → blocking1.9.1+
Attachment #376340 - Flags: review?(jorendorff)
Comment on attachment 376340 [details] [diff] [review] patch with testcase Yeah, Jason should take a look but in the meantime I think we can land it.
Whiteboard: checkin-needed
Whiteboard: checkin-needed → fixed-in-tracemonkey
This is a regression for a patch that is not on branch. Should not block.
Unblocking after consultation with damon and shaver.
Flags: blocking1.9.1+
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Attachment #376340 - Flags: review?(jorendorff) → review+
b+ because we're taking jason's patch on the branch.
Flags: blocking1.9.1+
Verified fixed with testcase in comment 0 with the following debug builds: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a1pre) Gecko/20090522 Minefield/3.6a1pre ID:20090522133810 Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1pre) Gecko/20090522 Shiretoko/3.5pre ID:20090522153422
Status: RESOLVED → VERIFIED
Flags: in-testsuite?
Target Milestone: --- → mozilla1.9.2a1
Flags: in-testsuite? → in-testsuite+
cvsroot/mozilla/js/tests/js1_8_1/trace/trace-test.js,v <-- trace-test.js new revision: 1.14; previous revision: 1.13 /cvsroot/mozilla/js/tests/shell.js,v <-- shell.js
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: