On 8/16/2012 2:37 PM, Christopher Faylor wrote:
On Tue, Aug 14, 2012 at 12:48:03PM +0000, Adam Dinwoodie wrote:
Christopher Faylor wrote:
On Fri, Aug 10, 2012 at 06:31:25AM +0000, Achim Gratz wrote:
Daniel Colascione writes:
It works for me in bash.  I don't have tcsh installed, but I don't see why
SIGINT would work differently there.

Yes, it works in bash for me, too.  Tcsh does something that apparently
breaks with the new snapshot, but since I don't get any error messages, it's
hard to tell what that might be.

You're not really giving us much to go on.  I've tried ping (both Windows and
Cygwin version) under tcsh and both work fine.  And, the small snippet that
you cut/paste in your original bug report clearly showed that ping was
responding to CTRL-C.

I'm still using this snapshot (I've had no reason to stop until now),
and have hit this issue two out of the last five times running Cygwin
ping.  The ping process is still visible in Process Explorer after
hitting ^C.  There's no obvious difference between when ^C terminates
the process and when it doesn't.

I managed to duplicate this once a couple of days ago in a mintty/tcsh
process but I had a very hard time consistently hitting it.  So I wrote
a test case which ran ping repeatedly in a loop under mintty while another
process killed it.  Eventually, I could duplicate the problem in a few
minutes.  There were two problems, one illustrated by the "sigwaitinfo"
mentioned in another thread and another caused by a race.

After making some changes to signal handling, I ran the test case for an
afternoon without issue.

The current snapshot has these changes.

With the current snapshot (20120816 17:19:27), I have problems with emacs-X11.exe. When I start it under X (by typing 'emacs&' in an xterm window), its CPU usage goes up to 50% and its window never displays. The attached file gives the result of attaching gdb and giving the command 'thread apply all bt full'.

I reproduced this running emacs under mintty, but it took longer for it to happen.

The problem doesn't occur with the 20120815 snapshot.

Ken
Thread 10 (Thread 5884.0x17c4):
#0  0x76f6000d in ntdll!LdrFindResource_U () from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#1  0x76fef896 in ntdll!RtlQueryTimeZoneInformation ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#2  0x7375eb68 in ?? ()
No symbol table info available.
#3  0x00000000 in ?? ()
No symbol table info available.

Thread 9 (Thread 5884.0x9a0):
#0  0x76f71f26 in ntdll!LdrQueryProcessModuleInformation ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#1  0x76f71f26 in ntdll!LdrQueryProcessModuleInformation ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#2  0x76fa3352 in ntdll!RtlCreateTagHeap () from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
warning: (Internal error: pc 0x1b7 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1b7 in read in psymtab, but not in symtab.)

#3  0x000001b8 in ?? ()
warning: (Internal error: pc 0x1b7 in read in psymtab, but not in symtab.)

No symbol table info available.
warning: (Internal error: pc 0x1b7 in read in psymtab, but not in symtab.)

#4  0x044dac8c in ?? ()
No symbol table info available.
#5  0x6100538d in _cygtls::call2 (this=<optimized out>, func=0x2, 
    arg=0x18c9908, buf=0x6100551b)
    at /netrel/src/cygwin-snapshot-20120816-1/winsup/cygwin/cygtls.cc:99
        res = <optimized out>
#6  0x044dff88 in ?? ()
No symbol table info available.
#7  0x74f3339a in KERNEL32!BaseCleanupAppcompatCacheSupport ()
   from /c/windows/syswow64/kernel32.dll
No symbol table info available.
#8  0x018c9908 in ?? ()
No symbol table info available.
#9  0x76f89ef2 in ntdll!RtlpNtSetValueKey () from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#10 0x018c9908 in ?? ()
No symbol table info available.
#11 0x76f89ec5 in ntdll!RtlpNtSetValueKey () from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#12 0x6107f110 in cygwin_inet_network () from /usr/bin/cygwin1.dll
No symbol table info available.
#13 0x00000000 in ?? ()
No symbol table info available.

