delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/05/20/18:47:23

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0B403987C20
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1621550839;
bh=lsquR/2ttLBngH1LVqyonXbcn336Ln5cj8Pi1EErjh4=;
h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=MYHwmAfDxusL83/qkxY+AB6opuoXpV1UhYZjDTX3mGKNqsV7rKnTh6S3fSOhEZIjx
HZsikgh1XuoPiXc7YdFjGYbRIulQ3cBIEFJld1xS/ukG3HtyFpUJV1VPIV/1FOVJhD
mhaloPb5W4omMnsObjPKlnIbJa2gNDi1WsXyaHjk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2F45B385802B
X-MC-Unique: Dg7h2E_UMbioG7L0LkjNbw-1
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: Cygwin/X fails post Windows 10 version 1909
Thread-Topic: Cygwin/X fails post Windows 10 version 1909
Thread-Index: AddNluJaumYPKi7HSBWjH8ATDmzZLwAMfxWg
Date: Thu, 20 May 2021 22:47:07 +0000
Message-ID: <DM6PR06MB5291C7518BDEE80823E183F5B62A9@DM6PR06MB5291.namprd06.prod.outlook.com>
References: <BYAPR06MB5287FDE25BFD4B9A209876BEB62A9 AT BYAPR06MB5287 DOT namprd06 DOT prod DOT outlook DOT com>
In-Reply-To: <BYAPR06MB5287FDE25BFD4B9A209876BEB62A9@BYAPR06MB5287.namprd06.prod.outlook.com>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_67599526-06ca-49cc-9fa9-5307800a949a_Enabled=true;
MSIP_Label_67599526-06ca-49cc-9fa9-5307800a949a_SetDate=2021-05-20T16:40:32Z;
MSIP_Label_67599526-06ca-49cc-9fa9-5307800a949a_Method=Standard;
MSIP_Label_67599526-06ca-49cc-9fa9-5307800a949a_Name=67599526-06ca-49cc-9fa9-5307800a949a;
MSIP_Label_67599526-06ca-49cc-9fa9-5307800a949a_SiteId=fabb61b8-3afe-4e75-b934-a47f782b8cd7;
MSIP_Label_67599526-06ca-49cc-9fa9-5307800a949a_ActionId=ae9bec37-17bb-4e9a-acb1-fa9114c6383e;
MSIP_Label_67599526-06ca-49cc-9fa9-5307800a949a_ContentBits=0
x-originating-ip: [206.213.209.38]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 22199f96-e6a3-44fe-8052-08d91be1329c
x-ms-traffictypediagnostic: DM6PR06MB6057:
x-microsoft-antispam-prvs: <DM6PR06MB6057D821A825F4A3179CEE60B62A9 AT DM6PR06MB6057 DOT namprd06 DOT prod DOT outlook DOT com>
x-ms-oob-tlc-oobclassifiers: OLM:6430
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0
x-microsoft-antispam-message-info: yCKJXctWtxsxI9FOgol/g68DjelaUCsFLnO1tew/vlH04f15/MpsRvWP18JN8U64So4XINiwltUwt6bcWcvNoQ9lGThyDMxI465f4/E0dcK15/l8CptSpuyEJT2sp8fl7N+v+rHimNfRHkL19ryEQ0tzrsUGeGS24vHOCizxz3whvS2tzKctrs9QDH4+E3hj+bCtrMxOD/eupC3qLtzOC3/854XH6+Pb9Mb03o/cPu2nNKQz6GDUxO+dS7sD3t7m7jV8W/xRknsBC+RRuJYmvLEYcP/JSgVYvuBJjX2NCezNC8fEwt7oaBMWx6dV03p3jwXBXEFZ4mbagHgy6KQNo+Mxl93WjnAqvoLak/R48nflo+Q8k/3DohiUt1YPtEoxGaq9NTmbNaUxPoWzKhYCfirtLJNfEDDfDXSoa86F1tqg3/OMxh63TUPXvm202M3BruYmt8K/lXIGKK/QwZq1t5falBjrYWA0Aby8VZBxiaJi2xo4GAsxmEW88yS43KaZNoBf/v9mNm1y5ccbfIvMgXmj7Zo4hDjw5c1YnEQTmP8PfDtg72fCdMCRw2iEcF2fn6fEHX3jTtBjr05u0nKZlphWeMPq0Ybco3RktiVnBxdcQGLl37bWt0WspYnJuvHstGedm0kY35a8d6pNDlm/UvziK45ksKU4XPUIm05JpSH0dR5z7fX3Qadlfi93fWfS
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:DM6PR06MB5291.namprd06.prod.outlook.com; PTR:; CAT:NONE;
SFS:(4636009)(396003)(366004)(376002)(39860400002)(136003)(346002)(2906002)(83380400001)(19627235002)(966005)(122000001)(26005)(53546011)(186003)(38100700002)(5660300002)(6506007)(316002)(6916009)(8936002)(8676002)(55016002)(9686003)(7696005)(76116006)(66946007)(66476007)(66556008)(64756008)(66446008)(33656002)(52536014)(478600001)(86362001)(71200400001);
DIR:OUT; SFP:1101
x-ms-exchange-antispam-messagedata: =?utf-8?B?cmszMTVaaXJUNU9IZzY4enlYaGVYN09HcEZxaHlPWTRqbXlkWHpacTlSUVBD?=
=?utf-8?B?cU56bVZ1SnpWM3czTzlWYWhqL3JkNHh2MitJMlVBY0JyZ2FCaDNkTzZha2Uw?=
=?utf-8?B?U0pFQ0JZcjlrUGM3d2lFeFl5YXZHSFp5MUNMQlZnZDJ0dlY1N01EUG1EcWVU?=
=?utf-8?B?VFZCZUFxMUR6WU81b0ZEc2dSNkJodmtrMk9qZ0g1VEdJaTFyNWd3RWJNeDJR?=
=?utf-8?B?MmsrcHlKNHFDQkFDTjNnRnFUZDhKN2RlWEdtUFJFZkNSS2lLbFNvRmgrYjA0?=
=?utf-8?B?TG9FQ09idi9nQmN4U0YzZkt4N0dRaW50VTZiS0F1WTZzUEx2MEdlZW5PL3J3?=
=?utf-8?B?ZXZkNTF4ZjNmTXdtTXlsajZMNVl1T0F6bWsyM0hxckQ0Rm5pcUJDRHlLUm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eU11TENHZGllVEozbkxpRUxy?=
=?utf-8?B?dWY3VE1mZ0lwYmE1eU0zSkg0UHByQk1rVGpaaGxNK01PMkFNMFRTdk9SR0xT?=
=?utf-8?B?WFI2Qm5Tc0c5Z1haY2twamRuemltSlFTTXFTWTFkWVJuZ2lIeVozS3RyNFha?=
=?utf-8?B?aG9Ma3lWVWVYb1JKeVVrWDRMK3h5ZjJpbUd5ZG41a28xOVM0ZkRyV2FFWFlF?=
=?utf-8?B?U2hyOGtyYTZ5MGN0OUdCN0llOHBPSUVQNlVuUlVZWFFzaW5DaGVUUGcxSFFI?=
=?utf-8?B?eUI5S0lBZ0NJUHd4L3JrNzhUSkUyQ2Jkb1Y4SHVSOVVLemJMYU5sLzYwYU9r?=
=?utf-8?B?TVpTMG56b2JWRlFNYUd5UmJFU09Sa29GZlhUQldQR2NEcGRYejNMQmVwZDM4?=
=?utf-8?B?Z3BsdlRPV3cxSTJCZ1hwTDJvb1pzcHVPVWtWWEoveW50LzJlQVJzd1hOK3pv?=
=?utf-8?Q?WKSpAcZt+mzbRN/P7e4htbtbWTFb9yRio/22JMi?=
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM6PR06MB5291.namprd06.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 22199f96-e6a3-44fe-8052-08d91be1329c
X-MS-Exchange-CrossTenant-originalarrivaltime: 20 May 2021 22:47:07.6766 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: fabb61b8-3afe-4e75-b934-a47f782b8cd7
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: PhH67bbLg5zt86be9DrCM5S/2a7epmmKL/F5D/BxEjEfVlV1hBmdvskcnNNeeSicMgWHzTwv5CN7/4PYrHpHv4Y7/Nd7k7RIZJ/JsBMxQr0=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR06MB6057
X-OriginatorOrg: CVShealth.com
X-CFilter-Loop: WVMP-VTSPSB-103
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: cvshealth.com
X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, LIKELY_SPAM_FROM,
RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,
SPF_PASS autolearn=no 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-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: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: "Galbraith, Randy via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Galbraith, Randy" <regalbraith AT cvshealth DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 14KMlNt5003500


