Bug #7687

Segmentation fault on Ruby 1.9.3 and Rails 2.3

Added by David Rasch over 1 year ago. Updated over 1 year ago.

[ruby-core:51386]
Status:Closed
Priority:Normal
Assignee:-
Category:-
Target version:1.9.3
ruby -v:ruby 1.9.3p362 (2012-12-25 revision 38607) [x86_64-linux] Backport:

Description

I've not been able to nail down exact code to reproduce this, but I've seen it now 3-4 times. It happens if I startup my rails server (script/server) and make a request to the server before it's fully loaded. It also happens intermittently when just browsing pages.

segmentation-fault.txt Magnifier (317 KB) David Rasch, 01/12/2013 01:55 AM

coredump-while-migrating.txt Magnifier (125 KB) David Costa, 01/14/2013 10:51 PM

History

#1 Updated by David Rasch over 1 year ago

This occurs in ruby 1.9.3p362, but not in: ruby-1.9.3-p327 nor in ruby-1.9.3-head (as of today 3468cd1ed68ac08b19fffd78442b5de3a622c6ce)

#2 Updated by David Costa over 1 year ago

It happens to me too at the same line: validations.rb:479 of activerecord-2.3.15.

I am able to reproduce it by installing ChiliProject (I use the 3.5.0 version). The crash happens when I run this command "RAILS_ENV=production bundle exec rake db:migrate" in order to create the database tables.

This happens in ruby-1.9.3p362 but not in ruby-1.9.3p327.

In attachment the segfault output preceded by the output of "bundle exec rake db:migrate" of ChiliProject

#3 Updated by Usaku NAKAMURA over 1 year ago

  • Status changed from Open to Closed

Sorry for inconvinient.
This is a known problem, and already fixed in the repository.

Use the HEAD of ruby19_3 if you can, or use p327 till next patch release.

Also available in: Atom PDF