rubyjs / therubyracer

Embed the V8 Javascript Interpreter into Ruby
1.66k stars 193 forks source link

Crash - Segmentation fault at 0x000024 #309

Closed dparnell closed 10 months ago

dparnell commented 10 years ago

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.

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 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.

bfosberry commented 10 years ago

I think this issue is preventing any kind of rails asset precompilation for me