-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid date causes V8 fatal error #316
Comments
mini_racer/ext/mini_racer_extension/mini_racer_extension.cc Lines 623 to 625 in 4f552cf
|
I think I've figured it out:
rb_time_new is just one instance of this bug category. I saw the same |
mini_racer converts JS objects to Ruby objects. Ruby's C API functions call rb_raise() on invalid inputs, and rb_raise() in turn is a glorified longjmp() that jumps up the stack. Longjmp and C++ destructors do not play well together. It left V8 in an undefined state, resulting in random "Disposing the isolate that is entered by a thread" fatal errors. Fixes: rubyjs#316
mini_racer converts JS objects to Ruby objects. Ruby's C API functions call rb_raise() on invalid inputs, and rb_raise() in turn is a glorified longjmp() that jumps up the stack. Longjmp and C++ destructors do not play well together. It left V8 in an undefined state, resulting in random "Disposing the isolate that is entered by a thread" fatal errors. Fixes: rubyjs#316
"out of Time range" is throw by ruby's
rb_time_new()
function.The text was updated successfully, but these errors were encountered: