Hi, when I use a global object via the :with option to V8::Context.new, after a while V8 crashes Ruby with a seg fault. I have created a gist with an example that reproduces the problem in Ruby 1.9.3 and 2.1.2 on a 32 bit Ubuntu 12.04.3 VM.
The time it takes to crash varies, but it usually fails within a minute and sometimes as long as 2 minutes. I've also had it crash a couple of times almost immediately.
If I change the code to not use the :with option and set things via the context['thing'] = ... style then everything seems to be stable.
Hopefully it's something silly I'm doing, but just in case I thought I'd bring it to your attention.
Hi, when I use a global object via the
:with
option toV8::Context.new
, after a while V8 crashes Ruby with a seg fault. I have created a gist with an example that reproduces the problem in Ruby 1.9.3 and 2.1.2 on a 32 bit Ubuntu 12.04.3 VM.https://gist.github.com/dparnell/dde5f9ae5345634f0a9e
The time it takes to crash varies, but it usually fails within a minute and sometimes as long as 2 minutes. I've also had it crash a couple of times almost immediately.
If I change the code to not use the
:with
option and set things via thecontext['thing'] = ...
style then everything seems to be stable.Hopefully it's something silly I'm doing, but just in case I thought I'd bring it to your attention.