[Webkit-unassigned] [Bug 127168] New: Recursive calls get segmentfault in ARM7 Use JIT

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 17 02:28:20 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=127168

           Summary: Recursive calls get segmentfault in ARM7 Use JIT
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: flyingguhong at gmail.com


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

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list