Topic: rake assets:precompile. /therubyracer-0.9.4/lib/v8/context.rb:39

Hi!
I have amd64 freebsd8.
Ruby 1.9.2
Rails 3.1

When I invoke  rake assets:precompile I got really strange error! Can't solve it.

bstone# bundle exec rake assets:precompile
/usr/local/lib/ruby/gems/1.9/gems/therubyracer-0.9.4/lib/v8/context.rb:39: [BUG] Bus Error
ruby 1.9.2p290 (2011-07-09 revision 32553) [amd64-freebsd8]

-- control frame ----------
c:0078 p:---- s:0278 b:0278 l:000277 d:000277 CFUNC  :try
c:0077 p:0017 s:0275 b:0275 l:000268 d:000274 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/therubyracer-0.9.4/lib/v8/context.rb:39
c:0076 p:0028 s:0273 b:0273 l:000272 d:000272 METHOD /usr/local/lib/ruby/gems/1.9/gems/therubyracer-0.9.4/lib/v8/portal.rb:16
c:0075 p:0079 s:0269 b:0269 l:000268 d:000268 METHOD /usr/local/lib/ruby/gems/1.9/gems/therubyracer-0.9.4/lib/v8/context.rb:38
c:0074 p:0037 s:0261 b:0261 l:000246 d:000260 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/execjs-1.2.4/lib/execjs/ruby_racer_runtime.rb:9
c:0073 p:0007 s:0259 b:0259 l:000251 d:000258 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/execjs-1.2.4/lib/execjs/ruby_racer_runtime.rb:78
c:0072 p:0024 s:0256 b:0256 l:000255 d:000255 METHOD /usr/local/lib/ruby/gems/1.9/gems/therubyracer-0.9.4/lib/v8/c/locker.rb:13
c:0071 p:0027 s:0252 b:0252 l:000251 d:000251 METHOD /usr/local/lib/ruby/gems/1.9/gems/execjs-1.2.4/lib/execjs/ruby_racer_runtime.rb:76
c:0070 p:0041 s:0247 b:0247 l:000246 d:000246 METHOD /usr/local/lib/ruby/gems/1.9/gems/execjs-1.2.4/lib/execjs/ruby_racer_runtime.rb:7
c:0069 p:---- s:0243 b:0243 l:000242 d:000242 FINISH
c:0068 p:---- s:0241 b:0241 l:000240 d:000240 CFUNC  :new
c:0067 p:0019 s:0237 b:0237 l:000236 d:000236 METHOD /usr/local/lib/ruby/gems/1.9/gems/execjs-1.2.4/lib/execjs/ruby_racer_runtime.rb:107
c:0066 p:0019 s:0233 b:0233 l:000232 d:000232 METHOD /usr/local/lib/ruby/gems/1.9/gems/execjs-1.2.4/lib/execjs/module.rb:27
c:0065 p:0099 s:0229 b:0229 l:000228 d:000228 METHOD /usr/local/lib/ruby/gems/1.9/gems/uglifier-1.0.3/lib/uglifier.rb:49
c:0064 p:---- s:0225 b:0225 l:000224 d:000224 FINISH
c:0063 p:---- s:0223 b:0223 l:000222 d:000222 CFUNC  :new
c:0062 p:0113 s:0220 b:0220 l:000219 d:000219 METHOD /usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/railtie.rb:87
c:0061 p:0021 s:0216 b:0216 l:000215 d:000215 METHOD /usr/local/lib/ruby/gems/1.9/gems/railties-3.1.0/lib/rails/railtie/configurable.rb:30
c:0060 p:---- s:0211 b:0211 l:000210 d:000210 FINISH
c:0059 p:0030 s:0209 b:0209 l:0010a8 d:000208 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/railtie.rb:62
c:0058 p:---- s:0207 b:0207 l:000206 d:000206 FINISH
c:0057 p:---- s:0205 b:0205 l:000204 d:000204 CFUNC  :call
c:0056 p:0027 s:0202 b:0202 l:000201 d:000201 METHOD /usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/compressors.rb:14
c:0055 p:0011 s:0199 b:0199 l:000198 d:000198 METHOD /usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/compressors.rb:18
c:0054 p:0014 s:0195 b:0195 l:0012a0 d:000194 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/processing.rb:265
c:0053 p:---- s:0191 b:0191 l:000190 d:000190 FINISH
c:0052 p:---- s:0189 b:0189 l:000188 d:000188 CFUNC  :call
c:0051 p:0032 s:0184 b:0184 l:000183 d:000183 METHOD /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/processor.rb:29
c:0050 p:0042 s:0179 b:0179 l:000178 d:000178 METHOD /usr/local/lib/ruby/gems/1.9/gems/tilt-1.3.3/lib/tilt/template.rb:76
c:0049 p:0039 s:0173 b:0173 l:002708 d:000780 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/context.rb:175
c:0048 p:---- s:0168 b:0168 l:000167 d:000167 FINISH
c:0047 p:---- s:0166 b:0166 l:000165 d:000165 CFUNC  :each
c:0046 p:0113 s:0163 b:0163 l:002708 d:002708 METHOD /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/context.rb:172
c:0045 p:0074 s:0154 b:0154 l:000144 d:000153 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/bundled_asset.rb:242
c:0044 p:0055 s:0151 b:0151 l:000150 d:000150 METHOD /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/caching.rb:26
c:0043 p:0036 s:0145 b:0145 l:000144 d:000144 METHOD /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/bundled_asset.rb:235
c:0042 p:0025 s:0141 b:0141 l:000140 d:000140 METHOD /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/bundled_asset.rb:71
c:0041 p:0031 s:0138 b:0137 l:000136 d:000136 METHOD /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/asset.rb:95
c:0040 p:0114 s:0134 b:0132 l:000418 d:000131 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/assets.rake:35
c:0039 p:0039 s:0127 b:0127 l:000103 d:000126 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/base.rb:128
c:0038 p:0029 s:0123 b:0123 l:000106 d:000122 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/base.rb:117
c:0037 p:---- s:0120 b:0120 l:000119 d:000119 FINISH
c:0036 p:---- s:0118 b:0118 l:000117 d:000117 CFUNC  :each
c:0035 p:0025 s:0115 b:0115 l:000106 d:000114 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/base.rb:116
c:0034 p:---- s:0112 b:0112 l:000111 d:000111 FINISH
c:0033 p:---- s:0110 b:0110 l:000109 d:000109 CFUNC  :each
c:0032 p:0047 s:0107 b:0107 l:000106 d:000106 METHOD /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/base.rb:115
c:0031 p:0047 s:0104 b:0104 l:000103 d:000103 METHOD /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/base.rb:126
c:0030 p:0011 s:0100 b:0100 l:000418 d:000099 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/assets.rake:27
c:0029 p:---- s:0097 b:0097 l:000096 d:000096 FINISH
c:0028 p:---- s:0095 b:0095 l:000094 d:000094 CFUNC  :each
c:0027 p:0391 s:0092 b:0092 l:000418 d:000091 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/assets.rake:26
c:0026 p:---- s:0084 b:0084 l:000083 d:000083 FINISH
c:0025 p:---- s:0082 b:0082 l:000081 d:000081 CFUNC  :call
c:0024 p:0043 s:0077 b:0077 l:000068 d:000076 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/task.rb:205
c:0023 p:---- s:0074 b:0074 l:000073 d:000073 FINISH
c:0022 p:---- s:0072 b:0072 l:000071 d:000071 CFUNC  :each
c:0021 p:0173 s:0069 b:0069 l:000068 d:000068 METHOD /usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/task.rb:200
c:0020 p:0111 s:0065 b:0065 l:000059 d:000064 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/task.rb:158
c:0019 p:0019 s:0063 b:0063 l:000062 d:000062 METHOD /usr/local/lib/ruby/1.9/monitor.rb:201
c:0018 p:0033 s:0060 b:0060 l:000059 d:000059 METHOD /usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/task.rb:151
c:0017 p:0048 s:0053 b:0053 l:000052 d:000052 METHOD /usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/task.rb:144
c:0016 p:0045 s:0048 b:0048 l:000047 d:000047 METHOD /usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:112
c:0015 p:0012 s:0041 b:0041 l:000026 d:000040 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:90
c:0014 p:---- s:0038 b:0038 l:000037 d:000037 FINISH
c:0013 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC  :each
c:0012 p:0069 s:0033 b:0033 l:000026 d:000032 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:90
c:0011 p:0009 s:0031 b:0031 l:000030 d:000030 METHOD /usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:129
c:0010 p:0011 s:0027 b:0027 l:000026 d:000026 METHOD /usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:84
c:0009 p:0029 s:0024 b:0024 l:000017 d:000023 BLOCK  /usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:62
c:0008 p:0009 s:0022 b:0022 l:000021 d:000021 METHOD /usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:129
c:0007 p:0011 s:0018 b:0018 l:000017 d:000017 METHOD /usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:59
c:0006 p:0048 s:0015 b:0015 l:000014 d:000014 TOP    /usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/bin/rake:32
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC  :load
c:0003 p:0127 s:0007 b:0007 l:001678 d:000260 EVAL   /usr/local/bin/rake:19
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001678 d:001678 TOP
---------------------------
-- Ruby level backtrace information ----------------------------------------
/usr/local/bin/rake:19:in `<main>'
/usr/local/bin/rake:19:in `load'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/bin/rake:32:in `<top (required)>'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:62:in `block in run'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:90:in `block in top_level'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:90:in `each'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:90:in `block (2 levels) in top_level'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.9/monitor.rb:201:in `mon_synchronize'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/task.rb:200:in `each'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/task.rb:205:in `block in execute'
/usr/local/lib/ruby/gems/1.9/gems/rake-0.9.2/lib/rake/task.rb:205:in `call'
/usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/assets.rake:26:in `block (2 levels) in <top (required)>'
/usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/assets.rake:26:in `each'
/usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/assets.rake:27:in `block (3 levels) in <top (required)>'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/base.rb:126:in `each_logical_path'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/base.rb:115:in `each_file'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/base.rb:115:in `each'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/base.rb:116:in `block in each_file'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/base.rb:116:in `each'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/base.rb:117:in `block (2 levels) in each_file'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/base.rb:128:in `block in each_logical_path'
/usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/assets.rake:35:in `block (4 levels) in <top (required)>'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/asset.rb:95:in `digest_path'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/bundled_asset.rb:71:in `digest'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/bundled_asset.rb:235:in `build_source'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/caching.rb:26:in `cache_hash'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/bundled_asset.rb:242:in `block in build_source'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/context.rb:172:in `evaluate'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/context.rb:172:in `each'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/context.rb:175:in `block in evaluate'
/usr/local/lib/ruby/gems/1.9/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/processor.rb:29:in `evaluate'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/processor.rb:29:in `call'
/usr/local/lib/ruby/gems/1.9/gems/sprockets-2.0.0/lib/sprockets/processing.rb:265:in `block in js_compressor='
/usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/compressors.rb:18:in `compress'
/usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/compressors.rb:14:in `compressor'
/usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/compressors.rb:14:in `call'
/usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/railtie.rb:62:in `block (2 levels) in <class:Railtie>'
/usr/local/lib/ruby/gems/1.9/gems/railties-3.1.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
/usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/railtie.rb:87:in `expand_js_compressor'
/usr/local/lib/ruby/gems/1.9/gems/actionpack-3.1.0/lib/sprockets/railtie.rb:87:in `new'
/usr/local/lib/ruby/gems/1.9/gems/uglifier-1.0.3/lib/uglifier.rb:49:in `initialize'
/usr/local/lib/ruby/gems/1.9/gems/execjs-1.2.4/lib/execjs/module.rb:27:in `compile'
/usr/local/lib/ruby/gems/1.9/gems/execjs-1.2.4/lib/execjs/ruby_racer_runtime.rb:107:in `compile'
/usr/local/lib/ruby/gems/1.9/gems/execjs-1.2.4/lib/execjs/ruby_racer_runtime.rb:107:in `new'
/usr/local/lib/ruby/gems/1.9/gems/execjs-1.2.4/lib/execjs/ruby_racer_runtime.rb:7:in `initialize'
/usr/local/lib/ruby/gems/1.9/gems/execjs-1.2.4/lib/execjs/ruby_racer_runtime.rb:76:in `lock'
/usr/local/lib/ruby/gems/1.9/gems/therubyracer-0.9.4/lib/v8/c/locker.rb:13:in `Locker'
/usr/local/lib/ruby/gems/1.9/gems/execjs-1.2.4/lib/execjs/ruby_racer_runtime.rb:78:in `block in lock'
/usr/local/lib/ruby/gems/1.9/gems/execjs-1.2.4/lib/execjs/ruby_racer_runtime.rb:9:in `block in initialize'
/usr/local/lib/ruby/gems/1.9/gems/therubyracer-0.9.4/lib/v8/context.rb:38:in `eval'
/usr/local/lib/ruby/gems/1.9/gems/therubyracer-0.9.4/lib/v8/portal.rb:16:in `lock'
/usr/local/lib/ruby/gems/1.9/gems/therubyracer-0.9.4/lib/v8/context.rb:39:in `block in eval'
/usr/local/lib/ruby/gems/1.9/gems/therubyracer-0.9.4/lib/v8/context.rb:39:in `try'

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort (core dumped)

Re: rake assets:precompile. /therubyracer-0.9.4/lib/v8/context.rb:39

if your running with the final 3.1 rails version you dont need 'therubyracer' gem. maybe that'll clear up most of those errors

Re: rake assets:precompile. /therubyracer-0.9.4/lib/v8/context.rb:39

I use therubtracer to get acces to JavaSCript environment.
Without this gem I always getting error: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.

Re: rake assets:precompile. /therubyracer-0.9.4/lib/v8/context.rb:39

Okay. To Use jquery-rails  you need install node-devel-0.5.5. This problem only for freebsd 8 amd64...