Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
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.


Thread View

Thread Author Date
Segmentation FaultNunya Gupta2011-04-07 15:22
      RE: Segmentation Faultarton Tajima2011-04-07 15:56
            RE: Segmentation Faultarton Tajima2011-04-07 16:22
            RE: Segmentation FaultNunya Gupta2011-04-07 16:57
                  RE: Segmentation Faultarton Tajima2011-04-07 17:54
                        RE: Segmentation FaultNunya Gupta2011-04-07 18:13
                        RE: Segmentation FaultNunya Gupta2011-04-07 20:14
                              RE: Segmentation Faultarton Tajima2011-04-08 13:45
                                    RE: Segmentation FaultNunya Gupta2011-04-08 14:46
                                          RE: Segmentation Faultarton Tajima2011-04-08 15:01
      RE: Segmentation FaultNunya Gupta2011-04-08 14:30
      RE: Segmentation FaultMarc Juul2011-10-15 03:48
            RE: Segmentation FaultMarc Juul2011-10-15 04:02

Post a followup to this message