Thread 8 (Thread 5884.0xc58):
#0  0x76f71f26 in ntdll!LdrQueryProcessModuleInformation ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#1  0x76f71f26 in ntdll!LdrQueryProcessModuleInformation ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#2  0x76fa3352 in ntdll!RtlCreateTagHeap () from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
warning: (Internal error: pc 0x1c3 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1c3 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1c3 in read in psymtab, but not in symtab.)

#3  0x000001c4 in ?? ()
warning: (Internal error: pc 0x1c3 in read in psymtab, but not in symtab.)

No symbol table info available.
warning: (Internal error: pc 0x1c3 in read in psymtab, but not in symtab.)

#4  0x042dac8c in ?? ()
No symbol table info available.
#5  0x6100538d in _cygtls::call2 (this=<optimized out>, func=warning: (Internal 
error: pc 0x2 in read in psymtab, but not in symtab.)

0x2, 
    arg=0x18c9908, buf=0x6100551b)
    at /netrel/src/cygwin-snapshot-20120816-1/winsup/cygwin/cygtls.cc:99
        res = <optimized out>
#6  0x042dff88 in ?? ()
No symbol table info available.
#7  0x74f3339a in KERNEL32!BaseCleanupAppcompatCacheSupport ()
   from /c/windows/syswow64/kernel32.dll
No symbol table info available.
#8  0x018c9908 in ?? ()
No symbol table info available.
#9  0x76f89ef2 in ntdll!RtlpNtSetValueKey () from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#10 0x018c9908 in ?? ()
No symbol table info available.
#11 0x76f89ec5 in ntdll!RtlpNtSetValueKey () from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#12 0x6107f110 in cygwin_inet_network () from /usr/bin/cygwin1.dll
No symbol table info available.
#13 0x00000000 in ?? ()
No symbol table info available.

Thread 7 (Thread 5884.0x15b0):
#0  0x76f71f26 in ntdll!LdrQueryProcessModuleInformation ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#1  0x76f71f26 in ntdll!LdrQueryProcessModuleInformation ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#2  0x76fa3352 in ntdll!RtlCreateTagHeap () from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
warning: (Internal error: pc 0x1e3 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1e3 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1e3 in read in psymtab, but not in symtab.)

#3  0x000001e4 in ?? ()
warning: (Internal error: pc 0x1e3 in read in psymtab, but not in symtab.)

No symbol table info available.
warning: (Internal error: pc 0x1e3 in read in psymtab, but not in symtab.)

#4  0x040dac8c in ?? ()
No symbol table info available.
#5  0x6100538d in _cygtls::call2 (this=<optimized out>, func=warning: (Internal 
error: pc 0x2 in read in psymtab, but not in symtab.)

0x2, 
    arg=0x18cae60, buf=0x6100551b)
    at /netrel/src/cygwin-snapshot-20120816-1/winsup/cygwin/cygtls.cc:99
        res = <optimized out>
#6  0x040dff88 in ?? ()
No symbol table info available.
#7  0x74f3339a in KERNEL32!BaseCleanupAppcompatCacheSupport ()
   from /c/windows/syswow64/kernel32.dll
No symbol table info available.
#8  0x018cae60 in ?? ()
No symbol table info available.
#9  0x76f89ef2 in ntdll!RtlpNtSetValueKey () from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#10 0x018cae60 in ?? ()
No symbol table info available.
#11 0x76f89ec5 in ntdll!RtlpNtSetValueKey () from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#12 0x6107f110 in cygwin_inet_network () from /usr/bin/cygwin1.dll
No symbol table info available.
#13 0x00000000 in ?? ()
No symbol table info available.

Thread 6 (Thread 5884.0x130c):
#0  0x76f6f8b1 in ntdll!RtlUpdateClonedSRWLock ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#1  0x76f6f8b1 in ntdll!RtlUpdateClonedSRWLock ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#2  0x75590a91 in WaitForSingleObjectEx ()
   from /c/windows/syswow64/KERNELBASE.dll
