Some additional info to this bug. I found that Ruby was not finding the proper top of the stack to do the math and check how big the stack is.
I just fixed it and create the following Pull request: https://github.com/ruby/ruby/pull/1767/commits/ff74937bcd50127e1e6b4879fa3c76d83efa5e65 This still does *not* fix this problem, but this reduce it slightly. I am still working to find the final solution.