Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 X-Authenticated: #14308112 Date: Sun, 28 Aug 2005 21:11:06 +0300 From: Pavel Tsekov X-X-Sender: ptsekov AT mordor To: cygwin AT cygwin DOT com Subject: Re: zsh: command not found => hangs In-Reply-To: Message-ID: References: <20050823205318 DOT GF6716 AT bouh DOT ens-lyon DOT fr> <20050825001137 DOT GI7338 AT bouh DOT ens-lyon DOT fr> <20050825220454 DOT GR7662 AT bouh DOT ens-lyon DOT fr> <20050826005349 DOT GA4087 AT trixie DOT casa DOT cgf DOT cx> <20050826191429 DOT GA2034 AT trixie DOT casa DOT cgf DOT cx> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Y-GMX-Trusted: 0 X-IsSubscribed: yes On Sun, 28 Aug 2005, Pavel Tsekov wrote: > Hello, > > I did trace this problem an it looks like a race in Cygwin but I may be > wrong. Here I am providing two backtraces from a debug session - the first > one shows what happens normally and the second one shows the hang: [...] Just as a confirmation that what you see in the debug output is true here is the return address to which the signal handler must return when zsh hangs: (gdb) x $eip 0x10049293 : 0x5794458d (gdb) disass zhandler 0x10049293 + 3 Dump of assembler code from 0x10049290 to 0x10049296: 0x10049290 : push %ebp 0x10049291 : mov %esp,%ebp 0x10049293 : lea 0xffffff94(%ebp),%eax End of assembler dump. (gdb) x $esp+4 0x22eb68: 0x6101e498 (gdb) x 0x6101e498 0x6101e498 <_ZN7_cygtls19call_signal_handlerEv+140>: 0xfffc458b This address points after the `call' instructions which invokes the signall handler i.e. as if it is a normal call. When everything is ok the return address is set to the address of sigreturn. Another thing I noticed is that when the hang occurs the stack pointer for zhandler lives at a different address which seems strange - again this may be irrelevant . -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/