No symbol table info available.
warning: (Internal error: pc 0x31f in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x31f in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x31f in read in psymtab, but not in symtab.)

#3  0x00000320 in ?? ()
warning: (Internal error: pc 0x31f in read in psymtab, but not in symtab.)

No symbol table info available.
warning: (Internal error: pc 0x31f in read in psymtab, but not in symtab.)

#4  0x00000000 in ?? ()
No symbol table info available.

Thread 5 (Thread 5884.0x294):
#0  0x76f6f939 in ntdll!RtlUpdateClonedSRWLock ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#1  0x76f6f939 in ntdll!RtlUpdateClonedSRWLock ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#2  0x71ed635c in ?? () from /c/windows/System32/mswsock.dll
No symbol table info available.
#3  0x6100538d in _cygtls::call2 (this=<optimized out>, func=0x71ed62ee, 
    arg=0x18d20a0, buf=0x6100551b)
    at /netrel/src/cygwin-snapshot-20120816-1/winsup/cygwin/cygtls.cc:99
        res = <optimized out>
#4  0x03cdff88 in ?? ()
No symbol table info available.
#5  0x74f3339a in KERNEL32!BaseCleanupAppcompatCacheSupport ()
   from /c/windows/syswow64/kernel32.dll
No symbol table info available.
#6  0x018d20a0 in ?? ()
No symbol table info available.
#7  0x76f89ef2 in ntdll!RtlpNtSetValueKey () from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#8  0x018d20a0 in ?? ()
No symbol table info available.
#9  0x76f89ec5 in ntdll!RtlpNtSetValueKey () from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#10 0x6107f110 in cygwin_inet_network () from /usr/bin/cygwin1.dll
No symbol table info available.
#11 0x00000000 in ?? ()
No symbol table info available.

Thread 4 (Thread 5884.0x96c):
#0  0x76f6f8b1 in ntdll!RtlUpdateClonedSRWLock ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#1  0x76f6f8b1 in ntdll!RtlUpdateClonedSRWLock ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#2  0x75590a91 in WaitForSingleObjectEx ()
   from /c/windows/syswow64/KERNELBASE.dll
No symbol table info available.
warning: (Internal error: pc 0x2bb in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x2bb in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x2bb in read in psymtab, but not in symtab.)

#3  0x000002bc in ?? ()
warning: (Internal error: pc 0x2bb in read in psymtab, but not in symtab.)

No symbol table info available.
warning: (Internal error: pc 0x2bb in read in psymtab, but not in symtab.)

#4  0x00000000 in ?? ()
No symbol table info available.

Thread 3 (Thread 5884.0xa84):
#0  0x76f7013d in ntdll!RtlEnableEarlyCriticalSectionEventCreation ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#1  0x76f7013d in ntdll!RtlEnableEarlyCriticalSectionEventCreation ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#2  0x76fa2f51 in ntdll!RtlWeaklyEnumerateEntryHashTable ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
warning: (Internal error: pc 0x2 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x2 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x3 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x2 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x2 in read in psymtab, but not in symtab.)

#3  0x00000003 in ?? ()
warning: (Internal error: pc 0x2 in read in psymtab, but not in symtab.)

No symbol table info available.
#4  0x018cac28 in ?? ()
No symbol table info available.
#5  0x74f3339a in KERNEL32!BaseCleanupAppcompatCacheSupport ()
   from /c/windows/syswow64/kernel32.dll
No symbol table info available.
#6  0x00000000 in ?? ()
No symbol table info available.

Thread 2 (Thread 5884.0xc28):
#0  0x76f6f99e in ntdll!RtlUpdateClonedSRWLock ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#1  0x76f6f99e in ntdll!RtlUpdateClonedSRWLock ()
   from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#2  0x75593a5e in SetThreadPriority () from /c/windows/syswow64/KERNELBASE.dll
No symbol table info available.
#3  0x610873cd in yield ()
    at /netrel/src/cygwin-snapshot-20120816-1/winsup/cygwin/miscfuncs.cc:252
        prio = 2
