zoukankan      html  css  js  c++  java
  • ../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版本。。。。

    -------------------------------- |原来看似困难的事情是那么的简单ᶘ ᵒᴥᵒᶅ| --------------------------------
  • 相关阅读:
    前台ajax传数组,后台java接收
    CSS揭秘—打字动效(四)
    通过四个问题了解HTTP协议基础
    Fiddler抓包工具怎么设置HTTPS抓包
    固定定位导致$(window).scrollTop();获取滚动后到顶部距离总是为0
    git bash 使用自带 curl 命令出现乱码解决方法
    移动端布局方案—vw+rem
    Windows安装Nginx需要注意的地方
    orientation属性(判断是否为横竖屏)
    js之瀑布流的实现
  • 原文地址:https://www.cnblogs.com/Sophiawow/p/5175387.html
Copyright © 2011-2022 走看看