From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9858 invoked by alias); 24 Jan 2003 13:43:00 -0000 Mailing-List: contact insight-prs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-prs-owner@sources.redhat.com Received: (qmail 9842 invoked by uid 71); 24 Jan 2003 13:43:00 -0000 Date: Fri, 24 Jan 2003 13:43:00 -0000 Message-ID: <20030124134300.9841.qmail@sources.redhat.com> To: kseitz@sources.redhat.com Cc: insight-prs@sources.redhat.com, From: Keith Seitz Subject: Re: insight/206: SEGV in Tcl_FindCommand Reply-To: Keith Seitz X-SW-Source: 2003-q1/txt/msg00021.txt.bz2 List-Id: The following reply was made to PR insight/206; it has been noted by GNATS. From: Keith Seitz To: Lloyd J Lewins Cc: insight-gnats@sources.redhat.com Subject: Re: insight/206: SEGV in Tcl_FindCommand Date: 24 Jan 2003 05:36:29 -0800 On Thu, 2003-01-23 at 17:15, Lloyd J Lewins wrote: > Running the same version of insight with -nw as you suggest (on cygwin > platform) I do not see the problem: Hmmm. That is odd. My gdb (cvs head) locks up on me when I ask it to do this. > Since the SEGV is in tcl functions, I am surprised this is a problem with > gdb -- I thought it was only insight which used tcl/tk. Typically, insight will not crash in a platform-specific way. You're using c++ and there has been a lot of churn in gdb (and its dependencies) in this area. You're using the standard cygwin compiler, 2.95.xxx, right? I'm using 3.2. Maybe that's why. In any case I don't think that Insight is really crashing in tcl/tk. I think that the stack has been corrupted. Let's try this... Run your program (in insight) to where you would add it to the watch window. Then open a console window and enter: (gdb) tk gdb_variable create -expr b var1 (<-- could be different object id) (gdb) tk var1 numChildren ?? (gdb) tk var1 children ?? What's the output? Do either of these cause a crash? If they do, try the same thing in MI: $ gdb -i=mi main (gdb) break 170 (gdb) run (gdb) -var-create - * b ^done,name="var1",numchild="2",type="classB *" (gdb) -var-list-children var1 ??? What does this show? I'll see about updating my cygwin box (er, that means actually turning it on, which I haven't done in a very long time), but it's going to take quite some time. Please ping me on this if you don't hear from me for a week. Keith