# Mongrel crashing problem

**URL:** <https://www.ruby-forum.com/t/mongrel-crashing-problem/170063>\
**Category:** Mongrel\
**Created:** [June 11, 2009, 9:14pm UTC](https://www.ruby-forum.com/t/mongrel-crashing-problem/170063 "2009-06-11T21:14:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_J\_Kreucher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2bfe46/32.png) [@Nicholas\_J\_Kreucher](https://www.ruby-forum.com/u/Nicholas_J_Kreucher)\
**Post date:** [June 11, 2009, 9:14pm UTC](https://www.ruby-forum.com/t/mongrel-crashing-problem/170063/1 "2009-06-11T21:14:50Z")

</div>

Hi Everyone,

Wondering if anyone has insight into my mongrel crashing problem before  
I dig deeper with gdb etc. Most of the crashes seem to be in  
connection\_pool.rb (see below). I’ve got 4 of them running and a mongrel  
crashes about 1-3 times a day. Load varies from light (8 hits/min) to  
light-moderate (60 hits/min)… crash frequency seems to be directly  
related to load.

I’m running a Rails 2.3.2 app under mongrel 1.1.5 (cluster 1.0.5) on  
Linux w/ ruby 1.8.7 (2009-04-08 patchlevel 160) [powerpc64-linux].  
Backend is MySQL 5.0.18 on a shared host.

Here is what I have in my mongrel logs… seems like some of the crashes  
are not logged:

mongrel.30001.log:activerecord-2.3.2/lib/active\_record/connection\_adapters/abstract/connection\_pool.rb:349:  
[BUG] Segmentation fault  
mongrel.30001.log:activerecord-2.3.2/lib/active\_record/associations.rb:1859:  
[BUG] Segmentation fault  
mongrel.30002.log:activerecord-2.3.2/lib/active\_record/connection\_adapters/abstract/connection\_pool.rb:351:  
[BUG] Segmentation fault  
mongrel.30002.log:activerecord-2.3.2/lib/active\_record/associations/association\_proxy.rb:213:  
[BUG] Segmentation fault  
mongrel.30003.log:activerecord-2.3.2/lib/active\_record/connection\_adapters/abstract/connection\_pool.rb:349:  
[BUG] Segmentation fault  
mongrel.30003.log:activerecord-2.3.2/lib/active\_record/attribute\_methods.rb:345:  
[BUG] Segmentation fault  
mongrel.30004.log:activerecord-2.3.2/lib/active\_record/connection\_adapters/abstract/connection\_pool.rb:349:  
[BUG] Segmentation fault  
mongrel.30004.log:activerecord-2.3.2/lib/active\_record/attribute\_methods.rb:345:  
[BUG] Segmentation fault  
mongrel.30004.log:activerecord-2.3.2/lib/active\_record/connection\_adapters/abstract/connection\_pool.rb:349:  
[BUG] Segmentation fault  
mongrel.30004.log:actionpack-2.3.2/lib/action\_controller/vendor/rack-1.0/rack/utils.rb:89:  
[BUG] Segmentation fault  
mongrel.30004.log:activerecord-2.3.2/lib/active\_record/connection\_adapters/abstract/connection\_pool.rb:351:  
[BUG] Segmentation fault  
mongrel.30004.log:activerecord-2.3.2/lib/active\_record/connection\_adapters/abstract/connection\_pool.rb:351:  
[BUG] Segmentation fault  
mongrel.30004.log:activerecord-2.3.2/lib/active\_record/attribute\_methods.rb:345:  
[BUG] Segmentation fault

Thanks!  
- nick

---

<div class="post-metadata">

**Author:** ![Nicholas\_J\_Kreucher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2bfe46/32.png) [@Nicholas\_J\_Kreucher](https://www.ruby-forum.com/u/Nicholas_J_Kreucher)\
**Post date:** [June 11, 2009, 11:35pm UTC](https://www.ruby-forum.com/t/mongrel-crashing-problem/170063/2 "2009-06-11T23:35:08Z")

</div>

Looks like a Ruby bug, not a Mongrel issue.

Try Ruby 1.8.6 p287 or p369. See if it goes away under one of those.

Don’t forget to rebuild all your gem native libs if you switch Ruby  
builds.

Also, try the Rails list, see what those folks might have to say.

ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p287.tar.gz

–
