X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,FSL_HELO_BARE_IP_2,KHOP_THREADED,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_NONE,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_CG X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: jojelino Subject: Re: deadlock with busy waiting on sigfe Date: Tue, 12 Mar 2013 04:35:41 +0900 Lines: 97 Message-ID: References: <20130116014646 DOT GB13175 AT ednor DOT casa DOT cgf DOT cx> <20130116021414 DOT GA14341 AT ednor DOT casa DOT cgf DOT cx> <20130120065456 DOT GC17644 AT ednor DOT casa DOT cgf DOT cx> <20130311143630 DOT GA6498 AT ednor DOT casa DOT cgf DOT cx> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 5.2; rv:22.0) Gecko/20100101 Thunderbird/22.0a1 In-Reply-To: <20130311143630.GA6498@ednor.casa.cgf.cx> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On 2013-03-11 PM 11:36, Christopher Faylor wrote: > A "proper bug report" would at least include what you were actually doing > to trigger this problem. > I was trying to CTRL+C cygwin python process that is executing some operation and fell asleep for 60 seconds repeatedly. I'm pretty sure that the process was sleeping as i tried interrupt it. > Are you sure that there are only two threads executing here? It seems like > this is a symptom of another thread holding the lock. > It's unlikely the case because there was two thread running when livelock observed. > cgf > >> Thread 2 (Thread 7596.0x104): >> #0 0x7c96845c in ntdll!KiFastSystemCallRet () >> from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #1 0x7c9678c9 in ntdll!ZwSetInformationThread () >> from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #2 0x7c8324f9 in SetThreadPriority () >> from /cygdrive/c/WINDOWS/system32/kernel32.dll >> #3 0x6108790d in yield () >> at >> /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/miscfuncs.cc:253 >> #4 0x610d7354 in _cygtls::lock() () from /usr/bin/cygwin1.dll >> #5 0x6103096e in sigpacket::setup_handler (this=0x6aac34, >> handler=0x6102fe00 , siga=..., >> tls=0x22ce64) >> at >> /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/exceptions.cc:796 >> #6 0x610318ff in sigpacket::process (this=0x6aac34) >> at >> /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/exceptions.cc:1245 >> ---Type to continue, or q to quit--- >> #7 0x610dd74c in wait_sig () >> at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/sigproc.cc:1389 >> #8 0x61003ea5 in cygthread::callfunc (this=0x6118b420 , >> issimplestub=) >> at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/cygthread.cc:51 >> #9 0x6100442f in cygthread::stub (arg=0x6118b420 ) >> at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/cygthread.cc:93 >> #10 0x6100537d in _cygtls::call2 (this=, >> func=0x610043e0 , arg=0x6118b420 , >> buf=0x6100551b <_cygtls::call(unsigned long (*)(void*, void*), >> void*)+91>) >> at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/cygtls.cc:99 >> #11 0x006affb8 in ?? () >> #12 0x7c82484f in KERNEL32!GetModuleHandleA () >> from /cygdrive/c/WINDOWS/system32/kernel32.dll >> #13 0x00000000 in ?? () >> >> Thread 1 (Thread 7596.0x190): >> #0 0x7c96845c in ntdll!KiFastSystemCallRet () >> from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #1 0x7c9678c9 in ntdll!ZwSetInformationThread () >> from /cygdrive/c/WINDOWS/system32/ntdll.dll >> #2 0x7c8324f9 in SetThreadPriority () >> from /cygdrive/c/WINDOWS/system32/kernel32.dll >> #3 0x610878cb in yield () >> ---Type to continue, or q to quit--- >> at >> /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/miscfuncs.cc:244 >> #4 0x610d7354 in _cygtls::lock() () from /usr/bin/cygwin1.dll >> #5 0x61031297 in _cygtls::call_signal_handler ( >> this=0x610d7354 <_cygtls::lock()+23>) >> at >> /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/exceptions.cc:1265 >> #6 0x61007689 in _cygwin_exit_return () >> at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/dcrt0.cc:1012 >> #7 0x6100537d in _cygtls::call2 (this=, >> func=0x61006c50 , arg=0x0, >> buf=0x6100551b <_cygtls::call(unsigned long (*)(void*, void*), >> void*)+91>) >> at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/cygtls.cc:99 >> #8 0x0022ff78 in ?? () >> #9 0x004011d2 in ?? () >> #10 0x00401015 in ?? () >> #11 0x7c82f243 in ProcessIdToSessionId () >> from /cygdrive/c/WINDOWS/system32/kernel32.dll >> >> -- >> Regards. >> >> >> -- >> 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 >> >> > -- Regards. -- 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