ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:99337] [Ruby master Bug#17051] Crash when attempting to load schema in Rails application
@ 2020-07-25 18:42 thoen
  2020-07-25 19:31 ` [ruby-core:99338] " XrXr
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: thoen @ 2020-07-25 18:42 UTC (permalink / raw
  To: ruby-core

Issue #17051 has been reported by thoen@classroomparent.com (Tom Hoen).

----------------------------------------
Bug #17051: Crash when attempting to load schema in Rails application
https://bugs.ruby-lang.org/issues/17051

* Author: thoen@classroomparent.com (Tom Hoen)
* Status: Open
* Priority: Normal
* ruby -v: 2.3.1, 2.3.8, 2.4.9
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
I am experiencing a crash when running `rake db:schema:load` or `rake db:migrate` in a Rails 4.2.9/Mysql2 0.4.0 application. 

I don't believe it is a specific issue with a ruby version, as I have tried with Rubies 2.3.1, 2.3.8, and 2.4.9. 

I also have another rails application (also Rails 4.2.9 and Mysql2 0.4.0 where I can successfully run those commands. 

Yesterday I had to reinstall RVM and all of my Rubies. That is when the issue began. Up until then, I have had no issues running that command in the same application. 

I have tried running the command after removing all of the gems in the application other than Rails and Mysql2. 

Reviewing the stack trace, I am not seeing anything particular to the application that might be culprit. 

I have also uninstalled and reinstalled Rails and Mysql2 gems. 

---Files--------------------------------
ruby_2020-07-25-142435_NFG-TOM-1602.crash (57.1 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:99338] [Ruby master Bug#17051] Crash when attempting to load schema in Rails application
  2020-07-25 18:42 [ruby-core:99337] [Ruby master Bug#17051] Crash when attempting to load schema in Rails application thoen
@ 2020-07-25 19:31 ` XrXr
  2020-07-25 19:47 ` [ruby-core:99339] " thoen
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: XrXr @ 2020-07-25 19:31 UTC (permalink / raw
  To: ruby-core

Issue #17051 has been updated by alanwu (Alan Wu).


Support for the 2.4 series has [ended](https://www.ruby-lang.org/en/news/2020/04/05/support-of-ruby-2-4-has-ended/). Could you see if upgrading to a newer version of Ruby solves the crash?

----------------------------------------
Bug #17051: Crash when attempting to load schema in Rails application
https://bugs.ruby-lang.org/issues/17051#change-86732

* Author: thoen@classroomparent.com (Tom Hoen)
* Status: Open
* Priority: Normal
* ruby -v: 2.3.1, 2.3.8, 2.4.9
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
I am experiencing a crash when running `rake db:schema:load` or `rake db:migrate` in a Rails 4.2.9/Mysql2 0.4.0 application. 

I don't believe it is a specific issue with a ruby version, as I have tried with Rubies 2.3.1, 2.3.8, and 2.4.9. 

I also have another rails application (also Rails 4.2.9 and Mysql2 0.4.0 where I can successfully run those commands. 

Yesterday I had to reinstall RVM and all of my Rubies. That is when the issue began. Up until then, I have had no issues running that command in the same application. 

I have tried running the command after removing all of the gems in the application other than Rails and Mysql2. 

Reviewing the stack trace, I am not seeing anything particular to the application that might be culprit. 

I have also uninstalled and reinstalled Rails and Mysql2 gems. 

---Files--------------------------------
ruby_2020-07-25-142435_NFG-TOM-1602.crash (57.1 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:99339] [Ruby master Bug#17051] Crash when attempting to load schema in Rails application
  2020-07-25 18:42 [ruby-core:99337] [Ruby master Bug#17051] Crash when attempting to load schema in Rails application thoen
  2020-07-25 19:31 ` [ruby-core:99338] " XrXr
@ 2020-07-25 19:47 ` thoen
  2020-07-25 20:09 ` [ruby-core:99340] " XrXr
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: thoen @ 2020-07-25 19:47 UTC (permalink / raw
  To: ruby-core

Issue #17051 has been updated by thoen@classroomparent.com (Tom Hoen).


Thank you for responding Alan. Is 2.5.8 sufficient?

----------------------------------------
Bug #17051: Crash when attempting to load schema in Rails application
https://bugs.ruby-lang.org/issues/17051#change-86733

* Author: thoen@classroomparent.com (Tom Hoen)
* Status: Open
* Priority: Normal
* ruby -v: 2.3.1, 2.3.8, 2.4.9
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
I am experiencing a crash when running `rake db:schema:load` or `rake db:migrate` in a Rails 4.2.9/Mysql2 0.4.0 application. 

I don't believe it is a specific issue with a ruby version, as I have tried with Rubies 2.3.1, 2.3.8, and 2.4.9. 

I also have another rails application (also Rails 4.2.9 and Mysql2 0.4.0 where I can successfully run those commands. 

Yesterday I had to reinstall RVM and all of my Rubies. That is when the issue began. Up until then, I have had no issues running that command in the same application. 

I have tried running the command after removing all of the gems in the application other than Rails and Mysql2. 

Reviewing the stack trace, I am not seeing anything particular to the application that might be culprit. 

I have also uninstalled and reinstalled Rails and Mysql2 gems. 

---Files--------------------------------
ruby_2020-07-25-142435_NFG-TOM-1602.crash (57.1 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:99340] [Ruby master Bug#17051] Crash when attempting to load schema in Rails application
  2020-07-25 18:42 [ruby-core:99337] [Ruby master Bug#17051] Crash when attempting to load schema in Rails application thoen
  2020-07-25 19:31 ` [ruby-core:99338] " XrXr
  2020-07-25 19:47 ` [ruby-core:99339] " thoen
@ 2020-07-25 20:09 ` XrXr
  2020-07-25 21:01 ` [ruby-core:99341] " thoen
  2020-07-26 18:33 ` [ruby-core:99350] " thoen
  4 siblings, 0 replies; 6+ messages in thread
From: XrXr @ 2020-07-25 20:09 UTC (permalink / raw
  To: ruby-core

Issue #17051 has been updated by alanwu (Alan Wu).


> Thank you for responding Alan. Is 2.5.8 sufficient?

Actually, you seem to be running into a known problem in the mysql2 gem.
Please see https://github.com/brianmario/mysql2/issues/1036 and https://github.com/brianmario/mysql2/issues/1063.

Regarding Ruby versions, the 2.5 series doesn't receive [bug fixes](https://www.ruby-lang.org/en/news/2020/04/05/support-of-ruby-2-4-has-ended/), so if you are running into a bug in Ruby itself you'd need to upgrade to 2.6 at least. Again, this seems to be a bug in `mysql2` rather than Ruby itself, though.

----------------------------------------
Bug #17051: Crash when attempting to load schema in Rails application
https://bugs.ruby-lang.org/issues/17051#change-86734

* Author: thoen@classroomparent.com (Tom Hoen)
* Status: Open
* Priority: Normal
* ruby -v: 2.3.1, 2.3.8, 2.4.9
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
I am experiencing a crash when running `rake db:schema:load` or `rake db:migrate` in a Rails 4.2.9/Mysql2 0.4.0 application. 

I don't believe it is a specific issue with a ruby version, as I have tried with Rubies 2.3.1, 2.3.8, and 2.4.9. 

I also have another rails application (also Rails 4.2.9 and Mysql2 0.4.0 where I can successfully run those commands. 

Yesterday I had to reinstall RVM and all of my Rubies. That is when the issue began. Up until then, I have had no issues running that command in the same application. 

I have tried running the command after removing all of the gems in the application other than Rails and Mysql2. 

Reviewing the stack trace, I am not seeing anything particular to the application that might be culprit. 

I have also uninstalled and reinstalled Rails and Mysql2 gems. 

---Files--------------------------------
ruby_2020-07-25-142435_NFG-TOM-1602.crash (57.1 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:99341] [Ruby master Bug#17051] Crash when attempting to load schema in Rails application
  2020-07-25 18:42 [ruby-core:99337] [Ruby master Bug#17051] Crash when attempting to load schema in Rails application thoen
                   ` (2 preceding siblings ...)
  2020-07-25 20:09 ` [ruby-core:99340] " XrXr
@ 2020-07-25 21:01 ` thoen
  2020-07-26 18:33 ` [ruby-core:99350] " thoen
  4 siblings, 0 replies; 6+ messages in thread
From: thoen @ 2020-07-25 21:01 UTC (permalink / raw
  To: ruby-core

Issue #17051 has been updated by thoen@classroomparent.com (Tom Hoen).


I think you are correct Alan. During my rebuild of the laptop, I inadvertently installed v 8 instead of 5.6. What threw me off was the other Rails app working without issue, using the same ruby version, mysql2 version, and Mysql database. 



----------------------------------------
Bug #17051: Crash when attempting to load schema in Rails application
https://bugs.ruby-lang.org/issues/17051#change-86735

* Author: thoen@classroomparent.com (Tom Hoen)
* Status: Open
* Priority: Normal
* ruby -v: 2.3.1, 2.3.8, 2.4.9
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
I am experiencing a crash when running `rake db:schema:load` or `rake db:migrate` in a Rails 4.2.9/Mysql2 0.4.0 application. 

I don't believe it is a specific issue with a ruby version, as I have tried with Rubies 2.3.1, 2.3.8, and 2.4.9. 

I also have another rails application (also Rails 4.2.9 and Mysql2 0.4.0 where I can successfully run those commands. 

Yesterday I had to reinstall RVM and all of my Rubies. That is when the issue began. Up until then, I have had no issues running that command in the same application. 

I have tried running the command after removing all of the gems in the application other than Rails and Mysql2. 

Reviewing the stack trace, I am not seeing anything particular to the application that might be culprit. 

I have also uninstalled and reinstalled Rails and Mysql2 gems. 

---Files--------------------------------
ruby_2020-07-25-142435_NFG-TOM-1602.crash (57.1 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [ruby-core:99350] [Ruby master Bug#17051] Crash when attempting to load schema in Rails application
  2020-07-25 18:42 [ruby-core:99337] [Ruby master Bug#17051] Crash when attempting to load schema in Rails application thoen
                   ` (3 preceding siblings ...)
  2020-07-25 21:01 ` [ruby-core:99341] " thoen
@ 2020-07-26 18:33 ` thoen
  4 siblings, 0 replies; 6+ messages in thread
From: thoen @ 2020-07-26 18:33 UTC (permalink / raw
  To: ruby-core

Issue #17051 has been updated by thoen@classroomparent.com (Tom Hoen).


I have confirmed you are correct. After switching back to my original installation of mysql, all is good. 

----------------------------------------
Bug #17051: Crash when attempting to load schema in Rails application
https://bugs.ruby-lang.org/issues/17051#change-86744

* Author: thoen@classroomparent.com (Tom Hoen)
* Status: Open
* Priority: Normal
* ruby -v: 2.3.1, 2.3.8, 2.4.9
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
I am experiencing a crash when running `rake db:schema:load` or `rake db:migrate` in a Rails 4.2.9/Mysql2 0.4.0 application. 

I don't believe it is a specific issue with a ruby version, as I have tried with Rubies 2.3.1, 2.3.8, and 2.4.9. 

I also have another rails application (also Rails 4.2.9 and Mysql2 0.4.0 where I can successfully run those commands. 

Yesterday I had to reinstall RVM and all of my Rubies. That is when the issue began. Up until then, I have had no issues running that command in the same application. 

I have tried running the command after removing all of the gems in the application other than Rails and Mysql2. 

Reviewing the stack trace, I am not seeing anything particular to the application that might be culprit. 

I have also uninstalled and reinstalled Rails and Mysql2 gems. 

---Files--------------------------------
ruby_2020-07-25-142435_NFG-TOM-1602.crash (57.1 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-07-26 18:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-25 18:42 [ruby-core:99337] [Ruby master Bug#17051] Crash when attempting to load schema in Rails application thoen
2020-07-25 19:31 ` [ruby-core:99338] " XrXr
2020-07-25 19:47 ` [ruby-core:99339] " thoen
2020-07-25 20:09 ` [ruby-core:99340] " XrXr
2020-07-25 21:01 ` [ruby-core:99341] " thoen
2020-07-26 18:33 ` [ruby-core:99350] " thoen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).