码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2016-02-01 18:33:07      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:

在执行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版本。。。。

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

标签:

原文地址:http://www.cnblogs.com/Sophiawow/p/5175387.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!