| Message: 96313 |
 |
BY: Nunya Gupta (nunyagupta) DATE: 2011-04-08 14:46 SUBJECT: RE: Segmentation Fault Hi!
Thank you for all your effort.
It really is perplexing. As far as I know, I have two identical servers--down to the bit. I installed everything myself and am the only user. Yet the one will only work with 1.5 (after some minor surgery--see my other message).
Just to make sure it wasn't anything with my .jar file, I ran a test with itext.jar (http://itextpdf.com/), and it also produced a segmentation fault.
Oddly, if I commented out the offending initializer that loaded the .jar (called classifier.rb), ran script/console, then followed the same process that classifier.rb performs (i.e., require 'rjb', Rjb::load, etc.), it ran successfully. So...what the heck? Maybe something in the way Rails boots (but _only_ on this machine!) was causing the issue? Trying to run classifier.rb from a pre_initializer didn't work. Another oddity: running the same code from within a model (i.e., not loading it in an initializer) produced a seg fault.
Running the classifier.rb processes from irb worked fine.
At any rate, I'm guessing my case is very rare/edge, and downgrading to Java 1.5 solved the issue. Hopefully my spelunking helps a bit.
| |