Closed
Bug 650574
Opened 15 years ago
Closed 15 years ago
Crash with too much recursion in exn_toSource
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla6
People
(Reporter: jruderman, Assigned: Waldo)
References
Details
(Keywords: crash, regression, testcase, Whiteboard: fixed-in-tracemonkey)
Attachments
(2 files)
|
66.33 KB,
text/plain
|
Details | |
|
2.18 KB,
patch
|
luke
:
review+
|
Details | Diff | Splinter Review |
var e = Error('');
e.fileName = e;
e.toSource();
--> Crash with too much recursion in exn_toSource
The first bad revision is:
changeset: 0906d9490eaf
user: Jeff Walden
date: Mon Mar 28 20:01:53 2011 -0700
summary: Bug 645468 - Remove js_TryMethod: its semantics aren't what most of its users want, and its utility is limited. r=luke
Comment 1•15 years ago
|
||
Awesome testcase.
| Assignee | ||
Comment 2•15 years ago
|
||
I reproduced this once, but now I can't reproduce it for some reason, and I'm not sure why. Is anyone else seeing this still, and if not, could someone bisect and figure out how this went away? It's not immediately obvious to me why it would have gone away, if it did.
| Reporter | ||
Comment 3•15 years ago
|
||
Still crashes for me with rev 59325b2ca38b (64-bit, debug, mac). Want me to catch it in gdb for you?
| Assignee | ||
Comment 4•15 years ago
|
||
Nope, it reproduces easily now, not sure what I was doing differently then.
Comment 5•15 years ago
|
||
Comment on attachment 528390 [details] [diff] [review]
Patch and test
Review of attachment 528390 [details] [diff] [review]:
Ooh, I get to use splinter. Unfortunately, I have no nits.
Attachment #528390 -
Flags: review?(luke) → review+
Comment 6•15 years ago
|
||
Comment on attachment 528390 [details] [diff] [review]
Patch and test
Review of attachment 528390 [details] [diff] [review]:
::: js/src/tests/ecma_5/extensions/toSource-infinite-recursion.js
@@ +22,5 @@
+}
+catch (e)
+{
+ assertEq(e instanceof InternalError, true,
+ "should have thronw for over-recursion");
What do you mean, no nits? You souhld get ouyr eyes cehcked.
| Assignee | ||
Comment 7•15 years ago
|
||
OS: Mac OS X → All
Hardware: x86_64 → All
Whiteboard: fixed-in-tracemonkey
Target Milestone: --- → mozilla6
Comment 8•15 years ago
|
||
cdleary-bot mozilla-central merge info:
http://hg.mozilla.org/mozilla-central/rev/8f7cf9d0b636
Updated•15 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 9•15 years ago
|
||
Mozilla/5.0 (X11; Linux i686; rv:6.0) Gecko/20100101 Firefox/6.0
Verified on WinXP, Win7 x86, Ubuntu 11.04 x86 and Mac OS X 10.6 with the steps from comment 0.
Returned error: InternalError: too much recursion
Setting status to Verified Fixed.
Status: RESOLVED → VERIFIED
Comment 10•13 years ago
|
||
Automatically extracted testcase for this bug was committed:
https://hg.mozilla.org/mozilla-central/rev/efaf8960a929
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•