Bug #2753

db:create:all generates an "Segmentation Fault "

Added by zinho (Rafael Carvalho) about 10 years ago. Updated almost 9 years ago.

Third Party's Issue
ruby -v:


Trying to generate the databases using ruby 1.9.1p243 on Windows 7 return an "Segmentation Fault".
To cause the error follow the steps:
1) Open a command line (cmd)
2) rails myapp -d mysql
3) cd myapp
4) rake db:crate:all
After a while Windows pops up the message "Ruby interpreter (CUI)[i386-mingw32] stopped working" and close the program.
In command line I receive the following message:

: [BUG] Segmentation fault
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]

-- control frame ----------
c:0001 p:0000 s:0002 b:0002 l:002554 d:002554 TOP

-- Ruby level backtrace information-----------------------------------------

You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details:

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Related issues

Related to Backport191 - Bug #2977: Segmaentation faultThird Party's Issue03/18/2010Actions

Updated by zinho (Rafael Carvalho) about 10 years ago

Unfortunately it occurs with ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32] too.
Maybe its a problem with Windows 7


Updated by luislavena (Luis Lavena) about 10 years ago

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:

If you want to manually compile it for your current installation of MySQL, please take a look to RubyInstaller tutorials for instructions:

This is not a Ruby-core issue, is a 3rd party one.

Luis Lavena



Updated by zinho (Rafael Carvalho) about 10 years ago

My fault. You're totaly right.
It worked with MySQL 5.0

Thanks very much for the fast reply.



Updated by marcandre (Marc-Andre Lafortune) about 10 years ago

  • Status changed from Open to Third Party's Issue



Also available in: Atom PDF