From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18740 invoked by alias); 15 Mar 2011 19:09:50 -0000 Received: (qmail 18720 invoked by uid 22791); 15 Mar 2011 19:09:48 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from eir.is.scarlet.be (HELO eir.is.scarlet.be) (193.74.71.27) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Mar 2011 19:09:42 +0000 Received: from [172.17.1.10] (ip-83-134-98-122.dsl.scarlet.be [83.134.98.122]) by eir.is.scarlet.be (8.14.2/8.14.2) with ESMTP id p2FJ9RFS003507; Tue, 15 Mar 2011 20:09:28 +0100 Subject: Re: gdb influencing app behaviour ? From: Danny Backx Reply-To: danny.backx@scarlet.be To: Andreas Schwab Cc: gdb In-Reply-To: References: <1300134373.2002.8.camel@pavilion> Content-Type: text/plain; charset="UTF-8" Date: Tue, 15 Mar 2011 19:09:00 -0000 Message-ID: <1300216167.2002.10.camel@pavilion> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-DCC-scarlet.be-Metrics: eir 20001; Body=3 Fuz1=3 Fuz2=3 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00101.txt.bz2 On di, 2011-03-15 at 10:09 +0100, Andreas Schwab wrote: > Danny Backx writes: > > > The application appears to behave differently when I set a breakpoint in > > that function. (The application and the library were both trying to read > > from the socket, by setting the breakpoint the other one would always > > win the race.) > > > > How can this be explained ? > > Any debugger will change the timing of the debuggee. Yeah, I'm aware of that. I was trying to figure out whether this scenario rings a bell for anyone here. Googling it turned up nothing. Danny -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info