Project

General

Profile

This project is closed and read-only.

Actions

Bug #2753

closed

db:create:all generates an "Segmentation Fault "

Bug #2753: db:create:all generates an "Segmentation Fault "

Added by zinho (Rafael Carvalho) over 16 years ago. Updated over 15 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 open — 1 closed)

Related to Backport191 - Bug #2977: Segmaentation faultThird Party's IssueActions

Updated by zinho (Rafael Carvalho) over 16 years ago Actions #1

=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) over 16 years ago Actions #2

=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) over 16 years ago Actions #3

=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) over 16 years ago Actions #4

  • Status changed from Open to Third Party's Issue

=begin

=end

Actions

Also available in: PDF Atom