Re: [Rd] help with segmentation fault

2008-05-04 Thread Kasper Daniel Hansen
One thing that may help with debugging (and seeing if you get the same error on windows) is to run your code with R> gctorture(TRUE) R> your.function() That way everything is garbage collected all the time so to speak and this may trigger an error on your windows machine. I agree with O

Re: [Rd] help with segmentation fault

2008-05-04 Thread Oleg Sklyar
Katie, 99% it's a bug in your C code caused by accessing memory (probably writing to) which was not allocated or freed already or out of boundary. The fact that it worked fine on Windows is likely to be a pure coincidence of different compiler/optimisation settings. However, the main problem

[Rd] help with segmentation fault

2008-05-04 Thread Kyeongmi Cheon
Hello all, I'm trying to have C called by R. I wrote C codes that worked perfectly fine with R-2.6.0 in windows system ( using R tools). I had to change to SuSE Linux (this system has 3.2 GHz Intel Xeon processors and 4 GB of RAM), the C codes were compiled okay but when it was called to R-2.6.