delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/03/03/16:43:54

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=Ru5wvPv9aOkgmnTw
zBMaUD09OXVZg66w8GB+PZp+eHvb/FOHVZpjn+Vy4ShnuML1JcsKtr+8B6H4/eu6
2Pq7ZjPYetlqpozPO/CQILZ1fi3lB7C50xZSRY/7ZI4r8EX63Hlx4gOPVKPLXKGk
2CYyhyS2PnK7+vabCgDtqQhbZf0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=spAokviAuDEUTSEVCznucn
sL3Uc=; b=xdTrlVoQvywClyPXTKknajV6ZB5u9AHp++b5nP1iZ/K9Yq8t9Lo5Zq
OWyuuWLPLeT8Uvntjg3A7umja8USxzCAMORKXbA63tGCnsQL6dHgFXzsajZ/zC6x
QY/Q8t9isqJ2Rmaha4d1m+Tao76YXW5qZESZ4R3i1FN3pxh+ITPZE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-4.9 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=fam, H*i:sk:f5b36ap, H*f:sk:f5b36ap, H*MI:sk:f5b36ap
X-HELO: smtp-out-no.shaw.ca
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shaw.ca; s=s20180605; t=1583271779; bh=+eC0NcGKev5m8UNnGbteplGFqAjQz94hnsGWd6QZ7F0=; h=Reply-To:Subject:To:References:From:Date:In-Reply-To; b=lVb4lWYvmoKAHZq2TJ3Ms+NniP1gXQ4Huk3fNdYq9rlogz4ew5o9RbRrvRRO6hT4f lQcvUAfRMq5DRUhGoG20+dPdxChctKKexkE4lpIiJlDX4B2Fb8g7tCCyAHHjRgR7Wg GF4YgeBG5ZMuFZA2Gi/izX6QPNaDmc2TKouhZQobN4uo185aFCihmLxJrP1tQAkOrd gFBLqv0NFD77Wifk6jO6YedFyDsbV6e6CMqmPZ37R5LyxZiN4O0wPXsOORkPZItHCv grgEJj5DHyVXEwzXVyQQXTh0Get8wENvpL7K2vY2D/H5+Z0s3WRsxfsg8QmVlI9nXY CJXohmfy9lvGw==
Reply-To: Brian DOT Inglis AT Shaw DOT ca
Subject: Re: Cygwin/X XWinrc menu no longer launches after recent updates
To: cygwin AT cygwin DOT com
References: <345b8a7a-bcbb-450b-08c0-943f3bb3b683 AT astrofoto DOT org> <20200303185335 DOT 5f4369c163b3a4b241ef429d AT nifty DOT ne DOT jp> <f5b1rq9k4wr DOT fsf AT ecclerig DOT inf DOT ed DOT ac DOT uk> <20200303213524 DOT 5ddf37854e2eb85eca50ed96 AT nifty DOT ne DOT jp> <f5bsgipipce DOT fsf AT ecclerig DOT inf DOT ed DOT ac DOT uk> <20200303215912 DOT 6c72af3e17e8ef0f0f58b8a6 AT nifty DOT ne DOT jp> <f5b36apicb6 DOT fsf AT ecclerig DOT inf DOT ed DOT ac DOT uk>
From: Brian Inglis <Brian DOT Inglis AT Shaw DOT ca>
Message-ID: <a3722911-eac9-8006-6169-14725c639cad@Shaw.ca>
Date: Tue, 3 Mar 2020 14:42:58 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0
MIME-Version: 1.0
In-Reply-To: <f5b36apicb6.fsf@ecclerig.inf.ed.ac.uk>

On 2020-03-03 10:21, Henry S. Thompson wrote:
> Takashi Yano writes:
> 
>> On Tue, 03 Mar 2020 12:40:17 +0000
>> "Henry S. Thompson" wrote:
>>> Takashi Yano writes:
>>>> This bug was already fixed in current git head.
>>>
>>> Current git head for Cygwin?  Or mintty?
>>
>> I mean cygwin.
> 
> OK, this is now getting very weird.  As at least one other person
> reported, the problem is intermittent, with both my systems, both on
> 3.1.4 Cygwin and 3.1.4 mintty.
> 
> Two further shots in the dark:
> 
>  1) I tried to run cygcheck -s while there was an XWin + sh hang, as
>     previously reported.  It hung also.  Process Explorer shows
> 
>   bash.exe
>      bash.exe
>         cygcheck.exe
>            id.exe
> 
>     I can use strace to attach to it, and it is indeed
>     [cygdir]\bin\id.exe, showing lots of dll loads, then a thread being
>     created and exiting happily, last two lines are
> 
>      thread nnn created
>      _cygtls::remove: wait 0
> 
>   Mystery
> 
>   So, try connecting strace to the hung sh process...
> 
>   [Nothing :-[
>   
>   Connecting to it with gdb shows various threads, but ^C doesn't
>   achieve anything.
> 
>  2) There are some hints that cygrunsrv/cygserver might be implicated.
>     Two cygchecks on one of my machines (which did run to completion)
>     differ in that the one taken while XWin had started successfully
>     differed from the other in that all my Cygwin services (cron,
>     cygserver, sshd, and exim) were stopped,
>     In the other, a case of XWin hang, they were all running.
> 
>     On my other system after several fails in a row, I stopped all my
>     services and XWin launched successfully.
> 
> Grasping at straws here, but I have one machine sitting in a hung state,
> and other debugging ideas welcome...

XWin startup takes different paths depending on whether you have sshd running or
not. I also have cygserver defined with max supported threads, as I have cron
jobs which need them. I can often get multiwindow X to launch from mintty with
sshd disabled, after deleting:

$ llgo -AR /tmp/.X* /tmp/dbus-* /tmp/fam-$USER/fam-
-r--r--r--  1 11 Mar  2 00:20 /tmp/.X0-lock
srwxrwxrwx  1  0 Mar  2 14:27 /tmp/dbus-5P1mCxSjEA=
srwxrwxrwx  1  0 Mar  2 00:20 /tmp/dbus-JEIRS3qks6=
srwxrwxrwx  1  0 Mar  2 12:34 /tmp/dbus-K5HWAHFshg=
srwxrwxrwx  1  0 Mar  3 10:34 /tmp/dbus-pvf4OTaHDu=
srwxrwxrwx  1  0 Mar  2 08:47 /tmp/dbus-QdAWXiPC8F=
srwxrwxrwx  1  0 Mar  2 14:01 /tmp/dbus-TFjEzRHU4c=
srwxrwxrwx  1  0 Mar  2 14:26 /tmp/dbus-VsXRfGI5GT=
srwxrwxrwx  1  0 Mar  2 12:37 /tmp/dbus-Zo1S6Q5MSG=
srw-------  1  0 Mar  2 00:20 /tmp/fam-$USER/fam-=

/tmp/.X11-unix:
total 1.0K
srw-rw-rw- 1 0 Mar  2 00:20 X0=
-rw------- 1 0 Mar  2 00:20 X0.lock

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

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