[Rd] Core dump when calling tclvalue (PR#4724)
    Peter Dalgaard 
    p.dalgaard at biostat.ku.dk
       
    Wed Oct 22 20:01:48 MEST 2003
    
    
  
mckay at gmr.com writes:
> Full_Name: Neil McKay
> Version: 1.8.0
> OS: Linux (RedHat 7.1)
> Submission from: (NULL) (129.124.42.210)
> 
> 
> I get a core dump when executing the following code:
> 
> > library("tcltk")
> > zzz<-tclArray()
> > tclvalue(zzz)
> 
> Running under gdb gives this output:
> 
> Program received signal SIGSEGV, Segmentation fault.
> makeRTclObject (tclobj=0x0) at tcltk.c:48
> 48          Tcl_IncrRefCount(tclobj);
Hmm. That's not supposed to happen. I'm not sure it is supposed
to do anything useful either though. The wish equivalent is
% array set x ""
% puts $x
can't read "x": variable is array
so it would seem that we're just not failing gracefully.
-- 
   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
    
    
More information about the R-devel
mailing list