delorie.com/archives/browse.cgi | search |
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:to:from:subject:date:message-id:references | |
:mime-version:content-type:content-transfer-encoding | |
:in-reply-to; q=dns; s=default; b=fjNSoB2XsbJaUsNIPbydN5q+GTDa/V | |
tCo4gabeuAxsdg7U13YFC5ANaQ88yhjvU5EtQYNrKGw4rgVn40eG3Bicqpr6O/Hm | |
sfIRFGHJHRw2Jdi+28W8BfQHpbp0Sqq+vZucsMI019T3x4DTq4KFKbayqoMjQcCJ | |
kN4dqWJeNgVag= | |
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:to:from:subject:date:message-id:references | |
:mime-version:content-type:content-transfer-encoding | |
:in-reply-to; s=default; bh=PYrZ5DIPqKXNvFOKMm2NLR5JvC8=; b=XWKB | |
ICLNNuMapFLS0zT+Up/W/q/2+QQA5C4bxJZJKmgF6RThVay/xblxCX1mPmrylQoP | |
MVghNlX/atO7nENpEnUiDWs1Rb9f7lFjYGy5WWeIkwofnrn1A5T0nwwZtRGNk2xl | |
7PDIqHh/cwyeC02tdMZ/tFW26s/ZWniri2/BC6U= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,FSL_HELO_BARE_IP_2,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_CG,TW_YG autolearn=ham version=3.3.1 |
To: | cygwin AT cygwin DOT com |
From: | jojelino <jojelino AT gmail DOT com> |
Subject: | Re: livelock on sigfe |
Date: | Mon, 01 Apr 2013 11:53:38 +0900 |
Lines: | 156 |
Message-ID: | <kjasrc$f1i$1@ger.gmane.org> |
References: | <20130116021414 DOT GA14341 AT ednor DOT casa DOT cgf DOT cx> <kdfuvh$a93$1 AT ger DOT gmane DOT org> <20130120065456 DOT GC17644 AT ednor DOT casa DOT cgf DOT cx> <khk62q$6n2$1 AT ger DOT gmane DOT org> <20130311143630 DOT GA6498 AT ednor DOT casa DOT cgf DOT cx> <khlbm8$5tg$1 AT ger DOT gmane DOT org> <20130311204554 DOT GA959 AT ednor DOT casa DOT cgf DOT cx> <20130315194101 DOT GA2095 AT ednor DOT casa DOT cgf DOT cx> <ki0isq$ts8$1 AT ger DOT gmane DOT org> <ki0jn6$5pl$1 AT ger DOT gmane DOT org> <20130316164446 DOT GA2240 AT ednor DOT casa DOT cgf DOT cx> |
Mime-Version: | 1.0 |
User-Agent: | Mozilla/5.0 (Windows NT 5.2; rv:22.0) Gecko/20100101 Thunderbird/22.0a1 |
In-Reply-To: | <20130316164446.GA2240@ednor.casa.cgf.cx> |
On 2013-03-17 AM 1:44, Christopher Faylor wrote: > No, not really. The caller in this case isn't interesting. The number > of threads executing is interesting. > > cgf > there is another debug session. I was trying to CTRL+C to mintty session in which make process was running. process hanged with livelock. After inspecting cygtls content, i found that the two thread have empty cygtls stack. so i couldn't figure out caller of _sigfe barrier, there is no opportunity to pop stack of thread 1(which is main thread trapped in sigfe wait loop), wait_sig thread or CTRL+C handler should have caused bizzare. GNU gdb (GDB) 7.5.50.20130309-cvs (cygwin-special) Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-cygwin". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. warning: the current range check setting does not match the language. Whether backtraces should continue past the entry point of a program is off. Attaching to process 4516 [New Thread 4516.0x1e88] [New Thread 4516.0x1310] [New Thread 4516.0xf74] Reading symbols from /usr/bin/clang.exe...(no debugging symbols found)...done. (gdb) i thr Id Target Id Frame * 3 Thread 4516.0xf74 0x7c95a22a in ntdll!DbgBreakPoint () from /cygdrive/c/WINDOWS/system32/ntdll.dll 2 Thread 4516.0x1310 0x7c96845c in ntdll!KiFastSystemCallRet () from /cygdrive/c/WINDOWS/system32/ntdll.dll 1 Thread 4516.0x1e88 0x7c96845c in ntdll!KiFastSystemCallRet () from /cygdrive/c/WINDOWS/system32/ntdll.dll (gdb) i thr Id Target Id Frame * 3 Thread 4516.0xf74 0x7c95a22a in ntdll!DbgBreakPoint () from /cygdrive/c/WINDOWS/system32/ntdll.dll 2 Thread 4516.0x1310 0x7c96845c in ntdll!KiFastSystemCallRet () from /cygdrive/c/WINDOWS/system32/ntdll.dll 1 Thread 4516.0x1e88 0x7c96845c in ntdll!KiFastSystemCallRet () from /cygdrive/c/WINDOWS/system32/ntdll.dll (gdb) thr 2 [Switching to thread 2 (Thread 4516.0x1310)] #0 0x7c96845c in ntdll!KiFastSystemCallRet () from /cygdrive/c/WINDOWS/system32/ntdll.dll (gdb) bt #0 0x7c96845c in ntdll!KiFastSystemCallRet () from /cygdrive/c/WINDOWS/system32/ntdll.dll #1 0x7c967409 in ntdll!ZwQueryInformationThread () from /cygdrive/c/WINDOWS/system32/ntdll.dll #2 0x7c8325db in KERNEL32!GetThreadPriority () from /cygdrive/c/WINDOWS/system32/kernel32.dll #3 0x610878b1 in yield () at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/miscfuncs.cc:243 #4 0x610d7354 in _cygtls::lock() () from /usr/bin/cygwin1.dll #5 0x6103096e in sigpacket::setup_handler (this=0x355ac34, handler=0x6102fe00 <signal_exit(int, siginfo_t*)>, siga=..., tls=0x22ce64) at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/exceptions.cc:796 #6 0x610318ff in sigpacket::process (this=0x355ac34) at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/exceptions.cc:1245 #7 0x610dd74c in wait_sig () at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/sigproc.cc:1389 #8 0x61003ea5 in cygthread::callfunc (this=0x6118b420 <threads>, issimplestub=<optimized out>) at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/cygthread.cc:51 #9 0x6100442f in cygthread::stub (arg=0x6118b420 <threads>) at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/cygthread.cc:93 #10 0x6100537d in _cygtls::call2 (this=<optimized out>, func=0x610043e0 <cygthread::stub(void*)>, arg=0x6118b420 <threads>, buf=0x6100551b <_cygtls::call(unsigned long (*)(void*, void*), void*)+91>) ---Type <return> to continue, or q <return> to quit--- at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/cygtls.cc:99 #11 0x0355ffb8 in ?? () #12 0x7c82484f in KERNEL32!GetModuleHandleA () from /cygdrive/c/WINDOWS/system32/kernel32.dll #13 0x00000000 in ?? () (gdb) thr 1 [Switching to thread 1 (Thread 4516.0x1e88)] #0 0x7c96845c in ntdll!KiFastSystemCallRet () from /cygdrive/c/WINDOWS/system32/ntdll.dll (gdb) bt #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 () at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/miscfuncs.cc:244 #4 0x610d723c in _sigfe () from /usr/bin/cygwin1.dll #5 0x61083420 in lfind () from /usr/bin/cygwin1.dll #6 0x61006cf5 in dll_crt0_1 () at /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/dcrt0.cc:861 #7 0x6100537d in _cygtls::call2 (this=<optimized out>, func=0x61006c50 <dll_crt0_1(void*)>, 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 0x01040752 in ?? () #10 0x00401015 in ?? () #11 0x7c82f243 in ProcessIdToSessionId () from /cygdrive/c/WINDOWS/system32/kernel32.dll #12 0x00000000 in ?? () (gdb) (gdb) i thr Id Target Id Frame 3 Thread 4516.0xf74 0x7c95a22a in ntdll!DbgBreakPoint () from /cygdrive/c/WINDOWS/system32/ntdll.dll 2 Thread 4516.0x1310 0x7c96845c in ntdll!KiFastSystemCallRet () from /cygdrive/c/WINDOWS/system32/ntdll.dll * 1 Thread 4516.0x1e88 0x7c96845c in ntdll!KiFastSystemCallRet () from /cygdrive/c/WINDOWS/system32/ntdll.dll (gdb) i w32 thread-information-block Thread Information Block Thread 4516.0x1e88 at 0x7ffde000 (gdb) p ((_cygtls*)(((int)((TEB *)7ffde000)->Tib.StackBase)-319c)) $24 = (_cygtls *) 0x22ce64 (gdb) p $24->stackptr $25 = (__stack_t *) 0x22da30 (gdb) p &$24->stack $27 = (unsigned int (*)[256]) 0x22da30 (gdb) p $24->stack $33 = {0x0 <repeats 256 times>} (gdb) thr 2 [Switching to thread 2 (Thread 4516.0x1310)] #0 0x7c96845c in ntdll!KiFastSystemCallRet () from /cygdrive/c/WINDOWS/system32/ntdll.dll (gdb) i w32 thread-information-block Thread Information Block Thread 4516.0x1310 at 0x7ffdd000 (gdb) p ((_cygtls*)(((int)((TEB *)7ffdd000)->Tib.StackBase)-319c)) $28 = (_cygtls *) 0x355ce64 (gdb) p $28->stackptr $29 = (__stack_t *) 0x355da30 (gdb) p &$28->stack $30 = (unsigned int (*)[256]) 0x355da30 (gdb) p $28->stack $34 = {0x0 <repeats 256 times>} -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |