delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/06/25/05:02:26

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 25 Jun 2012 11:00:29 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: crash on latest cygwin snapshot
Message-ID: <20120625090029.GE2321@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4FE786DA DOT 2050208 AT gmail DOT com> <20120625043110 DOT GA28607 AT ednor DOT casa DOT cgf DOT cx> <4FE81478 DOT 8030508 AT gmail DOT com> <20120625080550 DOT GC2976 AT calimero DOT vinschen DOT de> <4FE82361 DOT 8040908 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <4FE82361.8040908@gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019