javascript stack space quota too small
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
firefox-3.0 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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:/
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://
<script>
var text = "12345678901234
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 {
text = text + text.substring(
var test = /^(1234567890)
}
}
catch(ex) {
alert(ex + "\nstack space quota is somewhere between: " + goodlength + " and " + badlength);
}
</script>
On my firefox-3 (version 3.0.4+nobinonly
Can this number be grown substantially please?
Having tested this on another machine I think the 32-bit version may have a stack double the size; I'm running the amd64 install on a machine with 2G of physical RAM.
I note the comment at the bottom of the mozilla bug:
"Note: this test is dependent upon architecture and available memory. On a
x86_64 machine with 2G and a 64bit build, it will fail with InternalError:
script stack space quota is exhausted however on a x86_64 with 4G and a 64bit
build it will pass."
So it is possible this is an upstream bug; I'll download a binary from the mozilla project and see how it behaves.