#4  0x610d6714 in _cygtls::lock() () from /usr/bin/cygwin1.dll
No symbol table info available.
#5  0x61030124 in setup_handler (sig=14, handler=0x592ca0, siga=..., 
    tls=0x28ce64)
    at /netrel/src/cygwin-snapshot-20120816-1/winsup/cygwin/exceptions.cc:836
        res = <optimized out>
        hth = 0x80013000
        i = <optimized out>
        cx = {ContextFlags = 0, Dr0 = 0, Dr1 = 0, Dr2 = 0, Dr3 = 0, Dr6 = 0, 
          Dr7 = 0, FloatSave = {ControlWord = 0, StatusWord = 0, TagWord = 0, 
            ErrorOffset = 0, ErrorSelector = 0, DataOffset = 0, 
            DataSelector = 0, RegisterArea = '\000' <repeats 79 times>, 
            Cr0NpxState = 0}, SegGs = 0, SegFs = 0, SegEs = 51489176, 
          SegDs = 1627912124, Edi = 0, Esi = 2031619, Ebx = 51489116, Edx = 1, 
          Ecx = 0, Eax = 0, Ebp = 0, Eip = 0, SegCs = 0, EFlags = 0, Esp = 0, 
          SegSs = 0, 
          ExtendedRegisters = '\000' <repeats 12 times>, "\030", '\000' 
<repeats 31 times>"\340, ", '\000' <repeats 20 times>"\244, 
\030a\000\000\000\000È«\021\003^\370\aaL\310\031a", '\000' <repeats 152 
times>"\320, \b'a\016\000\000\000\320\b'a\320\b'a\261=\000at\330(\000\016", 
'\000' <repeats 31 times>, 
"t\252\021\003\320\b'al\243\030a\000\000\000\000\016\000\000\000d\316(\000\001\000\000\000P\252\021\003\302<\000a+\000S\000+\000+\000T\377\021\003",
 '\000' <repeats 120 times>"\345, \370\366vH\323Xu\240", '\000' <repeats 15 
times>, "`\253\021\003\004\254\021\003\244", '\000' <repeats 18 times>}
        interrupted = false
        __PRETTY_FUNCTION__ = "int setup_handler(int, void*, sigaction&, 
_cygtls*)"
#6  0x61030d77 in sigpacket::process (this=0x311ac04)
    at /netrel/src/cygwin-snapshot-20120816-1/winsup/cygwin/exceptions.cc:1239
        continue_now = <optimized out>
        __PRETTY_FUNCTION__ = "int sigpacket::process()"
        thissig = @0x61272bd0: {{sa_handler = 0x592ca0 <alarm_signal_handler>, 
            sa_sigaction = 0x592ca0 <alarm_signal_handler>}, sa_mask = 8192, 
          sa_flags = 0}
        dummy = {{sa_handler = 0, sa_sigaction = 0}, sa_mask = 0, 
          sa_flags = 1342177280}
        rc = 1
        handler = <optimized out>
#7  0x610dd1c7 in wait_sig ()
    at /netrel/src/cygwin-snapshot-20120816-1/winsup/cygwin/sigproc.cc:1439
        sigres = <optimized out>
        sig = 14
        bit = <optimized out>
        nb = 164
        dummy_mask = 0
        clearwait = false
        __PRETTY_FUNCTION__ = "void wait_sig(void*)"
        pack = {si = {si_signo = 14, si_code = 4, si_pid = 4764, 
            si_uid = 1001, si_errno = 0, {__pad = {1629095104, 
                0 <repeats 31 times>}, _si_commune = {_si_code = 1629095104, 
                _si_read_handle = 0x0, _si_write_handle = 0x0, 
                _si_process_handle = 0x0, {_si_fd = 0, 
                  _si_pipe_fhandler = 0x0, _si_str = 0x0}}, {{{{
                      si_tid = 1629095104, si_overrun = 0}, si_sigval = {
                      sival_int = 1629095104, sival_ptr = 0x611a04c0}, 
                    si_value = {sival_int = 1629095104, 
                      sival_ptr = 0x611a04c0}}}}, {si_status = 1629095104, 
                si_utime = 0, si_stime = 0}, si_addr = 0x611a04c0}}, 
          pid = 4764, tls = 0x28ce64, mask = 0x28d874, {wakeup = 0x0, 
            thread_handle = 0x0, next = 0x0}}