Randy Galbraith – MCPS AppDev – Scottsdale
480-445-2685 – cell: 602-531-0957 – wendy: 602-909-9901 – home: 602-539-1817
Absolutely critical: “Universal wearing of masks. Stay away from crowds. Close the bars."
- Dr. Anthony Fauci, PBS NewsHour, 7/17/20.
Data classification: PROPRIETARY

-----Original Message-----
From: Galbraith, Randy 
Sent: Thursday, May 20, 2021 9:56 AM
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin/X fails post Windows 10 version 1909

On 19/05/2021 19:03, Galbraith, Randy via Cygwin wrote:
>>> Hi Everyone.
>>> 
>>> Following a Windows 10 version 1909 update Cygwin/X fails to start. It ends with:
>>> 
>>> (--) 16 mouse buttons found
>>> (--) Setting autorepeat to delay=500, rate=31
>>> xinit: giving up
>>> xinit: unable to connect to X server: Connection refused
>>> xinit: server error
>>> 
>>> [1]+ Exit 1 startx -- :1 -multiwindow -clipboard
>>> 
>>> If I run XWin under gdb with xorg-server-debuginfo package installed I can see this stack trace:
>>> 
>>> Thread 1 "XWin" received signal ?, Unknown signal.
>>> 0x00007ffa99383b19 in RaiseException () from 
>>> /cygdrive/c/WINDOWS/System32/KERNELBASE.dll
>>> (gdb) bt
>>> #0 0x00007ffa99383b19 in RaiseException () from 
>>> /cygdrive/c/WINDOWS/System32/KERNELBASE.dll
>>> #1 0x00007ffa97662086 in ?? ()
>>> from /cygdrive/c/Program Files/Citrix/ICAService/cxinjime64.dll
>>> #2 0x00007ffa97661afd in ?? ()
>>> from /cygdrive/c/Program Files/Citrix/ICAService/cxinjime64.dll
>>> #3 0x00007ffa97661695 in ?? ()
>>> from /cygdrive/c/Program Files/Citrix/ICAService/cxinjime64.dll
>>> #4 0x000000010040df3e in winConfigKeyboard 
>>> (pDevice=pDevice AT entry=0x80027d720)
>>> at ../hw/xwin/winconfig.c:274

