coredumps and/or CPU eating zombies after dlopen/fork

Takashi Yano takashi.yano@nifty.ne.jp
Sat Nov 26 01:43:19 GMT 2022


On Fri, 25 Nov 2022 14:22:15 +0100
Dmitry Karasik wrote:
> Otherwise, to reproduce, download and unpack http://karasik.eu.org/misc/cygwin/cygwin-gtk-dlopen-fork-bug.tar
> and run ./try there.

Why do you include windows.h in test.c?
I encountered following error.

/usr/include/w32api/processthreadsapi.h:165:11: Error: expected identifier or ‘(’ before numeric constant
  165 |     ULONG ControlMask;
      |           ^~~~~~~~~~~

Removing #include <windows.h> or adding
#undef ControlMask
is necessary to compile test.c without errors.

With that modification, your problem can not be reproducible
in my environment. The result is as follows.

not expecting a bug
child existed with 0
expecting a bug
child existed with 0
no bug detected

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>


More information about the Cygwin mailing list