deadlock with busy waiting on sigfe

jojelino jojelino@gmail.com
Mon Mar 11 19:36:00 GMT 2013


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 <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=0x6aac34)
>>      at
>> /netrel/src/cygwin-snapshot-20130309-1/winsup/cygwin/exceptions.cc:1245
>> ---Type <return> to continue, or q <return> 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 <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>)
>>      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 <return> to continue, or q <return> 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=<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  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



More information about the Cygwin mailing list