Ruby 1.8.6 p230 Segmentation Fault

Open a terminal, type “ruby -v” and see if your output is something like this:

$ ruby -v
ruby 1.8.6 (2008-06-20 patchlevel 230)

If it is, pay attention to this post:

I was a happy programmer until I faced the first Segmentation fault of my life. Doing a simple request of my rails app’s home. Since I installed tons of plugins, Ruby, Rails and gems versions, and haven’t turned my machine off in weeks, I thought it was my machine so I rebooted it. Same problem.

After a little bit of despair, I searched on google for Segfaults on Rails 2.1 with Ruby 1.8.6 and Mongrel 1.1.5. I was lead to these pages:

http://rails.lighthouseapp.com/projects/8994/tickets/513-segmentation-fault-ruby-1-8-6-i686-linux-patchlevel-230

http://redmine.ruby-lang.org/issues/show/211

To solve this issue:

svn co http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6

Compile and install it. Problem solved.

P.S.: I think this is serious to alarm because I upgraded my Ruby version to 1.8.6 p230 to solve the “famous” recent vulnerability found in Ruby. In fact, until the time of writting this post, p230 is the 1.8.6 version the site http://www.ruby-lang.org/ asks you to download, compile and install.

2 comments ↓

#1 Donizetti on 07.29.08 at 5:16 pm

Nice post……It’ll be helpful….=D

#2 Wilerson on 07.30.08 at 12:26 am

Your first segfault? You haven’t used C enough. :)

Leave a Comment