Closed Bug 409217 Opened 17 years ago Closed 17 years ago

tamarin-tracing stack overflow running sunspider recurse test ackerman function

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dschaffe, Assigned: edwsmith)

Details

the test case is:
function ack(m,n){
   if (m==0) { return n+1; }
   if (n==0) { return ack(m-1,1); }
   return ack(m-1, ack(m,n-1) );
}
//print(ack(3,3));
print(ack(3,4));

calling ack(3,3) works ok
calling ack(3,4) stack overflows

I added a simple print when inside the ack function, ack(3,3) has about 2432 calls, ack(3,4) crashes after being called 4295 times

the sunspider tests calls ack(3,3) ack(3,4) and ack(3,5), works fine in tamarin
I have a fix for this in 411139, just need bigger stacks is all.
Assignee: nobody → edwsmith
fixed in 
http://hg.mozilla.org/tamarin-tracing/?rev/1bf60b9177bd
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
closing bug by marking verified/fixed.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.