# stack level too deep

**URL:** <https://discuss.rubyonrails.org/t/stack-level-too-deep/13876>\
**Category:** rubyonrails-talk\
**Created:** [June 3, 2007, 2:19am UTC](https://discuss.rubyonrails.org/t/stack-level-too-deep/13876 "2007-06-03T02:19:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GoodbyeJava](https://avatars.discourse-cdn.com/v4/letter/g/4491bb/32.png) [@GoodbyeJava](https://discuss.rubyonrails.org/u/GoodbyeJava)\
**Post date:** [June 3, 2007, 2:19am UTC](https://discuss.rubyonrails.org/t/stack-level-too-deep/13876/1 "2007-06-03T02:19:52Z")

</div>

def password=(pwd) &nbsp;&nbsp;@password = pwd &nbsp;&nbsp;return if pwd.blank? &nbsp;&nbsp;create\_new\_salt &nbsp;&nbsp;#self.hashed\_password = Person.encrypted\_password(self.password, self.salt) &nbsp;&nbsp;self.password = Person.encrypted\_password(self.password, self.salt) end

This method is calling itself on the last line. Right before the final "end." It will continue to do this until it runs out of stack space and your program crashes.
