[R] unexpected R crash - again

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Sun Aug 27 13:23:42 CEST 2000


Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk> writes:

> 690         pastp = stp[ipn + ikstp];
> (gdb) p ipn
> $1 = -97902590
> 
> which in turn comes from 
> 
> 689         ipn = ipoin[ipo + ikkey];
> 
> with ipo & ikkey both at 622,  seemingly sane.

..except that the ipoin array seems to be set up with a length of
1242, so the value gets overwritten by assignments to stp[1].

Unfortunately, the code is Fortran, converted by f2c so it is not
exactly simple to see whether this is a simple off-by-one error
somewhere or something more fundamentally wrong with the workspace
allocations. 

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list