From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18231 invoked by alias); 15 Dec 2010 04:11:06 -0000 Received: (qmail 18223 invoked by uid 22791); 15 Dec 2010 04:11:05 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 15 Dec 2010 04:11:01 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PSihd-0007el-Vc for insight@sources.redhat.com; Wed, 15 Dec 2010 05:10:57 +0100 Received: from 24-158-184-117.dhcp.jcsn.tn.charter.com ([24.158.184.117]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Dec 2010 05:10:57 +0100 Received: from gds by 24-158-184-117.dhcp.jcsn.tn.charter.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Dec 2010 05:10:57 +0100 To: insight@sources.redhat.com From: Gene Smith Subject: Balloon bug? (changes b when b--) Date: Wed, 15 Dec 2010 04:11:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10 X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2010-q4/txt/msg00020.txt.bz2 I have test code that looks like this in insight: 1 int main (void) - 2 { - 3 int a = 0; - 4 int b = 10; 5 - 6 while (b--) 7 { - 8 a = a + 1; 9 } 10 /* should be 10 */ - 11 return a; - 12 } It appeared that "b" was sometimes decrementing by more than 1 as I stepped through. So sometimes "a" would result in less than 10. I found that the balloon inspection (by holding the mouse over the variable) was causing b to decrement if I touched the --. I don't think I have ever seen this before using insight. This is version 6.8. -gene