From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12olkn20829.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe5b::829]) by sourceware.org (Postfix) with ESMTPS id 065353858416 for ; Wed, 12 Jan 2022 05:57:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 065353858416 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=hotmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=hotmail.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TMKiSwyUHWh3ZfipQ0c6cJSLGoMT5h21f47ECDin9v6NgvZ2FkAldu2saVU4zcvOKfy654z4/Lbr5hwD3SeA2vzjTzEXrv8ODM3E6ji4tGiX322Uk7gKyZ0fFGYsWkQFhT21bvH1qX43FOTpzqXDR2EJlSrlhh3JklSa+7EekrajhiwAuKOZY6jezIT7ImIdonGIz/bSrFRPPHGnZY88smxp+8PjV9daW2EgdT4Nwyf7U60D6cDA0FXqnh91wcw80HtzBYQOV6NzubHdyntfyEVSQtPdzgBXUakK597+JLs90+bX+r2Hy6kcPdAtESPCAryi+V9nQzS4bcYcfARHtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8Ad9cpu0nDoIXPX0qBP+bmJDmfO0clLY9+6upJ/XVzA=; b=AgLTFGrsVDlKoHOkp5CEoB+O7Qq4AJhT1NXVdA6oUmbULMNTLNYOFuvJr6XWBR9nbxt4l2qX/F0Z8dZFKlUuiNraQvFDjSu3GtgUu6mD95yQHGhAdKmqsODIKy+HCtR5STOkuSxm8hWEFdalsiTxR79lZAEGVY83FjB1WcmBKO2y6bxlYlRSlitAOtevmTA2gPqdORBdA+bvmoO8CdH4vAQVxjbtrFUp1+WgwkLaSX/0fsOIoNoP7EtRCnOJfXeIjwKROTvNu1g+CU3O2PKV3T0123n5d/OC9whsIdYNNmZwzb820ADH3fMcFN5wNdWS8cvIfOE66DnOwPj9D0LNiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8Ad9cpu0nDoIXPX0qBP+bmJDmfO0clLY9+6upJ/XVzA=; b=WHnXvu55wR45o+GdwQh50xhRoIlqkKs3g0nbzbkJnZNuJ0namsbsBiqhOAWrYXQRO3HPe+RoDMYHS3Dwhnx7WkGqw9etodM65jhR8pahHHcH9LGQ9pKQl7tUwmJnzY+RexYpBJXuyysBzxWQ7EALbqhejFRQx5PFzZZZP6vmjSQuHnDQEV645u9GymcQBeinZ/8LM1X6W35q/qmNo01uaXgMnv3TRwgQ8nulditkwU+hTqqLSuuQqIgqyv2ByPsKrV8QE7qf3v3tVlZZwSfLV+AMZplno8xocc/MzjPvYiD0OkgXxktGRrdp8iSWq1c5ksUM1VkR3G3Vww1Y3kbkUw== Received: from MWHPR1401MB1951.namprd14.prod.outlook.com (2603:10b6:301:51::14) by MWHPR14MB1135.namprd14.prod.outlook.com (2603:10b6:300:88::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.10; Wed, 12 Jan 2022 05:57:58 +0000 Received: from MWHPR1401MB1951.namprd14.prod.outlook.com ([fe80::8495:3da8:b662:52b5]) by MWHPR1401MB1951.namprd14.prod.outlook.com ([fe80::8495:3da8:b662:52b5%12]) with mapi id 15.20.4867.012; Wed, 12 Jan 2022 05:57:58 +0000 From: Jay K To: "cygwin@sourceware.org" Subject: Re: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6 Thread-Topic: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6 Thread-Index: AQHYB2nj9o7DO18hu0uLIYEA7DQjfKxe43cY Date: Wed, 12 Jan 2022 05:57:57 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: 71c95b45-2f42-e842-7089-a9c2f9bde110 x-tmn: [MTk3znRj2t/2DNZq/8FsKqL57k9gnkkrZpyV7lT6tyNB+nGLBwQFKS5F1gDgOBXV] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f970dd32-a0d8-4269-b347-08d9d5907be7 x-ms-traffictypediagnostic: MWHPR14MB1135:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: sp0IHaSp+5AfmWZULwJgOPowbUoZL7QX8+0VLKVJ5HiMWjQIphuOTmPatqjuX3OOwHXKQnFP0vHQ2U2B5vJItk9wWQTfW+TCC8nO3UaH6m10krHTulhvN1CFbBBSye+M+Qxu2icA/i1X/BWyfBLBK5jL8xZ219CVufGdeLxqHMy8A+H+jlUiJ8QftJ1OXNjT/3US3QJWy9RovsfMks751S1E4x98ba9Vvazph5+TKq1Iz0zvArgZvsKyz3EIY5XHk/jqXg6HhQil5BHu90JSpsJNQg6jx4zJiy7/F1RTb1LDadJM3AuBzve16+usLEYYSt0+JVeWA7xqQXZnLLNGVKgDVzSHgS5gmI0f9J+ZakNxEVKhSx3kxr2+63P30AzBj7Y/wAOGGIiVd3JcGUeOmAweQ5AhfN0J0LS91YSyuo0Jo3OcLMpNWARCpyImyhrl1XUhaehH4ajPm7X42GimZ7W624rs1udL1DKJ91Ib48uj5Cr6AmoYAQqLUVTofo7QvDfDTHBmnpxkXc3her9iOpEzSYs15qxzSOaKU+H0YyDvzxH4HbzsEZPOOHtrrYG09p7j2hDQyNEw3klSJSJC5g== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?3cCGKx60S/EqsBrl6YUL8byqdBEra1BZzO+pZ9OIspiK9SGnAHhDmUwxrs?= =?iso-8859-1?Q?12L92Q9YpVIebupKLr3MqGCJ/KdbnZOimrITAW2Jy441vkPRCzLc4BHZm3?= =?iso-8859-1?Q?gmM/eZXID0mz5JBJGdpSx9OdsBF5eZmAdhKs9bvDQn30dwsEJpxdON+rmp?= =?iso-8859-1?Q?1A6Yx2E1/mxvCD4eYP7QqpFNzFzTj6zZF4u0VycWCqCrGvgRoa3gIZDtca?= =?iso-8859-1?Q?/sobKBVLNp2qd/hv3FJh0thgLeHeUjuJ/2IE4wWjPXv+f7er70Hf8NWy3j?= =?iso-8859-1?Q?kDwwjSIigI+4fI2csUTtJmC00ycdjcoeF9x5vm8mgGauysX21csNzNo4m5?= =?iso-8859-1?Q?3ulXxghcF3CHgfp9z4QCb/CK0j4izqRK5wwKSj3zwhm/Iu4xR4JyIx24dY?= =?iso-8859-1?Q?F9AeMuBjCdioeIAriXOJf3B8vwh9i/0QNifYZONcpHNBULgkXAUSI7EcNv?= =?iso-8859-1?Q?Pl7iibTzOK+x4Vw1e08n2e+7hEVI0OL6UflnA5b0Afby590l4D8UTO7iVv?= =?iso-8859-1?Q?IoUuPWmK5sFMnxGhGbluUUrM/iiWRWHalBF7ebEPP0GFquOU4H/xp680Bu?= =?iso-8859-1?Q?dKILSmlLxcJbpNUQNutc+uAZCO4RZ6vuS0WERxY8cCsZPr/KiST21AsgUa?= =?iso-8859-1?Q?V7+8GeKxvwHHWgM/jLrGITirX/8EKATK22Ulw9PbIO4yhbwUvlFKILGOw6?= =?iso-8859-1?Q?6BPa6Q5QWCAkhwxxdrdldA3EPrB2aEHstZ5g+UizLryHE7eAyYyUEl0rzW?= =?iso-8859-1?Q?NX9Z/NBR7Ijy4yIiJMZWZ95r0vjPEz+7zrUbyVyEBOPIUQmxfqTg2lSZOG?= =?iso-8859-1?Q?+uFxCns5MZOF175iQW4x2NCtdlCuXDOF+Axdz56vWzNb6ictcZE3f6WnVE?= =?iso-8859-1?Q?5Vveb2zXTdt3cZO2lGH6IpgSNxYzESzurJLIEN4ed+5fW7WtuK/xgV/1gh?= =?iso-8859-1?Q?olD5QCd7/Wz3U2OvPfdcSimJxW9r4/SCx8BLwf6XwaYk3d2CLhI2Z9QdtE?= =?iso-8859-1?Q?dOnSI7AOn+ZVu3PvUoNImq/D1ZF6FL1Fe29Qit?= MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-cd57b.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR1401MB1951.namprd14.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: f970dd32-a0d8-4269-b347-08d9d5907be7 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jan 2022 05:57:57.9487 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR14MB1135 X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, KAM_NUMSUBJECT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2022 05:58:00 -0000 Um, I know this isn't (yet) diligent/scientific, but must system create thi= s thread? #0 0x00007ff811e09e47 in KERNEL32!CreateThread () from /cygdrive/c/WINDOWS= /System32/KERNEL32.DLL #1 0x00000001800468eb in cygthread::create() () from /usr/bin/cygwin1.dll #2 0x000000018010645f in pinfo::wait() () from /usr/bin/cygwin1.dll #3 0x000000018012e562 in proc_subproc(unsigned int, unsigned long) () from= /usr/bin/cygwin1.dll #4 0x0000000180134e85 in child_info_spawn::worker(char const*, char const*= const*, char const* const*, int, int, int) () from /usr/bin/cygwin1.dll #5 0x0000000180136729 in spawnve () from /usr/bin/cygwin1.dll #6 0x0000000180136d05 in spawnvp () from /usr/bin/cygwin1.dll #7 0x0000000180144683 in system () from /usr/bin/cygwin1.dll #8 0x000000018018effb in _sigfe () from /usr/bin/cygwin1.dll #9 0x000000010052884b in QMachine__ExecCommand (t_L_563=3D0x448ef0 "\260\3= 24\005", 'cause i.e. it complicates any lifetime/management. I do understand some of the problems here, like needing separate threads to= read stdout/stderr, if they are not equal. - Jay ________________________________ From: Jay K Sent: Wednesday, January 12, 2022 4:12 AM To: cygwin@sourceware.org Subject: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6 I get this a lot: 0 [waitproc] cm3 7641 proc_waiter: error on read of child wait pipe 0= x0, Win32 error 6 452 [waitproc] cm3 7641 proc_waiter: error on read of child wait pipe 0= x0, Win32 error 6 716 [waitproc] cm3 7641 proc_waiter: error on read of child wait pipe 0= x0, Win32 error 6 1652 [waitproc] cm3 7641 proc_waiter: error on read of child wait pipe 0= x0, Win32 error 6 0 [main] sh 7775 C:\cygwin64\bin\sh.exe: *** fatal error - internal e= rror reading the windows environment - too many environment variables? Scenario is multi-threaded "launching" a bunch of invocations of gcc. "launching" was usually spawnve or fork/execve but I changed the code to us= e system and it still happens. I might try to make a small reproducing, if this is not known. It seems a bit difficult to believe I could cause this internal looking err= or. Thank you, - Jay