../gems/json-1.8.0/lib/json/common.rb:67: [BUG] Segmentation fault

在执行rails 命令时出现:

diudiugirl@DIUs:~/ashelf$ rails s
/home/diudiugirl/.rvm/gems/ruby-1.9.3-p545/gems/json-1.8.0/lib/json/common.rb:67: [BUG] Segmentation fault
ruby 1.9.3p545 (2014-02-24 revision 45159) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0075 p:---- s:0232 b:0232 l:000231 d:000231 CFUNC  :initialize
c:0074 p:---- s:0230 b:0230 l:000229 d:000229 CFUNC  :new
c:0073 p:0099 s:0227 b:0225 l:000224 d:000224 METHOD /home/diudiugirl/.rvm/gems/ruby-1.9.3-p545/gems/json-1.8.0/lib/json/common.rb:67
c:0072 p:0090 s:0216 b:0215 l:000214 d:000214 CLASS 
....
.....

-- Ruby level backtrace information ----------------------------------------
script/rails:6:in `<main>'
script/rails:6:in `require'
/home/diudiugirl/.rvm/gems/ruby-1.9.3-p545/gems/railties-3.2.12/lib/rails/commands.rb:50:in `<top (required)>'
....
.....

-- C level backtrace information -------------------------------------------
/home/diudiugirl/.rvm/rubies/ruby-1.9.3-p545/lib/libruby.so.1.9(+0x19a539) [0x7f8c0515f539] vm_dump.c:796
/home/diudiugirl/.rvm/rubies/ruby-1.9.3-p545/lib/libruby.so.1.9(+0x66434) [0x7f8c0502b434] error.c:258
.....
.....

-- Other runtime information -----------------------------------------------

* Loaded script: script/rails

* Loaded features:

    0 enumerator.so
    1 /home/diudiugirl/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/x86_64-linux/enc/encdb.so
    2 /home/diudiugirl/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/x86_64-linux/enc/trans/transdb.so
    3 /home/diudiugirl/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/x86_64-linux/rbconfig.rb
    4 /home/diudiugirl/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/1.9.1/thread.rb
    5 /home/diudiugirl/.rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/compatibility.rb
    6 /home/diudiugirl/.rvm/rubies/ruby-1.9.3-
.....
.....
.....

* Process memory map:

00400000-00401000 r-xp 00000000 08:01 37227503                           /home/diudiugirl/.rvm/rubies/ruby-1.9.3-p545/bin/ruby
00600000-00601000 r--p 00000000 08:01 37227503                           /home/diudiugirl/.rvm/rubies/ruby-1.9.3-p545/bin/ruby
00601000-00602000 rw-p 00001000 08:01 37227503                           /home/diudiugirl/.rvm/rubies/ruby-1.9.3-p545/bin/ruby
01e16000-03de2000 rw-p 00000000 00:00 0  
.........................
.....................



[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

Aborted (core dumped)

 解决方法重新安装正在使用的ruby版本。。。。

posted @ 2016-02-01 15:00  Sophiawow  Views(532)  Comments(0Edit  收藏  举报