>>XWin is just calling GetKeyboardLayoutName() here, which Citrix appears to be hooking.

>> https://gitlab.freedesktop.org/xorg/xserver/-/blob/master/hw/xwin/winc
>> onfig.c#L274

>>> #5 0x0000000100410f36 in winKeybdProc (pDeviceInt=0x80027d720, 
>>> iState=<optimized out>>>) at ../hw/xwin/winkeybd.c:99
>>> #6 0x0000000100469bc7 in ActivateDevice (dev=dev AT entry=0x80027d720,
>>> sendevent=sendevent AT entry=1 '\001') at ../dix/devices.c:576
>>> #7 0x000000010046d8bd in InitAndStartDevices () at 
>>> ../dix/devices.c:762
>>> #8 0x0000000100479f8f in dix_main (argc=2, argv=0xffffcc50, 
>>> envp=<optimized out>>>) at ../dix/main.c:251
>>> #9 0x0000000180049efd in dll_crt0_1 () at 
>>> /usr/src/debug/cygwin-3.2.0-1/winsup/cygwin/dcrt0.cc:1028
>>> #10 0x0000000180047856 in _cygtls::call2 (this=0xffffce00,
>>> func=0x180048d30 <dll_crt0_1(void*)>>>, arg=0x0, 
>>> buf=buf AT entry=0xffffcdf0) at 
>>> /usr/src/debug/cygwin-3.2.0-1/winsup/cygwin/cygtls.cc:40
>>> #11 0x0000000180047904 in _cygtls::call (func=<optimized out>>>, 
>>> --Type <RET>>> for more, q to quit, c to continue without paging-- 
>>> arg=<optimized out>>>) at 
>>> /usr/x86_64-pc-cygwin/sys-root/usr/include/w32api/psdk_inc/intrin-imp
>>> l.h:790
>>> #12 0x0000000000000000 in ?? ()
>>> Backtrace stopped: previous frame inner to this frame (corrupt 
>>> stack?)
>>> (gdb)
>>> 
>>> The ICA reference reflects my Citrix connection to a virtual Windows 10 desktop. I am working in a corporate setting however I do have admin rights to this virtual machine. Based on "connection refused" my hypothesis was our Windows 1909 push may have blocked ports Xwin is using. If there are specific Windows Defender Firewall rules that are required I would be happy to put them in. The bit of firewall setup I've tried thus far has not helped. This backtrace though makes me think this may be a keyboard configuration issue.
>>> 
>>> Any advice and guidance on how to debug this problem will be greatly appreciated. Several on our development team rely on Cygwin/X and are rather unhappy to now be restricted to command line tools until we can get this resolved.

