Just wanted to post a warning for everyone out there.
We just migrated our application to a 64-Bit Red Hat Enterprise 5
Server, and when we migrated we dutifully installed the latest ruby
patch p230 for Ruby 1.8.6. As soon as we got our web server running
(Litespeed), our pages failed for what seemed like no reason.
At first, my only inkling on the rails side was a failure on the
"protect_from_forgery?" function on a remote form, but then I started
getting 503 errors, which shouldn't happen. Worse yet, it happened
intermittently, so repeating the problem was almost impossible.
When I dug into the server's error log, I started seeing a
segmentation fault [bug] warning. It's not something we've ever
experienced with our site or with Ruby.
Low and behold, after much hand wringing and searching the depths of
every ruby, rails, and linux groups, it turns out that ruby-1.8.6-p230
causes the segmentation fault sometimes when the ActiveSupport gem is
called. To fix the problem, we downgraded our Ruby version to what we
originally developed on ruby-1.8.6-p111. All is well. no more wierd
errors or segmentation faults.
I know we searched far and wide for an answer to this issue, so I
thought it would be a good idea to post how we fixed it.
On another note: when installing ruby and rails on the Red Hat
Enterprise 5, make sure you have the zLib-devel and openssl-devel
installed before you install ruby, or your ruby installation and
subsequent rails installation can get almost hopelessly borked.
Sometimes zLib and openssl is there, but zLib-devel and openssl-devel
may not be. Use Yum to install them...it's just easier. the ROR wiki
says to use 'up2date zlib_devel', but up2date is not valid on Red Hat
That's it. I hope we saved someone a few hours.