[Rd] Bus Error crash (PR#551)

Brad McNeney mcneney@cs.sfu.ca
Wed, 24 May 2000 15:21:29 -0700 (PDT)


On Mon, 22 May 2000 kjetikj@astro.uio.no wrote:

> Full_Name: Kjetil Kjernsmo
> Version: 1.0.1
> OS: osf1
> Submission from: (NULL) (129.240.28.227)
> 
> 
> Ouch, another obscure bug...
> I just had a bus error crash, with a core dump, a small one this time.
> Usual <URL:http://www.astro.uio.no/~kjetikj/tmp/core>.
> I had done a few simulations, and done a chisq.test() on them.
> These simulations also write about 190MB's to file, but
> I have no idea whether that is relevant, and those data are not
> used. The calls I do look like this:
> > ch1 <- chisq.test(t(apply(cbind(rep(5000000, 4)), 1, lineprofile, 1, 100,
> "point")))
> > ch1
> 
> 	 Pearson's Chi-square test 
> 
> data:  t(apply(cbind(rep(5e+06, 4)), 1, lineprofile, 1, 100, "point")) 
> X-squared = 463.8359, df = 300, p-value = 3.726e-09 
> 
> > ch1$observed
> 
> Process R bus error (core dumped) at Mon May 22 12:38:49 2000
> 
> 
> ....so it doesn't crash when I print the whole object, but when I 
> a vector of the object, it crashes... And, restarting R, it doesn't
> happen.
> 
> I heard the sysadm who did the installation had some problems,
> I don't know what it was about, but if I understood him correctly,
> it only happened when he tuned for EV6, so it shouldn't be a problem now, 
> I guess....
> 
> Kjetil

I can't reproduce the problem on my system (R Version: 1.0.0, OS: osf1
V5.0). Compiled with gcc/g77 using optimisation level -O2 (determined by
configure script).

> ch1 <- chisq.test(t(apply(cbind(rep(5000000, 4)), 1, lineprofile, 1,
100,"point")))


> ch1

         Pearson's Chi-square test 

data:  t(apply(cbind(rep(5e+06, 4)), 1, lineprofile, 1, 100, "point")) 
X-squared = 404.6772, df = 300, p-value = 5.125e-05 

> ch1$observed
     [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14]
[1,]  160  144  205  244  273  314  395  454  521   592   713   864   905 1043
[2,]  139  175  210  232  276  369  372  459  525   566   687   781   886  981

... etc ...


Brad

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._