Segmentation faults when running rails on ruby 1.9.3 -


running pretty sizable rails app, we've gotten around upgrading rails 3.

our stack ruby-1.9.3p484, rails 3.2.16 , passenger 4.0.23 running on top of apache.

after throwing traffic @ couple of our machines, started noticing few strange errors coming down.

things random methods not being defined on objects have them, instance variables being nil inside ar associations, , objects being randomly replaced 'false'. around strange behavior.

inspecting apache's logs gave bit of info, namely these errors coming in, more not, respective processes keel on well, on random bits of app.

sometimes ruby node getting passed in null, other times random string overflowing, random stuff getting mangled about.

none of happened during testing, 'reliable' way of reproducing far has been throw traffic @ respective machines , see when / if start exhibiting behavior.

having gone through of this, here's list of things we've ruled out now:

  • passenger's oob garbage collection
  • rails 3 ( apparently we'd been getting these before well, far enough apart not set off alarms )
  • serialization / shoving things in , out of memcached
  • libxml - there reports of version 2.5.0 causing memory corruption, upgrading 2.7.0 didn't make difference
  • turning off prelinking ( can cause memory corruption, per https://www.ruby-forum.com/topic/205897 )

returning gc settings stock seems have alleviated problem, don't have conclusive in regard. seem though more collections result in lower occurrence rate issue.

any thoughts on might causing or use pinpoint issue?

i've had 1.9.3-p484 segfault at_exit on test runs haven't looked yet. in case seems triggered dependencies test suite.

we've had problems project on rails 3 ended abandoning port rails 3 , sticking 2.3 ):

have tried running app outside of apache / passenger?


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -