X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 034823861038 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1621529776; bh=348WUL9oUf4JRbwEPV+5D4l4GxxKftv0pbG1P8TNxvA=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=p3Ly8ARZVseC4U5IUl1Ii8MXY/J60r9uT1bkr0QMBCp2ZD+4IgnEBkkIqWHrRpVgm yzdbmxWUNgG2Ku8AzYsBwhjs/MlwlPOsX82Cr5e3dj2KzIKKhNvZZLcXCU8fiA0Ft1 Q63F99BtvLiNU4H2++ySizvDC0RfMgkvhlFSz39k= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BFD5B3861038 X-MC-Unique: XSu9XjekOoKV-DTN-hfd5Q-1 To: "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: AddNluJaumYPKi7HSBWjH8ATDmzZLw== Date: Thu, 20 May 2021 16:56:05 +0000 Message-ID: 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: fd9d1f5e-ade3-4aca-64b0-08d91bb0289a x-ms-traffictypediagnostic: BYAPR06MB6357: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0 x-microsoft-antispam-message-info: xwFqn2v4K3eSH4+2guDMHfrvoxpu3vBKbOjRIKCxzB5jkzz7Z6Dba/dLdtAw1AnFrVX48fsqT3jSIJA0ibb3xaUyMD69yx9qMrz4eBe/+geUronJoO9bOD8d6dpMQTFoINZoNshMV+nnk1vM6D/gY4Y8engCJztV08mav6Y0vAFuYftauvjVxWu8ENue58JkEv0mhOmo0ahwg8Tndei7JIvLOVYaqzkEhdSZImFywVMyZwIjyx8zpz7NNKLLfGDWwNjqboSc2gtzz++fMzk5JMVyVQzLD+cSqAdjGX7NpzAPyMQB4TFFtKNS+oRShDa5uECSRlcjmRnfKL0UlV7U3d8Jw8hVD5piU7he69008v7biy4Dht8YcbQNWk6J9bsYndKAk/GLMuGLFGGNTLa2RtGHnuGOjA31hanLEsEJBui+y/WRGj0uT2eFC9A+S0FH1PHKHUwsX86WSKN2uXLQWbYX+pbJGo1nSy4loGSyXAo6t1zxJXCj9/4H9jRwceZ6gX4v0DUuunkP4T9teG/y65COHAhdboj9xsqR/ht13547limmcqEUUVoG6iIFJREtEmW4ts5JiqaeHsZhRdwugT8mPayzCvUbSSdVdFu+r2QyYIgOSjMzzywLNML4vAxm1MX8rk/HAmVeNq2787o3mQzEY/xE9OJPUjYyMNKhinkRU7S7jqOafzwFSB3BJeDc+uop7jFHLA25K2+ub8Kf7A== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR06MB5287.namprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(376002)(396003)(39860400002)(346002)(52536014)(8936002)(122000001)(66946007)(38100700002)(19627235002)(6916009)(6506007)(7696005)(53546011)(71200400001)(5660300002)(76116006)(8676002)(316002)(478600001)(9686003)(966005)(33656002)(55016002)(2906002)(86362001)(83380400001)(66556008)(26005)(186003)(64756008)(66476007)(66446008); DIR:OUT; SFP:1101 x-ms-exchange-antispam-messagedata: =?utf-8?B?ME1JYjYzT0Z6SlJqdTBVV2NncFZHTmw3YjFlZTl5ZHFFMDJ4Tno4MzVZSnpq?= =?utf-8?B?QkNVQmNOT2tPM3lHMVFQcHdZZTdQbTJxWmMyOUd4dERWL0FnekUrWld5VUg3?= =?utf-8?B?WDRDZG12L1d3VWw2ZUp6Y1ZEUXlwSXdzUERkek1VRDNBdTdXS1BmQWRLSlI1?= =?utf-8?B?Y1BEUlVjL3puMnRBN2FUU25yQzVYU2tWcHI3V2JJVmhUQkR1Uk9YUmdmTndo?= =?utf-8?B?R3VEU0RzcWxaeHJOdFgxeVdKVzF1ODJzY2VENWI4eGJLekVSNlhnOEZ4TWd1?= =?utf-8?B?SFFSUjJzZDZIWHQzTnozdVNrWXFtcktWaWNDWjhWdXFYSmZNSk9ubytYOThY?= =?utf-8?B?QkFhVXQ2d0lZN0JpMEo4bU4yZEt2VVRaYzZDenUvN0lMU2NocHZ6b01KUjVN?= =?utf-8?B?VUZHNFdkMTRqSUlKV1pnUWpHWHh2N3BXRlhEVjFGNVlIREc4OXc5MzF0Ym9J?= =?utf-8?B?bU9NaSsyOC91cnMzOUozbUMyTERIYTlQUmNxNlcvQWNJeHJ4czk3UXVERU16?= =?utf-8?B?dVVUcFAyTDFHc1VDc09neG94Z3VCU041MHhWb1dncWNGeG5uQmJXVG03eHdu?= =?utf-8?B?dGo4dHBvTTBYWDJTMWJTMk5CM292Y2hBQXdSM2JGRWo2R2xlb3MxVG9zRVli?= =?utf-8?B?a0dpdFhIMStXNkY4eG55WUFVVnpVSGxIR3ZSVVRic3Vaa0dHQ0hCd3F0b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llU0s0TUJMZXlUb2VO?= =?utf-8?B?NU0vdU0vOHNIVVI1MWdSVjdvSmMwWjJHaTFERG1PVjduQnVRR2RSQWg2V0xj?= =?utf-8?B?RDlKQUdnTzBTZE5SUVRrS0lSeVRBQTAwaWVpbHRNZ3BKL1Azc24xRWlnNGN0?= =?utf-8?Q?7nI0FeqbGwOfgpJovZUtFn5mMLhEirZZljBhK7+?= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR06MB5287.namprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fd9d1f5e-ade3-4aca-64b0-08d91bb0289a X-MS-Exchange-CrossTenant-originalarrivaltime: 20 May 2021 16:56:05.7527 (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: aACu4/TgDIWCoCXhuly7GsFU6bLy12DNVbZK8T4OCDDFhQKGuiT/CfQee09Z7ouPs+ZDfrH7HxNjGJY9W1aD0ya9h+c6d/p0sFRLuWIIzHs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR06MB6357 X-OriginatorOrg: CVShealth.com X-CFilter-Loop: WVMP-VTSPSB-103 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: cvshealth.com Content-Language: en-US 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 List-Archive: List-Post: List-Help: List-Subscribe: , From: "Galbraith, Randy via Cygwin" Reply-To: "Galbraith, Randy" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" 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/winconfig.c#L274 >> #5 0x0000000100410f36 in winKeybdProc (pDeviceInt=0x80027d720, >> iState=>) 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=>) 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 >, 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=>, >> --Type > for more, q to quit, c to continue without paging-- >> arg=>) >> at /usr/x86_64-pc-cygwin/sys-root/usr/include/w32api/psdk_inc/intrin-impl.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 -- 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