Re: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6

2022-01-13 Thread Takashi Yano
the same happens even with pthread rather than > > win32 thread functions. > > > > #include > > #include > > > > void *thread(void *p) > > { > > system("true"); > > return NULL; > > } > > > > in

Re: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6

2022-01-13 Thread Mark Geisert
2; i++) pthread_create([i], NULL, thread, NULL); for (i = 0; i < 2; i++) pthread_join(threads[i], NULL); return 0; } Executing above code results in hang with message: 0 [waitproc] a 786 proc_waiter: error on read of child wait pipe 0x0, Wi

Re: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6

2022-01-13 Thread Takashi Yano
in32 thread functions. #include #include void *thread(void *p) { system("true"); return NULL; } int main() { int i; pthread_t threads[2]; for (i = 0; i < 2; i++) pthread_create([i], NULL, thread, NULL); for (i = 0;

Re: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6

2022-01-13 Thread Eliot Moss
On 1/13/2022 1:40 AM, Jay K wrote: I don't know why I didn't get the reply in email, but this is representative of the real world code.  - Jay From: Jay K Sent: Wednesday, January 12, 2022 6:27 AM To: cyg...@sourceware.org Subject: Re: proc_waiter: error on read of child wait pipe 0x0

Re: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6

2022-01-12 Thread Jay K
I don't know why I didn't get the reply in email, but this is representative of the real world code.  - Jay From: Jay K Sent: Wednesday, January 12, 2022 6:27 AM To: cyg...@sourceware.org Subject: Re: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6   Ok, here is a small

Re: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6

2022-01-11 Thread Marco Atzeri
On 12.01.2022 07:27, Jay K wrote: Ok, here is a small demonstration of the problem. #include #include #include 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

Re: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6

2022-01-11 Thread Jay K
, 000, 000, 000) End of stack trace 0 [waitproc] 1 9269 proc_waiter: error on read of child wait pipe 0x0, Win32 error 6 1078 [waitproc] 1 9269 proc_waiter: error on read of child wait pipe 0x0, Win32 error 6 4452 [waitproc] 1 9269 proc_w

Re: proc_waiter: error on read of child wait pipe 0x0, Win32 error 6

2022-01-11 Thread Jay K
AM To: cyg...@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 0x0, Win32 error 6 452 [waitproc] cm3 7641 proc_waiter: error on read of child wait pipe 0x0, Win32 error

proc_waiter: error on read of child wait pipe 0x0, Win32 error 6

2022-01-11 Thread Jay K
I get this a lot: 0 [waitproc] cm3 7641 proc_waiter: error on read of child wait pipe 0x0, Win32 error 6 452 [waitproc] cm3 7641 proc_waiter: error on read of child wait pipe 0x0, Win32 error 6 716 [waitproc] cm3 7641 proc_waiter: error on read of child wait pipe 0x0, Win32 error