X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=jwjtKIyw6Mz7QsnPAetvynOks1zz/iIkwIvbmDPOjqC zUTGiTZQNkjQRTY+kYL5xaKlm7iw5R7JB5VtxhGUtbWLQMyUbaMhOGi8yvywpD+m AccERw4EIyrf6gtWPSLkPM4Y4oL1ahuhWVIOI26kk6Al9TVYN2XJ9gBMuvDht8AI = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=2awDmcPgIrQRqvfNE27Q+r+B/Wk=; b=a7eLCWUbckE3341uH JS13As8fMnYrM4ujP3Wt6IAtDtHZQsXK7z2Pnt9mZ2wSLsMZOGWen+llg8TBKhsU u9nH/KoS1L/P1Fy5AYBfQ1xFjv0nMLWXkGpN/79c6K6Vqf65hm6FA9spYoFdY+cA MOh6d0YViCs8dSlf68pYhPY3SI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_NO,RP_MATCHES_RCVD,SPF_NEUTRAL autolearn=ham version=3.3.2 Message-ID: <52110E7E.4000105@cs.utoronto.ca> Date: Sun, 18 Aug 2013 14:12:14 -0400 From: Ryan Johnson User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: emacs-nox hogs CPU if backgrounded during compile References: <520FC3DC DOT 4010700 AT cs DOT utoronto DOT ca> <20130818045342 DOT GA1639 AT ednor DOT casa DOT cgf DOT cx> In-Reply-To: <20130818045342.GA1639@ednor.casa.cgf.cx> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 18/08/2013 12:53 AM, Christopher Faylor wrote: > On Sat, Aug 17, 2013 at 02:41:32PM -0400, Ryan Johnson wrote: >> The following STC causes emacs-nox to peg a CPU indefinitely. Emacs >> remains responsive, but C-c C-k doesn't kill the compile; you have to >> exit emacs to remove the "Compiling" status. Killing the buffer or >> starting a new compile offers to kill the offending process, but doesn't. >> >> Attaching gdb shows an endless loop inside >> kernelbase.dll!RaiseException, but provides no other clues that I could see. > I don't know if this trick works on 64-bit Cygwin or not but you could try: > > set $rsp=$rbp > bt > > And, if you get something sensible try it on every thread. (gdb) p $rbp $5 = (void *) 0x16 Ryan -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple