Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Bug in before_validation "[FATAL] failed to allocate memory"

#5423

If my model has a before_validation and i call the method "valid?", it returns "[FATAL] failed to allocate memory".
I tested using Ruby 1.8.7 and Ruby 1.9.2

Rails version 3.0.0.rc

Using Ruby 1.9.2

ruby-1.9.2-p0 > a = Project.new(:name => "a")
=> # ruby-1.9.2-p0 > a.valid?
SystemStackError: stack level too deep

from /home/lucas/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/irb/workspace.rb:80

Maybe IRB bug!!
ruby-1.9.2-p0 >

Using Ruby 1.8.7

ruby-1.8.7-p299 > a = Project.new(:name => "a")
=> # ruby-1.8.7-p299 > a.valid?
[FATAL] failed to allocate memory

Reported by ronin-112550 (at lighthouseapp) · August 21st, 2010 @ 03:11 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Kane
    Kane

    are you serious?

    you call "valid?" in a callback for it and wonder why you get stack level to deep?!

    August 21st, 2010 @ 05:31 PM

  2. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to invalid
    • Importance changed from to Low

    August 25th, 2010 @ 03:10 AM