Project

General

Profile

Actions

Bug #2753

closed

db:create:all generates an "Segmentation Fault "

Added by zinho (Rafael Carvalho) about 14 years ago. Updated almost 13 years ago.

Status:
Third Party's Issue
Assignee:
-
ruby -v:
1.9.1p243
[ruby-core:28200]

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:

  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) 1.9.1.0[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-----------------------------------------

[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


Related issues 1 (0 open1 closed)

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

Updated by zinho (Rafael Carvalho) about 14 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

Actions #2

Updated by luislavena (Luis Lavena) about 14 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

Actions #3

Updated by zinho (Rafael Carvalho) about 14 years ago

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

Thanks very much for the fast reply.

Rafael
=end

Actions #4

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

  • Status changed from Open to Third Party's Issue

=begin

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0