[Bug 299714] [NEW] javascript stack space quota too small
David Monro
davidm_ub at davidmonro.net
Wed Nov 19 01:43:49 UTC 2008
Public bug reported:
When using HPSIM (HP's System Insight Manager, a free web-based
application for managing collections of servers), if the collection of
machines being viewed is too large, the list does not get populated, and
an error is reported in the error console:
"script stack space quota is exhausted"
It looks like this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=420869
except that is supposed to be fixed.
Here's a chunk of javascript which can be used to find out roughly what
the stack space limit is (taken from
http://forums.mozillazine.org/viewtopic.php?f=23&t=633782&start=0&st=0&sk=t&sd=a
)
<script>
var text = "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890";
var goodlength = 0;
var badlength = 0;
var tweakvalue = prompt("Enter tweak value. Larger values will produce a more accurate result, but will take exponentially longer.",1);
try {
while(text.length < 2000000) {
goodlength = text.length;
text = text + text.substring(0,text.length/tweakvalue);
badlength = text.length;
var test = /^(1234567890)(.*)/m.test(text);
}
alert("stack space reached " + badlength + " bytes without throwing an exception.");
}
catch(ex) {
alert(ex + "\nstack space quota is somewhere between: " + goodlength + " and " + badlength);
}
</script>
On my firefox-3 (version 3.0.4+nobinonly-0ubuntu0.8.10.1 from intrepid-
updates), this produces an answer somewhere around 630000. One of my
workmates uses fedora core 9 - his version reports somewhere around
double this (and does work with HPSIM).
Can this number be grown substantially please?
** Affects: firefox-3.0 (Ubuntu)
Importance: Undecided
Status: New
--
javascript stack space quota too small
https://bugs.launchpad.net/bugs/299714
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox-3.0 in ubuntu.
More information about the Ubuntu-mozillateam-bugs
mailing list