From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16373 invoked by alias); 30 Nov 2005 10:40:35 -0000 Received: (qmail 16365 invoked by uid 22791); 30 Nov 2005 10:40:34 -0000 X-Spam-Check-By: sourceware.org Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.193) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 Nov 2005 10:40:33 +0000 Received: by zproxy.gmail.com with SMTP id 34so5887nzf for ; Wed, 30 Nov 2005 02:40:32 -0800 (PST) Received: by 10.65.38.14 with SMTP id q14mr29326qbj; Wed, 30 Nov 2005 02:40:31 -0800 (PST) Received: by 10.64.151.12 with HTTP; Wed, 30 Nov 2005 02:40:31 -0800 (PST) Message-ID: Date: Wed, 30 Nov 2005 17:51:00 -0000 From: Daniel Juan To: Jim Blandy Subject: Re: posix semaphores not working under gdb Cc: gdb@sourceware.org In-Reply-To: <8f2776cb0511300202t5b8d6d4brda7dbf0f7b58de80@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8f2776cb0511300202t5b8d6d4brda7dbf0f7b58de80@mail.gmail.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00638.txt.bz2 Totally agree, I don't think that GDB is the responsible of this strange behaviour,=20 I only would like to know if someone experienced something similar when debugging a multithreaded application. Because I can't, right now, find any clue on whats wrong In the code. On 11/30/05, Jim Blandy wrote: > I'd be surprised if GDB were really disturbing the behavior of the > semaphores. It's much more likely that GDB is disturbing the > real-time behavior of your program and showing up a bug in the locking > that your program, just by luck, never encounters when it's not being > debugged. > > I don't know of any stories offhand of GDB breaking semaphores or mutexes. > -- Daniel Juan Boned e-mail: daniel(dot)juan(at)gmail.com