Bug 127168 - Recursive calls get segmentfault in ARM7 Use JIT
Summary: Recursive calls get segmentfault in ARM7 Use JIT
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-17 02:25 PST by bhunter
Modified: 2014-01-17 02:25 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bhunter 2014-01-17 02:25:55 PST
I build jsc for armv7 use softfp, when i run the following code, i get segmentfault

  var start = 1;
  function cb() {
	  var arr = [];

	  seg( function(n) {
	  	console.log(n);
	  	arr.push(n);
	  }, start);
  }

  function seg(f, n)
  {
  	f(n);
	if(n > 1000)
	  return;
  	seg(f, n+1);	
  }

  cb();

I guess stack overflow so i increase stack size, but i still get segmentfault. Each death functions are executed 66 times. stack in  SpeculativeJIT::runSlowPathGenerators

When I close JIT,use LLINT ,I success. So I guess this is Bug for JIT