Bug #1777
<main>:330: [BUG] Segmentation fault
| Status: | Rejected | Start date: | 07/14/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| ruby -v: | ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32] |
Description
About your application's environment Ruby version 1.9.1 (i386-mingw32) RubyGems version 1.3.4 Rack version 1.0 bundled Rails version 2.3.2 Active Record version 2.3.2 Action Pack version 2.3.2 Active Resource version 2.3.2 Action Mailer version 2.3.2 Active Support version 2.3.2 Application root E:/projetos/mysqlapp Environment development Database adapter mysql Database schema version 0 <main>:330: [BUG] Segmentation fault ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32] -- control frame ---------- c:0001 p:0000 s:0002 b:0002 l:0018c4 d:0018c4 TOP <main>:330 --------------------------- -- 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
Related issues
History
Updated by luislavena (Luis Lavena) almost 3 years ago
This sounds more a MySQL/Ruby binding error than Ruby itself. Also, please provide a minimal test case, not the output of your Rails application. From my experience, this sounds like a mismatch between MySQL and the Ruby binding. Can you tell us which version of MySQL are you using?
Updated by shyouhei (Shyouhei Urabe) almost 3 years ago
- Status changed from Open to Feedback
Updated by jonathan013 (Jonathan Seder) almost 3 years ago
I get this error too. Minimal test case Ruby program is this one line: require 'mysql' 10:58:03 > mysql --version mysql Ver 14.14 Distrib 5.1.32, for Win32 (ia32) 10:58:30 > ruby --version ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32] 10:58:49 > gem list *** LOCAL GEMS *** [snip] mysql (2.7.3) [snip] Console error listing: 10:57:30 > ruby mysqlbug.rb c:/program files/ruby/lib/ruby/gems/1.9.1/gems/mysql-2.7.3-x86-mswin32/ext/mysql.so: [BUG] Segmentation fault ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32] -- control frame ---------- c:0005 p:-2956294 s:0012 b:0012 l:000011 d:000011 TOP c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :require c:0003 p:0011 s:0006 b:0006 l:0005a4 d:0005b4 EVAL mysqlbug.rb:2 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:0005a4 d:0005a4 TOP <main>:367 --------------------------- -- Ruby level backtrace information----------------------------------------- mysqlbug.rb:2:in `require' mysqlbug.rb:2:in `<main>' [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.
Updated by luislavena (Luis Lavena) almost 3 years ago
On Wed, Aug 12, 2009 at 3:00 PM, Jonathan Seder<redmine@ruby-lang.org> wrote: > Issue #1777 has been updated by Jonathan Seder. > > > I get this error too. Minimal test case Ruby program is this one line: > require 'mysql' > > 10:58:03 > mysql --version > mysql Ver 14.14 Distrib 5.1.32, for Win32 (ia32) > > 10:58:30 > ruby --version > ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mswin32] > > 10:58:49 > gem list > *** LOCAL GEMS *** > [snip] > mysql (2.7.3) > [snip] First: binary mysql gem 2.7.3 will not work with 1.9.1, you need 2.8.1 Second: binary mysql gem links against 5.0.xx version of MySQL, and there is a API incompatibility with 5.1.xx. I've commented about this over ruby-talk and also on this post: http://blog.mmediasys.com/2009/07/06/getting-started-with-rails-and-mysql/ -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exupéry
Updated by naruse (Yui NARUSE) over 2 years ago
- Status changed from Feedback to Rejected
Third Party's Issue.