From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26463 invoked by alias); 25 Jun 2012 09:02:11 -0000 Received: (qmail 26303 invoked by uid 22791); 25 Jun 2012 09:01:14 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Mon, 25 Jun 2012 09:00:32 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 7F8C22C0071; Mon, 25 Jun 2012 11:00:29 +0200 (CEST) Date: Mon, 25 Jun 2012 09:02:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: crash on latest cygwin snapshot Message-ID: <20120625090029.GE2321@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <4FE786DA.2050208@gmail.com> <20120625043110.GA28607@ednor.casa.cgf.cx> <4FE81478.8030508@gmail.com> <20120625080550.GC2976@calimero.vinschen.de> <4FE82361.8040908@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4FE82361.8040908@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-06/txt/msg00445.txt.bz2 On Jun 25 10:37, marco atzeri wrote: > On 6/25/2012 10:05 AM, Corinna Vinschen wrote: > >On Jun 25 09:34, marco atzeri wrote: > >>I tried to strace but it produces an enormous amount of data > >> > >>$ ls -sh1 xprobe_comp.strace* > >>330M xprobe_comp.strace_fail > >>761M xprobe_comp.strace_good > >> > >>and there is no guarantee that the root cause is traced. > > > >Does the failing strace contain a line like this? > > > > --- Process 3708, exception C0000094 at 00401198 > > > >If so, it might give a clue. There's a chance that an exception > >generates another exception, so you might have more than one such > >line. The first one rules. Did you try from CVS again with cgf's > >latest patch? > > > > > >Corinna > > > > Hi Corinna, > Tested up to > http://cygwin.com/ml/cygwin-cvs/2012-q2/msg00129.html What about http://cygwin.com/ml/cygwin-cvs/2012-q2/msg00130.html ? > There are no exceptions on the strace. > > The last portion, ~ 500 lines, of strace is available here: > http://matzeri.altervista.org/works/atlas/ > > together with the equivalent area of the good strace (~ 1000 lines). > > A normal exception should kill just the running process, while > I see that xprobe_comp, bash, mintty are killed and > also others bash and mintty processes are taking down. Really all processes or just all processes in the same terminal window? If it's the latter, the problem may be triggered by xprobe_comp, but it would really occur in mintty. Here's an interesting snippet from the failing strace: 414 195741371 [main] xprobe_comp 1084 fhandler_pty_slave::write: pty0, write(40B7E7, 6) 47 195741418 [main] xprobe_comp 1084 fhandler_pty_slave::write: (648): pty output_mutex (0xCC): waiting -1 ms 46 195741464 [main] xprobe_comp 1084 fhandler_pty_slave::write: (648): pty output_mutex: acquired 50 195741514 [main] xprobe_comp 1084 fhandler_pty_slave::write: WriteFile failed, Win32 error 232 45 195741559 [main] xprobe_comp 1084 seterrno_from_win_error: /pub/cygwin/cvs/src_new/winsup/cygwin/fhandler_tty.cc:676 windows error 1117 47 195741606 [main] xprobe_comp 1084 geterrno_from_win_error: windows error 1117 == errno 5 So a WriteFile to the slave side of the pty returns with ERROR_NO_DATA which means the pipe has been closed on the other end. The other end is the master, which should be mintty here. The strace doesn't cover mintty so there's no way to see what happens in there. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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