From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from de-smtp-delivery-103.mimecast.com (de-smtp-delivery-103.mimecast.com [194.104.109.103]) by sourceware.org (Postfix) with ESMTPS id 56FF33858D33 for ; Thu, 4 May 2023 15:10:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 56FF33858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=vector.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vector.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vector.com; s=mimecast20200527; t=1683213007; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=7CPr8hetNxoS6buGREUFKisnMzM8ePFCxggdH9Bhoso=; b=Twti/I1fRNfXBN/9Krgfj8Z7msP94nlqylr64ZKdpVxzCPvoJthBrXqxfZQjrW3CTCDa8y PrEP3RteCWS5sW3wZgZ4CvHQlpmE4bM6LGbqx+oOs2L3tLIWilNIifDyyJuRANcnXQMX+8 gQwPJ6Mnn+FewY5Sq/+1uJo1W8xJZuo= Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02lp2237.outbound.protection.outlook.com [104.47.11.237]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-17-9Ric2MbDN6m1VpbkQb_QaQ-1; Thu, 04 May 2023 17:10:05 +0200 X-MC-Unique: 9Ric2MbDN6m1VpbkQb_QaQ-1 Received: from DB7PR01MB4762.eurprd01.prod.exchangelabs.com (2603:10a6:10:64::16) by AS8PR01MB7191.eurprd01.prod.exchangelabs.com (2603:10a6:20b:23a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.26; Thu, 4 May 2023 15:10:04 +0000 Received: from DB7PR01MB4762.eurprd01.prod.exchangelabs.com ([fe80::bc8e:52fe:4250:ec61]) by DB7PR01MB4762.eurprd01.prod.exchangelabs.com ([fe80::bc8e:52fe:4250:ec61%6]) with mapi id 15.20.6363.022; Thu, 4 May 2023 15:10:04 +0000 From: "Kacvinsky, Tom" To: "cygwin-developers@cygwin.com" Subject: stdin, stdout, stderr when GUI app is launched from command line Thread-Topic: stdin, stdout, stderr when GUI app is launched from command line Thread-Index: Adl+mN8EzIz1yrnwTPOkLNbw15M1wg== Date: Thu, 4 May 2023 15:10:03 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DB7PR01MB4762:EE_|AS8PR01MB7191:EE_ x-ms-office365-filtering-correlation-id: c74f1653-c6b3-4d6f-0106-08db4cb1a389 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0 x-microsoft-antispam-message-info: 0Z+RlLyPPQOlecNQgp1OTvk0q2NJmKAkyTrd8jfkBwhPKqWGoZ4ixUnF0uN0Srx6kS/JoaTuRYsqNecuqo+V7dDuNDyOWEFeUpUnvcXIsDvbHVHf0T0fttlxEf/tOWM7FgDSte3HG6pejdcxI70lyhY02fd2xMw9picNQfELT5JLirLFwrjpYSgaTWMMaqF3eJ5jINtp6GAF2PEEOrfmT+bgKGi0F9NAa+GEFY6ak06BgQbUpENEGOShgLz73ExO47dehEgnvjjRHpfSPUNoHU6JjBHC+BLwfoYmYIdifRZvI4/qveo5oDEJbDk/7bsd0/I3LstLN4KO6Dz+SCNsXZ3D9LxH5i8Gets1Yso+7Pkqxmx2fuXKe6p3Dytl/yK5SevF06Ui2Sc1ivz7GdJTVQy87x7JtDCxJkgsZO9vErQxgMBhD/NABsnCWQCsLMqMdjfW2Sx3GkMzdS+bLmlPIrE/H06yZ2njpkb622vdzeD7gNZrUWUojH/Csp8BPiSJ6U8G/8A7kOKfqfr16sysj0ALZuT0ocbYSu8Lt0BsKR+46o6Fv7TOuTEMFKwmySwNhn5KsYf1FbTTpz2Jddg0O0J+H6lQIM7vOGcFnJg2a9gy9baOb9bt5xrFknlEzSP2ogsOITb0NdAW+8SqEVnySQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR01MB4762.eurprd01.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(39860400002)(376002)(396003)(136003)(366004)(451199021)(55016003)(5660300002)(8676002)(122000001)(478600001)(38100700002)(52536014)(8936002)(6916009)(6506007)(86362001)(66556008)(66946007)(76116006)(66476007)(66446008)(7696005)(9686003)(83380400001)(64756008)(26005)(186003)(2906002)(316002)(33656002)(71200400001)(41300700001)(38070700005)(460985005);DIR:OUT;SFP:1101 x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?bKzo31DTP6TOOl380Ot9iHcIZ3o60fDjnvZlni8maROmCDX7Utvit7IyJCEp?= =?us-ascii?Q?ogb48nngiZ6PHikVeHyBZnp9Fz+w5saDBDEeqYsnY7kGBCokpeB23AtzTdYy?= =?us-ascii?Q?GGFdWPAtw24kXrNYYtOs3xnzjwavFh98eyeoeUNddzIBw3dtWVNy83bONS4y?= =?us-ascii?Q?2/Up1gnP6VCgsBH4gSXTwhnYqiR62mnH9oWTVGImqd8NV2udioY4DdqHFRcj?= =?us-ascii?Q?8XHeYvLCrwFx65h+d2GNIMYGNukY7ERSHBwMCDOG/BFKuPDr/Lfte2i9uMhI?= =?us-ascii?Q?gM3G325QFu6x0rW6CBjtw5OUpaleQtCYsIvmVlawDopVdVjYEofRigh9KHp5?= =?us-ascii?Q?zPvG8khpcisLWD47GQJBzK0RZj7edWmF9TYEIi94dIeY+slomxmZes5NSyVz?= =?us-ascii?Q?JNhv9D8kpC1Ua4koviSKEdd+2ZBnYdgRrtKRo9kM+dz4uqw4MdycgvaLTU9+?= =?us-ascii?Q?/8z3pier0M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hBU0tZKiB?= =?us-ascii?Q?JgPGRjO9EkUV+2Px5KLrYUftuWd6/udK0JSuP12PjN+emm0XIUOi/74RP3wH?= =?us-ascii?Q?R6nLYM+aKOeboGM+g2jBkUPcKEeuzbd9wU7O9E0pNig6PxBPyqABe1/hePOU?= =?us-ascii?Q?pxF7wuHXr4tIRhwEGfkHt4f/hvR2GwGXukbGr9CNlpEquwjd/kIRU2lkQRI5?= =?us-ascii?Q?UnfGETRrK5kFZJGbbr8EcoIrTdMcJKBKT58Ynvh1?= MIME-Version: 1.0 X-OriginatorOrg: vector.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DB7PR01MB4762.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: c74f1653-c6b3-4d6f-0106-08db4cb1a389 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 May 2023 15:10:03.9231 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: c844b2b9-7a68-473f-b386-e2e1b968279d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +FlbkFMbLk5kLPWneqaEwSh0CNu242/3w2Sk7fmnB9vyRml/xvgvJB6nxPvkKyLYKjci3OJWwG9YMLfwlLqZFm4ZEfX9x9VtqNDq9PEVnEk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR01MB7191 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: vector.com Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_DB7PR01MB47624877D2D2E627618478468D6D9DB7PR01MB4762eurp_" X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --_000_DB7PR01MB47624877D2D2E627618478468D6D9DB7PR01MB4762eurp_ Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable I have a Windows GUI app that I have set to run with Windows Application Ve= rifier. In particular, I have App verifier set to trigger on invalid handle excepti= ons (code is 0xC0000008). When the application is run from the Cygwin console, it fault= s with an invalid handle three times. I can continue past them in windbg (or gdb = for that matter) and the application launches. I think it is curious the invalid ha= ndle exception occurs three times - is it stdin, stdout and stderr that App Verifier think= s are invalid handles? My hunch is yes, they are. I did notice that if I run the GUI use run.exe, as in "run guiapp.exe", the= application launches with no invalid handle exceptions. I am using this version of Cygwin 64 vapkay@US05117NB ~ $ cygcheck -V cygcheck (cygwin) 3.1.7 But it also happens with 3.4.6 Is this to be expected with a GUI app when run under a Cygwin console? I'v= e never seen it until I ran with App Verifier. The GUI application is a Qt app. I= check the Qt version we're using for use of and I don't see anything in the WinMain what= would have to do with reading/writing to the standard IO file descriptors. Any ideas? Thanks, Tom --_000_DB7PR01MB47624877D2D2E627618478468D6D9DB7PR01MB4762eurp_--