From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19849 invoked by alias); 6 Nov 2006 14:16:50 -0000 Received: (qmail 19838 invoked by uid 22791); 6 Nov 2006 14:16:49 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 06 Nov 2006 14:16:45 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Gh5HG-00087d-0j; Mon, 06 Nov 2006 09:16:42 -0500 Date: Mon, 06 Nov 2006 14:16:00 -0000 From: Daniel Jacobowitz To: Andreas Schwab Cc: jjaimon@yahoo.com, gdb@sourceware.org Subject: Re: pthread_sigmask and gdb Message-ID: <20061106141641.GA30933@nevyn.them.org> Mail-Followup-To: Andreas Schwab , jjaimon@yahoo.com, gdb@sourceware.org References: <454F3EB5.7010700@Yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) 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: 2006-11/txt/msg00024.txt.bz2 On Mon, Nov 06, 2006 at 03:04:46PM +0100, Andreas Schwab wrote: > Jaimon Jose writes: > > > Still, SIGINT is passed to the program being debugged instead of GDB > > handling this. I have attached a sample program where I can reproduce > > this. I tried this on Solaris and HPUX. Once I attach to the running > > program, I can interrupt the program using "Ctrl-C". But, this doesn't > > work on gdb ( on SLES, SuSE 10.1 and RHAS 3.0 - gdb 6.4 and 6.0 ) and > > the signal is delivered to the running program. Any help is appreciated. > > Looks like a kernel bug. Since gdb does not receive any notification of > the signal it cannot do anything about that. Yes. To be more specific, the problem is not pthread_sigmask but sigwaitinfo / rt_sigsuspend. I thought some recent kernel changes (TIF_RESTORE_SIGMASK) would have improved this, and in fact I can't see how it still happens, but it does still seem to happen. -- Daniel Jacobowitz CodeSourcery