[Rd] stack imbalance in contour

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sun Oct 1 14:38:51 CEST 2006


Patrick Burns <pburns at pburns.seanet.com> writes:

> I'm not sure if this has much significance or not -- but
> it sounds rather ominous.  It doesn't appear to be new
> as it happens with 2.0.0 in Linux (but the formatting of
> the warning messages has improved).
> 
>  > contour(array(3e10, c(10,10), list(1:10, 11:20)))
> Warning: stack imbalance in 'contour', 20 then 24
> Warning: stack imbalance in '.Internal', 19 then 23
> Warning: stack imbalance in '{', 17 then 21
> Warning message:
> all z values are equal
>  > sessionInfo()
> R version 2.4.0 RC (2006-09-27 r39543)
> i386-pc-mingw32

I see it on Linux too. It's a serious programming error in that
something has its PROTECT/UNPROTECT mechanism messed up. Fortunately,
it is protecting too much, which is not usually fatal. Also, it
appears to happen only in the all z equal case (the value 3e10 is
not magic - any nonzero z will do). We should get it tracked down,
but it's not worth breaking the code freeze for 2.4.0 over.

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907




More information about the R-devel mailing list