From p.dalgaard at biostat.ku.dk  Wed Oct 22 20:01:48 2003
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Wed Oct 22 20:00:43 2003
Subject: [Rd] Core dump when calling tclvalue (PR#4724)
In-Reply-To: <200310221710.h9MHA40P016151@pubhealth.ku.dk>
References: <200310221710.h9MHA40P016151@pubhealth.ku.dk>
Message-ID: <x21xt540dv.fsf@biostat.ku.dk>

mckay@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@biostat.ku.dk)             FAX: (+45) 35327907


[Rd] Core dump when calling tclvalue (PR#4724)
Peter Dalgaard