X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0E5453858416
Authentication-Results: sourceware.org;
 dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=message-id:date:mime-version:user-agent:subject:content-language:to
 :references:from:in-reply-to:content-transfer-encoding;
 bh=kLWFW2gpf0jdSt10PSkTHni/LHocVObnqxfUUQOIQ4g=;
 b=pwKqPRLwJkwoK+wtd9CHoOAFrrrpAbm7wqq/Uw5x2okzVQMyqbTatozxRG3xnzyNlG
 JLcD4VsRyt4pqbjzHTGbEoST5ZubYFJqlPzDaKYMnWRiVgRBF/vY4q3prIv3/FudKYFI
 vgZrpbC72+4/KwUJnbmh4nL4UqdOvJy/x8Zl0z4qO4ZpDgS4jCmEFktyjJhe84eYiYgT
 zQZei9dRs/b19JnqRifthDuJu0qDASks5xfV+eSEGVm4Rt1XgTXB0Iol1BA9AcdOt4jZ
 6peCC3/DkdwH9Vuqe3bOfrsex8RCBg+7WvNe6qcv3c4HzGrWftHh6bhVO1MOl9rbOghG
 pLNg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:message-id:date:mime-version:user-agent:subject
 :content-language:to:references:from:in-reply-to
 :content-transfer-encoding;
 bh=kLWFW2gpf0jdSt10PSkTHni/LHocVObnqxfUUQOIQ4g=;
 b=wlXmaGuuB1TwbL5HJV0hzMr+1mnTqCSZ7f1K2JqVGinF3UgrxUJSKU9pvVmIKv9jxQ
 WQ7uv/02FUk8R/s5ZD3HNS/YpVyZEPRRNoLhucwgVCxvvDLU82HVqNto1+zMXQkqaAoz
 EYlTOxWN1d6BIhtc9hOwWsJ5ItwTBVLYmBFXYXIADsAxz+w+7mE0Ny2Ad1C/DVJ2Kt/F
 1BTElmrSNQ1i411YLcex1qHnQx9FpFxjDi98xvXVuVeFJC0qa+1NvvRQ0nSPQUvMFvuv
 TW/rdLpVZ0ZVMO133FfLYz1X0l+Zp6LsnGum64OIapiIQOWdBQ/wn5HTKT6nFITvJqgu
 6Qcw==
X-Gm-Message-State: AOAM531IP/5NsW/nKj0CIleWtshZyTYUVga8zliMwQDux+Kvzu1Vpopd
 wXgloK+fI5mJIIkbUSER1vu3GwvQAOo=
X-Google-Smtp-Source: ABdhPJwsm6iy2OT6luRJasfSM5U5t0VNNXC6Uuskurv/hwQIsKURGjKT8xJ4F5Up7PrOQGfUQi1GoQ==
X-Received: by 2002:a7b:c34b:: with SMTP id l11mr5504666wmj.56.1641969702949; 
 Tue, 11 Jan 2022 22:41:42 -0800 (PST)
Message-ID: <9b20c19a-b075-1dd3-d9f3-8cf53c51b1e5@gmail.com>
Date: Wed, 12 Jan 2022 07:41:41 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
 Thunderbird/91.4.1
Subject: Re: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6
Content-Language: it
To: cygwin@cygwin.com
References: <MWHPR1401MB1951673B53610E3D45F15235E6529@MWHPR1401MB1951.namprd14.prod.outlook.com>
 <MWHPR1401MB1951AD1FD95142752195EF0DE6529@MWHPR1401MB1951.namprd14.prod.outlook.com>
 <MWHPR1401MB195104100F4D135F78351B86E6529@MWHPR1401MB1951.namprd14.prod.outlook.com>
From: Marco Atzeri <marco.atzeri@gmail.com>
In-Reply-To: <MWHPR1401MB195104100F4D135F78351B86E6529@MWHPR1401MB1951.namprd14.prod.outlook.com>
X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT,
 NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On 12.01.2022 07:27, Jay K wrote:
> Ok, here is a small demonstration of the problem.
> 
> #include <stdlib.h>
> #include <stdio.h>
> #include <windows.h>
> 
> unsigned __stdcall thread(void* p)
> {
>    unsigned i;
>    for (i = 0; i < 100; ++i)
>     system("./a.exe");
>    return 0;
> }
> 
> int main()
> {
> unsigned i;
> HANDLE threads[100] = {0};
> FILE* f = fopen("a.c", "w");
> fprintf(f, "int main() { return 0; }\n");
> fclose(f);


so you are mixing Cygwin and Windows calls ?
That is looking for trouble.

Or it is a tentative to produce a test case ?

Regards
Marco


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