<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>127168</bug_id>
          
          <creation_ts>2014-01-17 02:25:55 -0800</creation_ts>
          <short_desc>Recursive calls get segmentfault in ARM7 Use JIT</short_desc>
          <delta_ts>2014-01-17 02:25:55 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="bhunter">flyingguhong</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>969090</commentid>
    <comment_count>0</comment_count>
    <who name="bhunter">flyingguhong</who>
    <bug_when>2014-01-17 02:25:55 -0800</bug_when>
    <thetext>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 &gt; 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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>