Bug #2753
closeddb:create:all generates an "Segmentation Fault "
Description
=begin
Trying to generate the databases using ruby 1.9.1p243 on Windows 7 return an "Segmentation Fault".
To cause the error follow the steps:
- Open a command line (cmd)
- rails myapp -d mysql
- cd myapp
- rake db:crate:all
After a while Windows pops up the message "Ruby interpreter (CUI) 1.9.1.0[i386-mingw32] stopped working" and close the program.
In command line I receive the following message:
-- control frame ----------
c:0001 p:0000 s:0002 b:0002 l:002554 d:002554 TOP
-- Ruby level backtrace information-----------------------------------------
[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
=end
Updated by zinho (Rafael Carvalho) almost 15 years ago
=begin
Unfortunately it occurs with ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32] too.
Maybe its a problem with Windows 7
=end
Updated by luislavena (Luis Lavena) almost 15 years ago
=begin
Please check the version of MySQL you're trying to connect Ruby to.
If is MySQL 5.1, then the segmentation fault is expected.
mysql gem has been binary compiled against MySQL 5.0:
http://blog.mmediasys.com/2009/08/21/mysqlruby-2-8-1-released/
http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-mysql/
If you want to manually compile it for your current installation of MySQL, please take a look to RubyInstaller tutorials for instructions:
http://wiki.github.com/oneclick/rubyinstaller/tutorials
This is not a Ruby-core issue, is a 3rd party one.
--
Luis Lavena
=end
Updated by zinho (Rafael Carvalho) almost 15 years ago
=begin
My fault. You're totaly right.
It worked with MySQL 5.0
Thanks very much for the fast reply.
Rafael
=end
Updated by marcandre (Marc-Andre Lafortune) almost 15 years ago
- Status changed from Open to Third Party's Issue
=begin
=end