delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/20/19:09:55

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2DB1A386F422
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1587424141;
bh=AwuxbR+4Msqn00TTSYBRK121VqPftWruPFADhetTubo=;
h=Subject:To:Date:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=E2sqSP213kknUk2iYSepUL3mKFMpiorEKGx8KzfgbTBaGxoVHBjRlyJCW8K/bjqLk
TXwg/993EN/AFWjiY1pKrRMbe8BjZueRHyEvlazu7t2BUM2DEeBtjIptUnpulwIAso
/KALcirL9kJH3kr1U+d+F+FC3bqMFPHJLG8O9CmM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EDC4B384A87E
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to
:references:user-agent:mime-version:content-transfer-encoding;
bh=qiB8ZqJQhcrSpXkoAg08zeJsy+k4cF3w5tENGKzPTtQ=;
b=qD2dkfKhBgkv0ONjq/Y58m7JhU3WbIV/BTzl/VFjSSMd1oxQ1rKRMh2hDG2Ku1WAf4
VVyky7YjjxJGFdpil5aFtJdO+uK1nSb2OylDubASNfBFeX4bvYvFrM9PvajSgDKIh3My
72yIrxdmWoFu3PzIE5aKCNAm7F7/uKYjydXZZ2VTMEnDF8OEhRJPoAXJQC5FoKOjl74d
qCJQB0Aof816evcYXKt18+MOCMCJchyznqEgWrhtykaRuqmw4jfTMENNQiV5xWJ86d+d
mWVcZHyE4cc85jMO/6lVQzPz+tD1oioAgnwTt0jL5vCg0wNgaWLsKBAxZK7pZ6NTuH5o
Liig==
X-Gm-Message-State: AGi0PuZFi3BoAg0GdF/5yHcujbMUDfialczrmhWidWbYJpprw5NPEqV/
G30k0tLrFN5NF784xVzW1RY=
X-Google-Smtp-Source: APiQypIwUJbvbACtL8v0UXtUvmneOOpyz4K8lQscbrURCgHRHqukzMIDbKh1uPZNzSIoV99FTVL88g==
X-Received: by 2002:a17:90a:5a:: with SMTP id 26mr2119774pjb.74.1587424134921;
Mon, 20 Apr 2020 16:08:54 -0700 (PDT)
Message-ID: <d8947c4dbbc3446c4dbe67bfb2ed028370697a8a.camel@gmail.com>
Subject: Re: X crashes with SIGPIPE
To: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>,
The Cygwin Mailing List
<cygwin AT cygwin DOT com>
Date: Mon, 20 Apr 2020 16:08:51 -0700
In-Reply-To: <a4840a16-3739-a340-8c1f-23ad10b0d48c@dronecode.org.uk>
References: <faff3a3252644ab0f41d02854413932c9932e7af DOT camel AT gmail DOT com>
<a4840a16-3739-a340-8c1f-23ad10b0d48c AT dronecode DOT org DOT uk>
User-Agent: Evolution 3.30.5-1.1
MIME-Version: 1.0
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Henry Gebhardt via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Henry Gebhardt <hsggebhardt AT gmail DOT com>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On Mon, 2020-04-20 at 18:03 +0100, Jon Turney wrote:
> On 18/04/2020 04:38, Henry Gebhardt via Cygwin wrote:
> > Hi,
> > 
> > Cygwin/X crashes every few days for me. I managed to obtain a
> > backtrace
> > from the last crash (attached). Server log is also included.
> > 
> > I have not, yet, managed to pin down the exact trigger for the
> > crash. I
> > am running two graphical programs under Windows 10 WSL2 Debian:
> > tilix
> > and evince.
> > 
> > Thank you for any help.
> 
> Thanks for reporting this issue.
> 
> I am assuming, although it's not totally clear from your report,
> that 
> you are starting the X server with '-listen tcp', and are setting 
> DISPLAY to localhost:0.0 or similar in your WSL environment.

Yes, indeed! Also with "-nowgl", but I assume that is irrelevant.

> 
> > Thread 1 received signal SIGPIPE, Broken pipe.
> > [Switching to Thread 2952.0x1144]
> > 0x000000010053f250 in _XSERVTransSocketWritev (ciptr=0xffffbb18,
> >     buf=0xffffbc10, size=-17396) at
> > /usr/include/X11/Xtrans/Xtranssock.c:2382
> > 2382    /usr/include/X11/Xtrans/Xtranssock.c: No such file or
> > directory.
> 
> I'm not sure this is the actual point of failure (since the X server 
> should be setting SIGPIPE to be ignored), so you probably need to
> tell 
> gdb not to stop on it e.g. 'handle sigpipe ignore'.

Thank you for this. I will run with sigpipe ignored, and see if I can
reproduce then. Might be a few days until it triggers.

> 
> In any case, a sigpipe here indicates that the X client has already 
> closed when the X server tries to write to it's socket.
> 
> Assuming gdb is giving accurate information here, this is also looks 
> very odd, as a negative value of size (which is used as iovcnt passed
> to 
> write) doesn't make a lot of sense.


Best,
Henry

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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