I am an experienced systems programmer (20+ years) trying to get RoR
working on a Centos server with WHM, Cpanel, etc. Everything seems OK
and I am able to run the hello world apps however I am having major
problems when I enable some database access ala the cookbook tutorials.
Whether I run mongrel or webrick I am getting seg faults and/or traps in
mysql_adapter.rb when I submit a form of data. Specifically I browse to
www.mydomain.com:mongrelport/mycontroller/new and the correct form comes
up ready for data entry. When I click Create to submit the data to the
DB my browser fails on a “create” url, and the server gives up with a
seg fault or trap indicating a problem in mysql_adapter.rb. Now the data
actually does get entered into the MySQL db (v4.1)so I believe the db
config is OK.
** Starting Mongrel in development mode at 0.0.0.0:8008
** Starting Rails in environment development …
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no
restart).
** Rails signals registered. HUP => reload (without restart). It might
not work well.
** Running 0.0.0.0:8008 listener.
** Mongrel available at 0.0.0.0:8008
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/mysql_adapter.rb:340:
[BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [i386-linux]
Aborted
Line 339-340 of the mysql_adapter.rb file has:
if @null_values_in_each_hash
result.each.hash { |row| rows << row )
else …
I am quite a bit frustrated at this point. My server is as stock as they
come. Any advice is greatly appreciated. Thanks in advance.