rubyjs / therubyracer

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

Segmentation fault at 0x00000000000000 #345

Closed victorteokw closed 8 months ago

victorteokw commented 9 years ago

When I run assets:precompile on my local machine, it's OK and when I run it on server, it crashes

[hoiyu@blog blog]$ rake assets:precompile
/usr/local/lib/ruby/gems/2.2.0/gems/therubyracer-0.12.2/lib/v8/context.rb:99: [BUG] Segmentation fault at 0x00000000000000
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0068 p:---- s:0276 e:000275 CFUNC  :Run
c:0067 p:0008 s:0273 e:000272 BLOCK  /usr/local/lib/ruby/gems/2.2.0/gems/therubyracer-0.12.2/lib/v8/context.rb:99
c:0066 p:0006 s:0271 e:000270 BLOCK  /usr/local/lib/ruby/gems/2.2.0/gems/therubyracer-0.12.2/lib/v8/error.rb:84 [FINISH]
c:0065 p:---- s:0267 e:000266 CFUNC  :call
c:0064 p:---- s:0265 e:000264 CFUNC  :TryCatch
c:0063 p:0015 s:0262 E:0010b0 METHOD /usr/local/lib/ruby/gems/2.2.0/gems/therubyracer-0.12.2/lib/v8/error.rb:83
c:0062 p:0032 s:0259 E:0002f8 BLOCK  /usr/local/lib/ruby/gems/2.2.0/gems/therubyracer-0.12.2/lib/v8/context.rb:99
c:0061 p:0021 s:0255 e:000254 BLOCK  /usr/local/lib/ruby/gems/2.2.0/gems/therubyracer-0.12.2/lib/v8/context.rb:248 [FINISH]
c:0060 p:---- s:0253 e:000252 CFUNC  :call
c:0059 p:---- s:0251 e:000250 CFUNC  :HandleScope
c:0058 p:0015 s:0248 E:0025c0 BLOCK  /usr/local/lib/ruby/gems/2.2.0/gems/therubyracer-0.12.2/lib/v8/context.rb:245 [FINISH]
c:0057 p:---- s:0246 e:000245 CFUNC  :call
c:0056 p:---- s:0244 e:000243 CFUNC  :Locker
c:0055 p:0041 s:0241 E:002518 METHOD /usr/local/lib/ruby/gems/2.2.0/gems/therubyracer-0.12.2/lib/v8/context.rb:244
c:0054 p:0018 s:0237 e:000236 METHOD /usr/local/lib/ruby/gems/2.2.0/gems/therubyracer-0.12.2/lib/v8/context.rb:204
c:0053 p:0050 s:0233 E:002468 METHOD /usr/local/lib/ruby/gems/2.2.0/gems/therubyracer-0.12.2/lib/v8/context.rb:94
c:0052 p:0032 s:0227 e:000226 BLOCK  /usr/local/lib/ruby/gems/2.2.0/gems/execjs-2.5.2/lib/execjs/ruby_racer_runtime.rb:13
c:0051 p:0008 s:0224 e:000223 BLOCK  /usr/local/lib/ruby/gems/2.2.0/gems/execjs-2.5.2/lib/execjs/ruby_racer_runtime.rb:75 [FINISH]
c:0050 p:---- s:0221 e:000220 CFUNC  :call
c:0049 p:---- s:0219 e:000218 CFUNC  :Locker
cowboyd commented 9 years ago

@cheunghy I'm adding specs to make sure that these types of errors are detected early, and don't make it into the upcoming 1.0 release. If you can find a minimal reproduction of the error, then I will include it into the set of regression tests.