>>This is a crash in Citrix, so I'm afraid the best (and possibly only) people who can debug this are Citrix...

>> Just Googling the faulting DLL name did I find [1], which seems to indicate you can turn off this hooking with a registry key.

>>[1] 
>>https://helgeklein.com/blog/2015/10/citrix-xenappxendesktop-api-hooking-explained

>Jon, thank you so much for your response! For a brief moment yesterday X-Windows >started. This occurred after I set:

>Flag = 0 under:
>HKLM\SOFTWARE\Citrix\CtxHook\AppInit_Dlls\Multiple Monitor Hook

>I then removed:
>xorg-server-cygwin-crashreporter
>xorg-server-debuginfo

>Rebooted and tried again. Alas, back to "Connection refused." I reinstalled those >packages but the problem continues. I ran gdb to get a backtrace this morning and >we're still seeing the same stack:

>#0  0x00007ffa0af83b19 in RaiseException ()
>   from /cygdrive/c/WINDOWS/System32/KERNELBASE.dll
>#1  0x00007ffa0a032086 in ?? ()
>   from /cygdrive/c/Program Files/Citrix/ICAService/cxinjime64.dll
>#2  0x00007ffa0a031afd in ?? ()
>   from /cygdrive/c/Program Files/Citrix/ICAService/cxinjime64.dll
>#3  0x00007ffa0a031695 in ?? ()
>   from /cygdrive/c/Program Files/Citrix/ICAService/cxinjime64.dll
>#4  0x000000010040df3e in winConfigKeyboard (pDevice=pDevice AT entry=0x80027d720)
>    at ../hw/xwin/winconfig.c:274

>I asked one of our developers who has a company laptop (i.e. VPN access, not Citrix) to test his setup. It works. Thus the problem does seem to be Citrix related. I've now reached out to another developer who is running Cygwin 2.11.1. I believe his copy is running while he does use Citrix and Windows 10 1909.

>That's all I have for now. The chase continues.

>Kind regards,
>-Randy Galbraith

One of my colleagues discovered the act of change HKLM\SOFTWARE\Citrix\CtxHook\AppInit_Dlls\Multiple Monitor Hook\Flag from 0 to 1 and back again can be a work-around. Immediately after this key is changed X-Windows will start. If one does a reboot X-Windows will fail again. Change Flag and X-Windows works.

Not ideal and we would still like to figure out what is going on, this does get us back in business with X-Windows.

Kind regards,
-Randy


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