This is the mail archive of the insight-prs@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: insight/206: SEGV in Tcl_FindCommand


The following reply was made to PR insight/206; it has been noted by GNATS.

From: "Lloyd J Lewins" <llewins@raytheon.com>
To: kseitz@sources.redhat.com, insight-prs@sources.redhat.com,
   kseitz@sources.redhat.com, llewins@raytheon.com, nobody@sources.redhat.com,
   insight-gnats@sources.redhat.com
Cc:  
Subject: Re: insight/206: SEGV in Tcl_FindCommand
Date: Thu, 23 Jan 2003 17:15:55 -0800

 Running the same version of insight with -nw as you suggest (on cygwin
 platform) I do not see the problem:
 
 ~/bugs/gdb/Tcl-FindCommand-SEGV>insight -nw main.exe
 GNU gdb 2003-01-09-cvs
 Copyright 2002 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you
 are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for details.
 This GDB was configured as "i686-pc-cygwin"...
 (gdb) b 170
 Breakpoint 1 at 0x401280: file main.cc, line 170.
 (gdb) r
 Starting program: /home/00c3197/bugs/gdb/Tcl-FindCommand-SEGV/main.exe
 
 Breakpoint 1, main () at main.cc:170
 170     }
 (gdb) p *b
 $1 = {<classC> = {nameV = {static npos = 4294967295, static nilRep = {len
 = 0,
         res = 0, ref = 2, selfish = false}, dat = 0xa012378 "foo"},
     myClassAV = @0xa0b3780}, _vb$classC = 0xa011af8, valV = 0,
   _vptr$classB = 0x4156bc <classB virtual table>}
 (gdb)
 
 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.
 
 Lloyd J. Lewins
 Raytheon Co.,
 llewins@raytheon.com
 +1 (310) 647-8832
 
 
                                                                                                                                                 
                       kseitz@sources.r                                                                                                          
                       edhat.com                To:      insight-prs@sources.redhat.com, kseitz@sources.redhat.com, llewins@raytheon.com,        
                                                nobody@sources.redhat.com                                                                        
                       01/23/03 10:41           cc:                                                                                              
                       AM                       Subject: Re: insight/206: SEGV in Tcl_FindCommand                                                
                       Please respond                                                                                                            
                       to kseitz;                                                                                                                
                       Please respond                                                                                                            
                       to insight-prs;                                                                                                           
                       Please respond                                                                                                            
                       to kseitz;                                                                                                                
                       Please respond                                                                                                            
                       to llewins;                                                                                                               
                       Please respond                                                                                                            
                       to nobody;                                                                                                                
                       Please respond                                                                                                            
                       to insight-gnats                                                                                                          
                                                                                                                                                 
                                                                                                                                                 
 
 
 
 
 Synopsis: SEGV in Tcl_FindCommand
 
 Responsible-Changed-From-To: unassigned->kseitz
 Responsible-Changed-By: kseitz
 Responsible-Changed-When: Thu Jan 23 18:41:46 2003
 Responsible-Changed-Why:
     Mine
 State-Changed-From-To: open->closed
 State-Changed-By: kseitz
 State-Changed-When: Thu Jan 23 18:41:46 2003
 State-Changed-Why:
     This is really a bug in GDB, not insight. Try running this with command
 line gdb (on any platform), and it will exhibit similar behavior (crash or
 lock-up). I suggest running this example on GDB and posting a report to
 gdb@sources.redhat.com. Here's what you'll want to do:
 
     $ c++ -g main.cc -o main
     $ gdb -nx -q main  [or insight -nw main]
     (gdb) break 170
     (gdb) r
     (gdb) p *b
 
     This will reproduce the whole thing.
 
 http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=insight&pr=206
 
 
 
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]