#8  0x61003e65 in cygthread::callfunc (this=0x6118a400, 
    issimplestub=<optimized out>)
    at /netrel/src/cygwin-snapshot-20120816-1/winsup/cygwin/cygthread.cc:51
        pass_arg = 0x6118a400
#9  0x61004401 in cygthread::stub (arg=0x6118a400)
    at /netrel/src/cygwin-snapshot-20120816-1/winsup/cygwin/cygthread.cc:99
        notify = <optimized out>
        info = 0x6118a400
        __PRETTY_FUNCTION__ = "static DWORD cygthread::stub(void*)"
#10 0x6100538d in _cygtls::call2 (this=<optimized out>, 
    func=0x610043a0 <cygthread::stub(void*)>, arg=0x6118a400, buf=0x6100551b)
    at /netrel/src/cygwin-snapshot-20120816-1/winsup/cygwin/cygtls.cc:99
        res = <optimized out>
#11 0x0311ff88 in ?? ()
No symbol table info available.
#12 0x74f3339a in KERNEL32!BaseCleanupAppcompatCacheSupport ()
   from /c/windows/syswow64/kernel32.dll
No symbol table info available.
#13 0x6118a400 in cygthread::exiting () from /usr/bin/cygwin1.dll
No symbol table info available.
#14 0x0311ffd4 in ?? ()
No symbol table info available.
#15 0x76f89ef2 in ntdll!RtlpNtSetValueKey () from /c/windows/SysWOW64/ntdll.dll
No symbol table info available.
#16 0x6118a400 in cygthread::exiting () from /usr/bin/cygwin1.dll
No symbol table info available.
#17 0x7409eb34 in ?? ()
No symbol table info available.
#18 0x00000000 in ?? ()
No symbol table info available.

Thread 1 (Thread 5884.0xcfc):
#0  0x7559317a in SleepEx () from /c/windows/syswow64/KERNELBASE.dll
No symbol table info available.
#1  0x1d044b61 in ?? ()
No symbol table info available.
#2  0x00005d00 in ?? ()
No symbol table info available.
#3  0x8024d110 in ?? ()
No symbol table info available.
#4  0x610873a2 in yield ()
    at /netrel/src/cygwin-snapshot-20120816-1/winsup/cygwin/miscfuncs.cc:250
        i = 0
        prio = 0
#5  0x610d65fc in _sigfe () from /usr/bin/cygwin1.dll
No symbol table info available.
#6  0x61083180 in reallocf ()
    at /netrel/src/cygwin-snapshot-20120816-1/winsup/cygwin/malloc_wrapper.cc:96
No symbol table info available.
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

#7  0x00000001 in ?? ()
warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

No symbol table info available.
warning: (Internal error: pc 0x1f in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1f in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x20 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1f in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x1f in read in psymtab, but not in symtab.)

#8  0x00000020 in ?? ()
warning: (Internal error: pc 0x1f in read in psymtab, but not in symtab.)

No symbol table info available.
warning: (Internal error: pc 0xf in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x0 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0xf in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x10 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0xf in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0xf in read in psymtab, but not in symtab.)

#9  0x00000010 in ?? ()
warning: (Internal error: pc 0xf in read in psymtab, but not in symtab.)

No symbol table info available.
#10 0x00005d00 in ?? ()
No symbol table info available.
#11 0x00000000 in ?? ()
No symbol table info available.
A debugging session is active.

        Inferior 1 [process 5884] will be detached.

Quit anyway? (y or n) Detaching from program: /usr/bin/emacs-X11.exe, Pid 5884

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

Reply via email to