From: Christophe@..., Bliard@... Date: 2014-01-13T10:38:07+00:00 Subject: [ruby-core:59739] [ruby-trunk - Bug #9384] Segfault in ruby 2.1.0p0 Issue #9384 has been updated by Christophe Bliard. File Gemfile.lock.works added File Gemfile.lock.segfaults added Aman Gupta wrote: > Maybe it's related to the ref gem and weak_reference implementation? Can you try without it? No I can't because ref is required by therubyracer gem, which is needed for rails assets precompilation. So I tried updating ref gem. After running `bundle update therubyracer`, the updated gems are: - therubyracer from 0.11.3 to 0.12.0 - libv8 from 3.11.8.17 to 3.16.14.3 - ref from 1.0.2 to 1.0.5 It seems to fix it: I tried multiple times and it has always worked. I tried with these rubies: - ruby 2.1.0 (ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]) - ruby 2.1.1 (ruby 2.1.1p2 (2013-12-31 revision 44467) [x86_64-linux]) - ruby 2.2.0 (ruby 2.2.0dev (2014-01-08 trunk 44527) [x86_64-linux]) I do not know if the culprit is ref, libv8 or therubyracer. I joined the Gemfile.lock files: one when it segfaults and one when it works. ---------------------------------------- Bug #9384: Segfault in ruby 2.1.0p0 https://bugs.ruby-lang.org/issues/9384#change-44260 * Author: Christophe Bliard * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux] * Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- I got a stacktrace while capistrano was deploying our rails app to our server. We switched to ruby 2.1.0 recently. It worked on my dev station, not in staging. I attached the ruby stderr as output by capistrano and every line was prepended with '*** [err :: hostname.com] '. I removed them for clarity. It looks like some output has been modified by capistrano too. If you need further data, please tell me. ---Files-------------------------------- ruby_stderr.log (248 KB) bundle_exec_rake_assets_precompile.1.log (247 KB) bundle_exec_rake_assets_precompile.2.log (235 KB) ruby_rake_assets_precompile_all.1.log (235 KB) ruby_rake_assets_precompile_all.2.log (234 KB) bundle_exec_rake_assets_precompile.ruby_trunk.log (224 KB) Gemfile.lock.works (8.36 KB) Gemfile.lock.segfaults (8.36 KB) -- http://bugs.ruby-lang.org/