No, it actually starts up fine. Then, when I try to request a particular page, it crashes and produces the error above.
Main Topics
Browse All Topics- I am using windows vista 64bit and I have MySQL installed on my computer
- I am following the instructions at http://guides.rubyonrails.
- I did everything down to adding "map.root :controller => "home" " to the routes.rb file
- when i go to http://localhost:3000/ now, most of the time I get the following error:
C:/Ruby/lib/ruby/gems/1.8/
:341: [BUG] Segmentation fault
ruby 1.8.6 (2008-08-11) [i386-mswin32]
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Please find the complete log below
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
No the log says it starts and immediatly thereafter terminates. If that is not the case then there should be at least some hin that e.g some query has run or was tried to run.And the error happens while
action_controller/request.
that suggests IMHO a mismath in versions. As written please try another more actual webbrickwhich can cope with
rails 2.3.2.
Regards
Friedrich
Just to check our bases, you didn't see any problems while working on Step 4.1 in the guide you are working through?
I'm not sure it will help, but could you attach development.log (in the log directory) and any other log files with some content (server.log?) in the log directory?
fridom:
Webrick is a standard library in Ruby, so it's version tracks with Ruby (albeit out of synch).
From the development.log file, the true problem can be seen:
Status: 500 Internal Server Error
Can't connect to MySQL server on 'localhost' (10061)
To me, this means one of two things:
- your database is down;
- your 'config/database.yml' is not configured correctly for your database installation.
I could get the exact same traceback from Rails by either not running 'rake db:create' or purposely misconfiguring the config/database.yml file (although the error line was different). I didn't seen the segmentation fault, but that is likely an artifact of your Ruby/Rails environment (Windows vs. Linux, different versions of Ruby or Rails).
First, what is your 'config/database.yml' entry for development? (Please include that if the following does not help.) If you are using 'socket' like in the Guide, you need to make sure it's the correct file, as /tmp/mysql.sock is likely not correct on your Windows system. If you are using host/port, first check that MySQL is listening on the same port. Run 'netstat -an' and look for port 3306. It would likely look like one of these two lines:
TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING
TCP 127.0.0.1:3306 0.0.0.0:0 LISTENING
If there is no line with "3306" in place, then MySQL is either down or not listening on the correct port. (If you purposely used an alternate port with the install of MySQL, then look for that port.) Or if there is a like, but the IP address is different, then MySQL is being bound to a specific address and you need to change the database.yml file to correspond.
Business Accounts
Answer for Membership
by: fridomPosted on 2009-07-23 at 23:21:45ID: 24932566
Hm Webbrick traps while getting started. So this seems to be very much a problem with Webbrick. Maybe you could try
1) another webbrick
2) another ruby version
3) another rails version
but first I'd ask at the mailing list form Webbrick