From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6828 invoked by alias); 17 Nov 2006 20:01:17 -0000 Received: (qmail 6820 invoked by uid 22791); 17 Nov 2006 20:01:15 -0000 X-Spam-Check-By: sourceware.org Received: from imo-m19.mx.aol.com (HELO imo-m19.mx.aol.com) (64.12.137.11) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 17 Nov 2006 20:01:07 +0000 Received: from Jbbachky@aim.com by imo-m19.mx.aol.com (mail_out_v38_r7.6.) id o.ce7.18c52e3 (57874) for ; Fri, 17 Nov 2006 15:01:01 -0500 (EST) Received: from mblk-d23 (mblk-d23.mblk.aol.com [205.188.149.15]) by air-ia02.mail.aol.com (v114.2) with ESMTP id MAILINIA24-e212455e14fd295; Fri, 17 Nov 2006 15:01:01 -0500 References: <8C8D6E7E15FE5F6-5D0-723B@mblk-d22.sysops.aol.com> <20061115164953.GA31009@nevyn.them.org> <8C8D7E0B004BE30-C20-26F0@mblk-d23.sysops.aol.com> <20061116220412.GA28527@nevyn.them.org> <8C8D88FE433FC88-C20-54B0@mblk-d23.sysops.aol.com> <20061117190759.GA8764@nevyn.them.org> To: gdb@sources.redhat.com Content-Transfer-Encoding: 7bit Subject: Re: gdbserver/gdb-6/4 and lots of pthreads Date: Fri, 17 Nov 2006 20:01:00 -0000 In-Reply-To: <20061117190759.GA8764@nevyn.them.org> X-MB-Message-Source: WebUI MIME-Version: 1.0 From: jbbachky@aim.com X-MB-Message-Type: User Content-Type: text/plain; charset="us-ascii"; format=flowed X-Mailer: AIM WebMail 22250 Received: from 192.146.101.24 by mblk-d23.sysops.aol.com (205.188.149.15) with HTTP (WebMailUI); Fri, 17 Nov 2006 15:01:01 -0500 Message-Id: <8C8D89A3DC3857F-C20-593A@mblk-d23.sysops.aol.com> X-AOL-IP: 205.188.149.15 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/msg00129.txt.bz2 >On Fri, Nov 17, 2006 at 01:46:56PM -0500, jbbachky@aim.com wrote: >> Sending packet: >> $QPassSignals:e;10;11;13;14;17;18;1a;1b;1c;1e;1f;20;21;24;25;4c;#af...Ack > >Ignore signal 0xe. In the GDB remote protocol that is SIGALRM. > I had "handle SIGALRM nostop noprint" in my .gdbinit file I had added that while digging into this problem a while ago and had forgotten about it. Removing it and re-running everything doesn't appear to have an effect. In addition to that, I handle SIGPWR, SIGUSR1, SIGUSR2, SUGXCPU SIGCONT and SIGSTOP with "nostop noprint" With the handle SIGALRM removed, I get a steady stream of: Sending packet: $vCont;C0e:1bb;c#ea...Ack Packet received: T0e01:8ff7fb80;40:0f6bf3a8;thread:1bb; perhaps 100/second. Also, I see my other pthreads waking up and being switched-to 200 times/second. When not attached to gdb, these do not wake up at all. And when I create an event which should wake up one of them, the system thrashes between that one and the main parent thread, and "remote debug" data ceases. >> Sending packet: $vCont;C0e:1c2;c#bb...Ack >> Packet received: T0e01:8ff7fb80;40:0f6bf3a8;thread:1c2; > >Resume thread with SIGLARM. Thread stopped with SIGALRM. >It shouldn't be doing this; you told it to ignore SIGALRM. > >I can't reproduce this behavior; gdbserver doesn't report the SIGALRM >for me. Are you using unmodified versions from CVS at this point? > This is the CVS version from Wednesday evening, with your patch contained here: http://sources.redhat.com/ml/gdb-patches/2006-11/msg00114.html If that doesn't have all of the pieces I need, please let me know - a few days I would have said that I have no experience with patches/patching. And now I have some :-) >-- >Daniel Jacobowitz >CodeSourcery ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.