This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: deadlock with busy waiting on sigfe


On Mon, Mar 11, 2013 at 05:53:50PM +0900, jojelino wrote:
>On 2013-01-20 PM 3:54, Christopher Faylor wrote:
>> On Sun, Jan 20, 2013 at 02:23:23PM +0900, jojelino wrote:
>> Once again: don't care about your backtraces.  Submit a proper bug report.
>>
>> cgf
>>
>And found another livelock with CYGWIN_NT-5.2 F8G6S6D42HGDY4 
>1.7.18s(0.263/5/3) 20130309 21:57:01 i686 Cygwin provided in 
>http://cygwin.org/snapshots/cygwin1-20130309.dll.bz2
>I can't submit proper bug report. it just hangs during CTRL+C for 
>arbitrary cygwin executable and there is nothing i can do except dumping 
>backtrace. If you don't care about it, it's ok to ignore this. please 
>pass by.

A "proper bug report" would at least include what you were actually doing
to trigger this problem.

Are you sure that there are only two threads executing here?  It seems like
this is a symptom of another thread holding the lock.

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
>
>

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]