From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25570 invoked by alias); 18 Nov 2005 10:52:15 -0000 Received: (qmail 25562 invoked by uid 22791); 18 Nov 2005 10:52:13 -0000 Received: from smtp5-g19.free.fr (HELO smtp5-g19.free.fr) (212.27.42.35) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 18 Nov 2005 10:52:13 +0000 Received: from imp2-g19.free.fr (imp2-g19.free.fr [212.27.42.2]) by smtp5-g19.free.fr (Postfix) with ESMTP id 5EA259761 for ; Fri, 18 Nov 2005 11:52:11 +0100 (CET) Received: by imp2-g19.free.fr (Postfix, from userid 33) id 496487822D; Fri, 18 Nov 2005 11:52:11 +0100 (MET) Received: from smtp.teleca.fr (smtp.teleca.fr [194.250.242.162]) by imp2-g19.free.fr (IMP) with HTTP for ; Fri, 18 Nov 2005 11:52:11 +0100 Message-ID: <1132311131.437db25b30ca0@imp2-g19.free.fr> Date: Fri, 18 Nov 2005 10:52:00 -0000 From: elmer.elmer@free.fr To: insight@sourceware.org Subject: Insight crashing when debugging invalid pointers MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2005-q4/txt/msg00018.txt.bz2 Hi, I'm using a cross insight built from recent CVS snapshot (10242005) [host=cygwin, target=arm-linux] Insight is running quite fine, but I experience some troubles when insight tries to display variables with invalid memory references... For example : typedef struct { int a; int b; } TEST_STRUCT; TEST_STRUCT pt; int sum; pt = NULL; sum = pt->a + pt->b; This code will obviously fail (if memory address 0 is not accessible on target) !!! But it is only an example ... If you stop execution at line 'sum = pt->a + pt->b' Using the GDB console : p pt gives -> $1 (TEST_STRUCT *) 0x0 p pt->a gives -> Error: Cannot access Memory at address 0x0 But if insight is trying to display the same things (either using tooltips or watch), the entire Insight is crashing !!! I thing it is related variable evaluation like {$val value} I checked the Insight scripts, all calls to {$val value} are secured with 'catch'. Is "catch {$val value} result" supposed to catch GDB exceptions ??? I wonder if this behavior is specific to my built/target or more generic ... This is very annoying, because when stepping, your mouse can go over over an expression where pointers are not yet initialized. Insight then tries to display variable value in tooltips and this leads to frequent Insight crashes... Thanks, Elmer.