Re: fixup_mmaps_after_fork errors building ruby 3.4.1 with high make -j

2025-01-22 Thread Corinna Vinschen via Cygwin
up here: > > when building ruby with a high -j value (I'm doing make -j21), I get > errors of the sort: > 0 [main] miniruby 9272 fhandler_dev_zero::fixup_mmap_after_fork: > requested 0x6FFFE6A6 != 0x0 mem alloc base 0x0, state 0x1, size > 17545331867648, Win32 err

Re: fixup_mmaps_after_fork errors building ruby 3.4.1 with high make -j

2025-01-21 Thread Jeremy Drake via Cygwin
On Tue, 21 Jan 2025, Jeremy Drake via Cygwin wrote: > I did not see this happen with ruby 3.3.7, or when building with -j1. Sorry, spoke too soon, I did see this immediately with 3.3.7 as well. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/fa

fixup_mmaps_after_fork errors building ruby 3.4.1 with high make -j

2025-01-21 Thread Jeremy Drake via Cygwin
I've been trying to track down why ruby 3.4.1 is failing to build for msys2. I've now confirmed that this same issue reproduces with upstream Cygwin 3.5.4 and 3.6.0-0.335.gb879cd1661ad, so I thought I'd bring it up here: when building ruby with a high -j value (I'm doing make

Re: How to make Cygwin handle Unicode symbolic links?

2025-01-03 Thread Larry Martin via Cygwin
> $  head openssl-1.0.2p/include/openssl/des.h > /* crypto/des/des.h */ > /* Copyright (C) 1995-1997 Eric Young (e...@cryptsoft.com) >  * All rights reserved. where Cygwin _has_ followed the symlink. In emacs, the symlink in question looks like Unicode: > !

Re: How to make Cygwin handle Unicode symbolic links?

2025-01-03 Thread David Dyck via Cygwin
the "good" system, the same command goes more like this: > > $ head openssl-1.0.2p/include/openssl/des.h > > /* crypto/des/des.h */ > > /* Copyright (C) 1995-1997 Eric Young (e...@cryptsoft.com) > > * All rights reserved. > where Cygwin _has_ followed the symlink

Re: problem with make 4.4.1-2 or gcc-fortran 11.4.0-1

2024-04-19 Thread Brian Inglis via Cygwin
On 2024-04-19 15:39, René Berber via Cygwin wrote: On 4/19/2024 2:59 PM, Arnab Paul via Cygwin wrote: Hello, I am trying to install a software which requires the libraries gcc-fortran, make, libarpack-devel, liblapack-devel, libnetcdf-fortran-devel, git. As I did and ran the commands given

Re: problem with make 4.4.1-2 or gcc-fortran 11.4.0-1

2024-04-19 Thread René Berber via Cygwin
On 4/19/2024 2:59 PM, Arnab Paul via Cygwin wrote: Hello, I am trying to install a software which requires the libraries gcc-fortran, make, libarpack-devel, liblapack-devel, libnetcdf-fortran-devel, git. As I did and ran the commands given below, git clone https://github.com/Aida-Alvera/DINEOF

problem with make 4.4.1-2 or gcc-fortran 11.4.0-1

2024-04-19 Thread Arnab Paul via Cygwin
Hello, I am trying to install a software which requires the libraries gcc-fortran, make, libarpack-devel, liblapack-devel, libnetcdf-fortran-devel, git. As I did and ran the commands given below, git clone https://github.com/Aida-Alvera/DINEOF cd DINEOF/ cp config.mk.template config.mk make The

Re: cygwin1.dll 3.5.0-1 appears to cause spurious "error 127" with make 4.4.1

2024-02-26 Thread Corinna Vinschen via Cygwin
; >> (see https://cygwin.com/pipermail/cygwin/2024-February/255308.html) to > >> 3.5.0-1, I now get spurious "error 127" messages from (Cygwin's copy of) > >> GNU make 4.4.1-2, when it starts external processes and those external > >> processes exit wi

Re: cygwin1.dll 3.5.0-1 appears to cause spurious "error 127" with make 4.4.1

2024-02-26 Thread Dimitry Andric via Cygwin
>> 3.5.0-1, I now get spurious "error 127" messages from (Cygwin's copy of) >> GNU make 4.4.1-2, when it starts external processes and those external >> processes exit with a zero exit code. >> >> For example, a very simple Makefile: >> >>

Re: cygwin1.dll 3.5.0-1 appears to cause spurious "error 127" with make 4.4.1

2024-02-26 Thread Corinna Vinschen via Cygwin
On Feb 26 17:34, Dimitry Andric via Cygwin wrote: > Hi, > > After a recent upgrade of a Cygwin installation, including cygwin1.dll > (see https://cygwin.com/pipermail/cygwin/2024-February/255308.html) to > 3.5.0-1, I now get spurious "error 127" messages from (Cygwin'

Re: cygwin1.dll 3.5.0-1 appears to cause spurious "error 127" with make 4.4.1

2024-02-26 Thread Dimitry Andric via Cygwin
i, >>>> After a recent upgrade of a Cygwin installation, including cygwin1.dll >>>> (see https://cygwin.com/pipermail/cygwin/2024-February/255308.html) to >>>> 3.5.0-1, I now get spurious "error 127" messages from (Cygwin's copy of) >>>> GNU mak

Re: cygwin1.dll 3.5.0-1 appears to cause spurious "error 127" with make 4.4.1

2024-02-26 Thread Marco Atzeri via Cygwin
-February/255308.html) to 3.5.0-1, I now get spurious "error 127" messages from (Cygwin's copy of) GNU make 4.4.1-2, when it starts external processes and those external processes exit with a zero exit code. For example, a very simple Makefile: all: cmd /c echo done Running this a few ti

Re: cygwin1.dll 3.5.0-1 appears to cause spurious "error 127" with make 4.4.1

2024-02-26 Thread Dimitry Andric via Cygwin
to >> 3.5.0-1, I now get spurious "error 127" messages from (Cygwin's copy of) >> GNU make 4.4.1-2, when it starts external processes and those external >> processes exit with a zero exit code. >> For example, a very simple Makefile: >> all: >>

Re: cygwin1.dll 3.5.0-1 appears to cause spurious "error 127" with make 4.4.1

2024-02-26 Thread Marco Atzeri via Cygwin
On 26/02/2024 17:34, Dimitry Andric via Cygwin wrote: Hi, After a recent upgrade of a Cygwin installation, including cygwin1.dll (see https://cygwin.com/pipermail/cygwin/2024-February/255308.html) to 3.5.0-1, I now get spurious "error 127" messages from (Cygwin's copy of) GNU mak

cygwin1.dll 3.5.0-1 appears to cause spurious "error 127" with make 4.4.1

2024-02-26 Thread Dimitry Andric via Cygwin
Hi, After a recent upgrade of a Cygwin installation, including cygwin1.dll (see https://cygwin.com/pipermail/cygwin/2024-February/255308.html) to 3.5.0-1, I now get spurious "error 127" messages from (Cygwin's copy of) GNU make 4.4.1-2, when it starts external processes and

Re: make missing shared libraries: cygguile-3.0-1.dll

2023-11-06 Thread Andrey Repin via Cygwin
Greetings, Bruce Visscher! > As a matter of fact, perhaps I don't need winpty anymore. I used to > have to prefix some windows console apps with this but that doesn't > seem to be necessary now. There have been some progress on Microsoft side regarding console behavior in general, yes. But in g

Re: make missing shared libraries: cygguile-3.0-1.dll

2023-05-18 Thread Bruce Visscher via Cygwin
Brian, On Wed, May 17, 2023 at 7:23 PM Brian Inglis wrote: > You are definitely missing and need to install libffi8 and libgc1. Thanks. After installing these via cygwin setup, make is working well. In fact, the installation also corrected an issue I was having with python. Previou

Re: make missing shared libraries: cygguile-3.0-1.dll

2023-05-17 Thread Brian Inglis via Cygwin
FAQ?) You need the library libguile3.0_1 installed - we can not see if that is the case or if there are any issues. You also need to drop C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin from your PATH, at least in Cygwin, as it looks like it is being injected into make execution to

Re: make missing shared libraries: cygguile-3.0-1.dll

2023-05-17 Thread Bruce Visscher via Cygwin
You need the library libguile3.0_1 installed - we can not see if that is the > case or if there are any issues. > > You also need to drop C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin > from your PATH, at least in Cygwin, as it looks like it is being injected into > make executio

Re: make missing shared libraries: cygguile-3.0-1.dll

2023-05-17 Thread Brian Inglis via Cygwin
-hotspot\bin from your PATH, at least in Cygwin, as it looks like it is being injected into make execution to intercept what it is doing, but given that it is a MS JDK hotspot, it is probably intended for some MS JDK make product, not Cygwin's, so it will not work, and could damage something.

make missing shared libraries: cygguile-3.0-1.dll

2023-05-16 Thread Bruce Visscher via Cygwin
Trying to build the winpty package[1], I find that the make program does not work. I have tried removing and reinstalling the package to no avail. > $ uname -a > CYGWIN_NT-10.0-22621 42MF1T3 3.4.6-1.x86_64 2023-02-14 13:23 UTC x86_64 Cygwin > $ make > C:/cygwin64/bin/make.exe:

RE: Parallel make hangs on 64-bit Cygwin

2023-03-23 Thread Jon Beniston via Cygwin
s+up%3A+Problems+with+parallel+make%22+site%3Ahttps%3A%2F%2Fcygwin.com%2F >Please try the test version of the package >https://cygwin.com/pipermail/cygwin-announce/2023-March/010972.html > >and let us know it the 4.4.1-2 version solves your problem Current version of make (4.4.1-1)

Re: Parallel make hangs on 64-bit Cygwin

2023-03-22 Thread marco atzeri via Cygwin
On Wed, Mar 22, 2023 at 3:34 PM Jon Beniston via Cygwin wrote: > Hi, Hi Jon > When trying to build gcc using make with -j N, I'm finding that make will > hang on 64-bit Cygwin. I don't see this problem with 32-bit Cygwin on the > same PC. When it hangs, there are N make

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-03-22 Thread Brian Inglis via Cygwin
lso took precautions in postinstall script PATH just in case. Just built, tested, and released curl no problem, but coreutils with make 4.4.1-1 hung up with procps, top, and bash kill, but not ls /proc/... $ uname -srvmo CYGWIN_NT-10.0-19044 3.5.0-0.231.g93f70d7849b8.x86_64 2023-03-07 03:11 UTC

Parallel make hangs on 64-bit Cygwin

2023-03-22 Thread Jon Beniston via Cygwin
Hi, When trying to build gcc using make with -j N, I'm finding that make will hang on 64-bit Cygwin. I don't see this problem with 32-bit Cygwin on the same PC. When it hangs, there are N make processes reported in task manager that are using 0% CPU, that appear to be waiting fo

[ANNOUNCEMENT] Updated: make-4.4.1-1 & -2

2023-03-01 Thread Marco Atzeri via Cygwin-announce via Cygwin
Versions 4.4.1-1 (default) and 4.4.1-2 (test) of make are available in the Cygwin distribution CYGWIN_CHANGES The default version is built with jobserver using FIFO and the test version using pipe. In same complex corner case the previous 4.4-1 was reported to fail and it is unclear if the

Re: A query about latest update to "make"

2023-02-21 Thread Marco Atzeri via Cygwin
On 21.02.2023 14:49, Fergus Daly via Cygwin wrote: I update my local Cygwin using setup-x86_64.exe. The latest setup.ini file includes the lines setup-timestamp: 1676945925 setup-version: 2.924 @ make version: 4.4-1 [prev] version: 4.3-1 [test] version

A query about latest update to "make"

2023-02-21 Thread Fergus Daly via Cygwin
I update my local Cygwin using setup-x86_64.exe. The latest setup.ini file includes the lines setup-timestamp: 1676945925 setup-version: 2.924 @ make version: 4.4-1 [prev] version: 4.3-1 [test] version: 4.4.0.91-1 I definitely do not use the switch -t (for test

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-19 Thread Brian Inglis via Cygwin
On 2023-01-19 11:38, Corinna Vinschen via Cygwin wrote: On Jan 19 09:31, Brian Inglis via Cygwin wrote: On 2023-01-18 02:42, Corinna Vinschen via Cygwin wrote: I tested this yesterday with 7 runs on two machines in parallel while building Cygwin continuously in another Window, and cygcheck stil

RE: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-19 Thread Jose Isaias Cabrera via Cygwin
Corinna Vinschen, on January 19, 2023 1:39 PM wrote: >...(had to skip 3.4.4, don't ask...) LOL. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-19 Thread Corinna Vinschen via Cygwin
On Jan 19 09:31, Brian Inglis via Cygwin wrote: > On 2023-01-18 02:42, Corinna Vinschen via Cygwin wrote: > > I tested this yesterday with 7 runs on two machines in parallel while > > building Cygwin continuously in another Window, and cygcheck still with > > high-entropy-VA enabled. And one of th

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-19 Thread Brian Inglis via Cygwin
Which they are, due to the high-entropy stuff. The patches are supposed to make the code less rigid in terms of the addresses of certain memory regions, as well as dropping the high-entropy VA flag from builds of strace and cygcheck, both of which are loading the Cygwin DLL dynamically as part of thei

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-19 Thread Brian Inglis via Cygwin
ropy stuff. The patches are supposed to make the code less rigid in terms of the addresses of certain memory regions, as well as dropping the high-entropy VA flag from builds of strace and cygcheck, both of which are loading the Cygwin DLL dynamically as part of their job. The test release 3

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-18 Thread Corinna Vinschen via Cygwin
ns are used by Windows itself. > > Which they are, due to the high-entropy stuff. > > > > The patches are supposed to make the code less rigid in terms of the > > addresses of certain memory regions, as well as dropping the > > high-entropy VA flag from builds of strace and cy

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-18 Thread Takashi Yano via Cygwin
7;s a non-Cygwin process which > > - is built with high-entropy ASLR and > > - tries to load the Cygwin DLL dynamically and > > - therefore suffers from the fact that recent Cygwin code doesn't > expect that certain memory regions are used by Windows itself. >

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-17 Thread Corinna Vinschen via Cygwin
d that the reason cygcheck fails in this way is: - It's a non-Cygwin process which - is built with high-entropy ASLR and - tries to load the Cygwin DLL dynamically and - therefore suffers from the fact that recent Cygwin code doesn't expect that certain memory regions are used by Windows

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-16 Thread Corinna Vinschen via Cygwin
Hi Takashi, On Jan 16 16:18, Corinna Vinschen via Cygwin wrote: > Actually, I' running your testcase on two machines in parallel now for > quite some time, which only one hunk of 60675f1a7eb2 reverted, i.e. > > diff --git a/winsup/cygwin/mm/shared.cc b/winsup/cygwin/mm/shared.cc > index 893b20d28

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-16 Thread Brian Inglis via Cygwin
problem didn't show up once. Maybe you'd like to try the same? After struggling to build and release a new ncurses test package yesterday, with many hangs including unrelated hourly cron jobs, make, top, ps, and using Cygwin /bin/ps and /bin/kill -f combos a lot to make progress, I

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-16 Thread Brian Inglis via Cygwin
On 2023-01-16 08:40, Jon Turney via Cygwin wrote: On 10/01/2023 00:00, Brian Inglis via Cygwin wrote: On Mon, 9 Jan 2023 14:36:44 +0100, Corinna Vinschen wrote:> On Dec 29 21:59, Brian Inglis via Cygwin wrote: I got some hangs (deadlock?) between (parallel?) make jobs, top, procps, and even

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-16 Thread Jon Turney via Cygwin
On 10/01/2023 00:00, Brian Inglis via Cygwin wrote: On Mon, 9 Jan 2023 14:36:44 +0100, Corinna Vinschen wrote:> On Dec 29 21:59, Brian Inglis via Cygwin wrote: I got some hangs (deadlock?) between (parallel?) make jobs, top, procps, and even ls /proc/*/ when trying to cygport all check curl

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-16 Thread Corinna Vinschen via Cygwin
Hi Takashi, On Jan 16 23:45, Takashi Yano via Cygwin wrote: > On Mon, 16 Jan 2023 11:23:54 +0100 > Corinna Vinschen wrote: > > On Jan 16 18:02, Takashi Yano via Cygwin wrote: > > [...] > > > Errors seem to be three types: (null), cygpid.xxx and shared.5. > > > I'm not sure what is happening and wh

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-16 Thread Takashi Yano via Cygwin
On Mon, 16 Jan 2023 11:23:54 +0100 Corinna Vinschen wrote: > On Jan 16 18:02, Takashi Yano via Cygwin wrote: > > Hi Corinna, > > > > On Mon, 9 Jan 2023 14:20:56 +0100 > > Corinna Vinschen wrote: > > > On Jan 2 17:21, Takashi Yano via Cygwin wrote: > > > > On Mon, 2 Jan 2023 14:38:03 +0900 > > > >

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-16 Thread Corinna Vinschen via Cygwin
On Jan 16 18:02, Takashi Yano via Cygwin wrote: > Hi Corinna, > > On Mon, 9 Jan 2023 14:20:56 +0100 > Corinna Vinschen wrote: > > On Jan 2 17:21, Takashi Yano via Cygwin wrote: > > > On Mon, 2 Jan 2023 14:38:03 +0900 > > > Takashi Yano wrote: > > > > On Mon, 2 Jan 2023 11:32:01 +0900 > > > > Taka

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-16 Thread Takashi Yano via Cygwin
Hi Corinna, On Mon, 9 Jan 2023 14:20:56 +0100 Corinna Vinschen wrote: > On Jan 2 17:21, Takashi Yano via Cygwin wrote: > > On Mon, 2 Jan 2023 14:38:03 +0900 > > Takashi Yano wrote: > > > On Mon, 2 Jan 2023 11:32:01 +0900 > > > Takashi Yano wrote: > > > > On Sat, 31 Dec 2022 13:01:29 -0700 > > > >

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-10 Thread Corinna Vinschen via Cygwin
On Jan 10 19:01, Takashi Yano via Cygwin wrote: > On Mon, 9 Jan 2023 18:13:26 +0100 > Corinna Vinschen wrote: > > If q->sigtls is NULL, the signal is nevertheless waiting for being > > handled. It's just not directed at a specific thread. Beats me, why > > this didn't occur in my testing. The pr

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-10 Thread Takashi Yano via Cygwin
On Mon, 9 Jan 2023 18:13:26 +0100 Corinna Vinschen wrote: > If q->sigtls is NULL, the signal is nevertheless waiting for being > handled. It's just not directed at a specific thread. Beats me, why > this didn't occur in my testing. The process signal info should contain > the process-wide mask o

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-09 Thread Brian Inglis via Cygwin
On Mon, 9 Jan 2023 14:36:44 +0100, Corinna Vinschen wrote:> On Dec 29 21:59, Brian Inglis via Cygwin wrote: I got some hangs (deadlock?) between (parallel?) make jobs, top, procps, and even ls /proc/*/ when trying to cygport all check curl or look at the process statuses when builds hung un

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-09 Thread Corinna Vinschen via Cygwin
On Jan 2 11:32, Takashi Yano via Cygwin wrote: > On Thu, 29 Dec 2022 21:59:45 -0700 > Brian Inglis wrote: > > I got some hangs (deadlock?) between (parallel?) make jobs, top, procps, > > and > > even ls /proc/*/ when trying to cygport all check curl or look at the &

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-09 Thread Corinna Vinschen via Cygwin
On Jan 3 08:03, Takashi Yano via Cygwin wrote: > On Mon, 2 Jan 2023 11:32:01 +0900 > Takashi Yano wrote: > > On Thu, 29 Dec 2022 21:59:45 -0700 > > Brian Inglis wrote: > > > I got some hangs (deadlock?) between (parallel?) make jobs, top, procps, > > > and &

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-09 Thread Corinna Vinschen via Cygwin
Hi Brian, On Dec 29 21:59, Brian Inglis via Cygwin wrote: > Hi folks, > > I got some hangs (deadlock?) between (parallel?) make jobs, top, procps, and > even ls /proc/*/ when trying to cygport all check curl or look at the > process statuses when builds hung under Cygwin 3.4.3

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-09 Thread Corinna Vinschen via Cygwin
On Jan 2 17:21, Takashi Yano via Cygwin wrote: > On Mon, 2 Jan 2023 14:38:03 +0900 > Takashi Yano wrote: > > On Mon, 2 Jan 2023 11:32:01 +0900 > > Takashi Yano wrote: > > > On Sat, 31 Dec 2022 13:01:29 -0700 > > > Brian Inglis wrote: > > > > was also getting the messages below locally and still on

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-02 Thread Takashi Yano via Cygwin
On Mon, 2 Jan 2023 11:32:01 +0900 Takashi Yano wrote: > On Thu, 29 Dec 2022 21:59:45 -0700 > Brian Inglis wrote: > > I got some hangs (deadlock?) between (parallel?) make jobs, top, procps, > > and > > even ls /proc/*/ when trying to cygport all check curl or

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-02 Thread Takashi Yano via Cygwin
On Mon, 2 Jan 2023 14:38:03 +0900 Takashi Yano wrote: > On Mon, 2 Jan 2023 11:32:01 +0900 > Takashi Yano wrote: > > On Sat, 31 Dec 2022 13:01:29 -0700 > > Brian Inglis wrote: > > > was also getting the messages below locally and still on GitHub scallywag: > > > > > > cygcheck (6936) child_copy:

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-01 Thread Takashi Yano via Cygwin
On Mon, 2 Jan 2023 11:32:01 +0900 Takashi Yano wrote: > On Sat, 31 Dec 2022 13:01:29 -0700 > Brian Inglis wrote: > > was also getting the messages below locally and still on GitHub scallywag: > > > > cygcheck (6936) child_copy: cygheap read copy failed, > > > > ../curl/scallywag/1_x86_64 bui

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-01 Thread Takashi Yano via Cygwin
On Thu, 29 Dec 2022 21:59:45 -0700 Brian Inglis wrote: > I got some hangs (deadlock?) between (parallel?) make jobs, top, procps, and > even ls /proc/*/ when trying to cygport all check curl or look at the process > statuses when builds hung under Cygwin 3.4.3 and 3.5.0-0.69... &g

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2023-01-01 Thread Jeremy Drake via Cygwin
On Sat, 31 Dec 2022, Brian Inglis wrote: > was also getting the messages below locally and still on GitHub scallywag: > > cygcheck (6936) child_copy: cygheap read copy failed, > > ../curl/scallywag/1_x86_64 build.log:2022-12-26T00:39:35.6163236Z 0 > [main] cygcheck (6936) child_copy:

Re: Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2022-12-31 Thread Brian Inglis via Cygwin
On 2022-12-29 21:59, Brian Inglis wrote: I got some hangs (deadlock?) between (parallel?) make jobs, top, procps, and even ls /proc/*/ when trying to cygport all check curl or look at the process statuses when builds hung under Cygwin 3.4.3 and 3.5.0-0.69... Had to revert to a Cygwin 3.4.0

Cygwin 3.4.3 and 3.5.0... hangs in make, top, procps, ls /proc/PID/...

2022-12-29 Thread Brian Inglis via Cygwin
Hi folks, I got some hangs (deadlock?) between (parallel?) make jobs, top, procps, and even ls /proc/*/ when trying to cygport all check curl or look at the process statuses when builds hung under Cygwin 3.4.3 and 3.5.0-0.69... Had to revert to a Cygwin 3.4.0-344 test build from Dec 16

[ANNOUNCEMENT] Updated: psl/-make-dafsa, libpsl_5/-devel/-doc 0.21.2

2022-12-28 Thread Cygwin libpsl Maintainer via Cygwin
The following packages have been upgraded in the Cygwin distribution: * psl 0.21.2 * psl-make-dafsa0.21.2 * libpsl5 0.21.2 * libpsl-devel 0.21.2 * libpsl-doc0.21.2 Public Suffix List library A public suffix is a domain suffix under

Re: Is it possible to make `man´ work? [Actually, 2 bugs on top of each other]

2022-12-03 Thread Ilya Zakharevich via Cygwin
On Mon, Nov 14, 2022 at 10:43:04PM -0800, Ilya Zakharevich wrote: > If I do > man man > in a Windows’ console, I get garbage on screen before I press > -r I confirm that this disappeared in the latest(=test) version of cygwin. However, the following problem remains (although it is probably

[ANNOUNCEMENT] Updated: make-4.4-1

2022-12-02 Thread Marco Atzeri via Cygwin-announce
Version 4.4-1 of make is available in the Cygwin distribution DESCRIPTION A GNU tool for controlling the generation of executables and other non-source files of a program from the program's source files. Make allows users to build and install packages without any significant knowledge

[ANNOUNCEMENT] Updated: psl/-make-dafsa, libpsl_5/-devel/-doc 0.21.1-2

2022-11-19 Thread Cygwin libpsl Maintainer
The following packages have been upgraded in the Cygwin distribution: * psl 0.21.1-2 * psl-make-dafsa0.21.1-2 * libpsl5 0.21.1-2 * libpsl-devel 0.21.1-2 * libpsl-doc0.21.1-2 Public Suffix List library A public suffix is a domain

Re: Is it possible to make `man´ work? [Actually, 2 bugs on top of each other]

2022-11-16 Thread Corinna Vinschen
On Nov 16 18:00, Thomas Wolff wrote: > > > Am 16/11/2022 um 13:52 schrieb Ilya Zakharevich: > > If I do > >man man > > in a Windows’ console, I get garbage on screen before I press > > -r > Windows console is what you start with Win+R cmd, right? Works fine for me. > Why don't you run cy

Re: Is it possible to make `man´ work? [Actually, 2 bugs on top of each other]

2022-11-16 Thread Thomas Wolff
Am 16/11/2022 um 13:52 schrieb Ilya Zakharevich: If I do man man in a Windows’ console, I get garbage on screen before I press -r Windows console is what you start with Win+R cmd, right? Works fine for me. Why don't you run cygwin programs in a proper cygwin environment to avoid such

Is it possible to make `man´ work? [Actually, 2 bugs on top of each other]

2022-11-16 Thread Ilya Zakharevich
If I do man man in a Windows’ console, I get garbage on screen before I press -r Contrary to man man this cannot be overwritten by setting set MANPAGER=less -sr . (However, this may be overwritten by setting set PAGER=less -sr ) In my particular setup, it would be enough if the bug w

Re: Make: Issue with $(MAKE) in make includes, when make is not on the default path

2022-10-24 Thread Thomas Wolff
Am 24/10/2022 um 11:36 schrieb marco atzeri: On Sun, Oct 23, 2022 at 7:27 PM Ferenc Valenta wrote: Hi, Just found a possible issue with Cygwin: If cygwin is not on the default path, and make is started by specyfing the path to it (e.g., c:\cygwin64\bin\make), $(MAKE) works in the top

Re: Make: Issue with $(MAKE) in make includes, when make is not on the default path

2022-10-24 Thread marco atzeri
On Sun, Oct 23, 2022 at 7:27 PM Ferenc Valenta wrote: > > > Hi, > > Just found a possible issue with Cygwin: > If cygwin is not on the default path, and make is started by specyfing > the path to it (e.g., c:\cygwin64\bin\make), $(MAKE) works in the > top-level makefile,

Make: Issue with $(MAKE) in make includes, when make is not on the default path

2022-10-23 Thread Ferenc Valenta
Hi, Just found a possible issue with Cygwin: If cygwin is not on the default path, and make is started by specyfing the path to it (e.g., c:\cygwin64\bin\make), $(MAKE) works in the top-level makefile, but it does not work in make includes. To reproduce the issue, use these files: makefile

Re: GNU make losing jobserver tokens

2022-04-30 Thread Takashi Yano
On Sat, 30 Apr 2022 17:51:03 -0400 Ken Brown wrote: > On 4/29/2022 5:10 AM, Takashi Yano wrote: > > On Thu, 28 Apr 2022 17:32:22 +0200 > > I tried to move sigproc_init() call from dll_crt0_0() to > > fork::child() for 64bit cygwin, however, that causes hang > > at cygwin startup. > > > > Am I miss

Re: GNU make losing jobserver tokens

2022-04-30 Thread Ken Brown
On 4/29/2022 5:10 AM, Takashi Yano wrote: On Thu, 28 Apr 2022 17:32:22 +0200 I tried to move sigproc_init() call from dll_crt0_0() to fork::child() for 64bit cygwin, however, that causes hang at cygwin startup. Am I missing somehting? I've never looked into the Cygwin startup code, so just ign

Re: GNU make losing jobserver tokens

2022-04-29 Thread Takashi Yano
On Thu, 28 Apr 2022 17:32:22 +0200 Corinna Vinschen wrote: > On Apr 29 00:01, Takashi Yano wrote: > > On Thu, 28 Apr 2022 16:09:24 +0200 > > Corinna Vinschen wrote: > > > On Apr 28 09:42, Ken Brown wrote: > > > > On 4/27/2022 10:13 AM, Takashi Yano wrote: > > > > > On Fri, 1 Apr 2022 17:45:51 +0900

Re: GNU make losing jobserver tokens

2022-04-28 Thread Corinna Vinschen
On Apr 29 00:01, Takashi Yano wrote: > On Thu, 28 Apr 2022 16:09:24 +0200 > Corinna Vinschen wrote: > > On Apr 28 09:42, Ken Brown wrote: > > > On 4/27/2022 10:13 AM, Takashi Yano wrote: > > > > On Fri, 1 Apr 2022 17:45:51 +0900 > > > > Takashi Yano wrote: > > > > > [...] > > > > > diff --git a/win

Re: GNU make losing jobserver tokens

2022-04-28 Thread Takashi Yano
by building OpenJDK > > > > from source, however, I could not. > > > > > > > > Instead, I encountered another issue. > > > > > > > > Building OpenJDK sometimes (rarely) failed with error such as: > > > > > > > >0

Re: GNU make losing jobserver tokens

2022-04-28 Thread Corinna Vinschen
> > > Instead, I encountered another issue. > > > > > > Building OpenJDK sometimes (rarely) failed with error such as: > > > > > >0 [sig] make 5484 sig_send: error sending signal 11, pid 5484, > > > pipe handle 0x118, nb 0, packsize

Re: GNU make losing jobserver tokens

2022-04-28 Thread Ken Brown
: 0 [sig] make 5484 sig_send: error sending signal 11, pid 5484, pipe handle 0x118, nb 0, packsize 176, Win32 error 0 124917 [main] make 5484 sig_send: error sending signal -72, pid 5484, pipe handle 0x118, nb 0, packsize 176, Win32 error 0 common/modules/GensrcModuleInfo.gmk:77: *** open

Re: GNU make losing jobserver tokens

2022-04-27 Thread Takashi Yano
On Fri, 1 Apr 2022 17:45:51 +0900 Takashi Yano wrote: > On Mon, 21 Mar 2022 15:28:17 +0100 > Magnus Ihse Bursie wrote: > > Hi, > > > > I'm working for Oracle on the OpenJDK build team. We're using GNU make > > to build the JDK on all supported platforms

Re: Deadlock of the process tree when running make

2022-04-27 Thread Alexey Izbyshev
ocess in ProcessHacker, but "ps" and similar tools in Cygwin still list "javac". I'm now trying to create a small reproducer that I can share, and I've had a first small success this night: I could get a very similar hang with a simple Makefile and a script with Cygw

Re: Deadlock of the process tree when running make

2022-04-27 Thread Takashi Yano
). So > there is no javac.exe process in ProcessHacker, but "ps" and similar > tools in Cygwin still list "javac". > > I'm now trying to create a small reproducer that I can share, and I've > had a first small success this night: I could get a very si

Re: Deadlock of the process tree when running make

2022-04-16 Thread Alexey Izbyshev
ve had a first small success this night: I could get a very similar hang with a simple Makefile and a script with Cygwin 3.3.4. Here is the tree: make(14479)-+-bash(14484)---bash(14611) |-bash(14515)---bash(14618) |-bash(14491)---bash(14500)---bash(14612)

Re: Deadlock of the process tree when running make

2022-04-16 Thread Takashi Yano
On Thu, 14 Apr 2022 02:17:38 +0300 Alexey Izbyshev wrote: > On 2022-04-13 19:48, Alexey Izbyshev wrote: > > On 2022-04-11 13:10, Alexey Izbyshev wrote: > > What's probably not normal is the behavior of the hanging conhost.exe. > > I've compared the points where conhost.exe is blocked, and all but o

Re: Deadlock of the process tree when running make

2022-04-13 Thread Alexey Izbyshev
On 2022-04-13 19:48, Alexey Izbyshev wrote: On 2022-04-11 13:10, Alexey Izbyshev wrote: What's probably not normal is the behavior of the hanging conhost.exe. I've compared the points where conhost.exe is blocked, and all but one threads in the model case are doing the same things as in the hangi

Re: Deadlock of the process tree when running make

2022-04-13 Thread Alexey Izbyshev
On 2022-04-13 20:22, Takashi Yano wrote: On Wed, 13 Apr 2022 19:48:04 +0300 Alexey Izbyshev wrote: On 2022-04-11 13:10, Alexey Izbyshev wrote: The good news is that the tests have been running for two days so far without any cygwin-related issues, so the patched version doesn't seem to introduce

Re: Deadlock of the process tree when running make

2022-04-13 Thread Takashi Yano
On Wed, 13 Apr 2022 19:48:04 +0300 Alexey Izbyshev wrote: > On 2022-04-11 13:10, Alexey Izbyshev wrote: > > On 2022-04-11 11:35, Takashi Yano wrote: > >> On Sun, 10 Apr 2022 23:49:29 +0300 > >> A countermeasure version is available at the following location: > >> https://tyan0.yr32.net/cygwin/x86/t

Re: Deadlock of the process tree when running make

2022-04-13 Thread Alexey Izbyshev
On 2022-04-11 13:10, Alexey Izbyshev wrote: On 2022-04-11 11:35, Takashi Yano wrote: On Sun, 10 Apr 2022 23:49:29 +0300 A countermeasure version is available at the following location: https://tyan0.yr32.net/cygwin/x86/test/cygwin1-20220411.dll.xz https://tyan0.yr32.net/cygwin/x86_64/test/cygwin

Re: Re: Deadlock of the process tree when running make

2022-04-11 Thread Jeremy Drake via Cygwin
ee > rooted at "make", which runs as an ordinary user. Also, wouldn't the hang be > deterministic if the problem were in the pipe ownership? Yes it would. I just noticed some of the evidence pointing that way - a presumably native javac.exe, an anonymous "named pipe"

Re: Re: Deadlock of the process tree when running make

2022-04-11 Thread Alexey Izbyshev
On 2022-04-11 08:23, Jeremy Drake wrote: On Sat, 9 Apr 2022, Alexey Izbyshev wrote: I don't have mintty because "make" is run via an SSH session. I suppose I should look into sshd in this case? Sshd wouldn't happen to be running as a service, would it? https://cygwin.

Re: Deadlock of the process tree when running make

2022-04-11 Thread Alexey Izbyshev
peak memory consumption of our tests never exceeds 30% of RAM. Also, Cygwin is used (almost) exclusively for the test harness (the actual software under testing is native), and there are no heavyweight processes in it, mostly just make, bash and some coreutils. So I don't think we could hit

Re: Deadlock of the process tree when running make

2022-04-11 Thread Alexey Izbyshev
On 2022-04-11 11:35, Takashi Yano wrote: On Sun, 10 Apr 2022 23:49:29 +0300 Alexey Izbyshev wrote: Is it safe to create an *inheritable* handle in another process here? Could it be that the target process spawns a child at the wrong moment (e.g. before it even knows about the newly created hand

Re: Deadlock of the process tree when running make

2022-04-11 Thread Takashi Yano
On Sun, 10 Apr 2022 22:23:06 -0700 (PDT) Jeremy Drake wrote: > On Sat, 9 Apr 2022, Alexey Izbyshev wrote: > > > I don't have mintty because "make" is run via an SSH session. I suppose > > I should look into sshd in this case? > > Sshd wouldn't

Re: Deadlock of the process tree when running make

2022-04-11 Thread Takashi Yano
ash.exe > > is paired with "Unnamed file: \FileSystem\Npfs" in conhost.exe, other > > than by forcibly closing it. If I close it and conhost.exe dies, it > > will confirm "the extra handle" theory, but will also prevent further > > investigation with the hangi

Re: Deadlock of the process tree when running make

2022-04-10 Thread Jeremy Drake via Cygwin
On Sat, 9 Apr 2022, Alexey Izbyshev wrote: > I don't have mintty because "make" is run via an SSH session. I suppose > I should look into sshd in this case? Sshd wouldn't happen to be running as a service, would it? https://cygwin.com/pipermail/cygwin-patches/2022q2

Re: Deadlock of the process tree when running make

2022-04-10 Thread Alexey Izbyshev
"the extra handle" theory, but will also prevent further investigation with the hanging tree. Do you have any advice? I've found something that looked strange to me by checking handles in the hanging process tree: the hanging conhost.exe and the hanging bash.exe belong to dif

Re: Deadlock of the process tree when running make

2022-04-10 Thread Alexey Izbyshev
On 2022-04-10 10:34, Takashi Yano wrote: On Sat, 09 Apr 2022 23:26:51 +0300 Thanks for investigating. In the normal case, conhost.exe is terminated when hWritePipe is closed. Thanks for confirming. Possibly, the hWritePipe has incorrect handle value. I've verified that the handle was corre

Re: Deadlock of the process tree when running make

2022-04-10 Thread Takashi Yano
On Sat, 09 Apr 2022 23:26:51 +0300 Alexey Izbyshev wrote: > On 2022-04-09 22:35, Alexey Izbyshev wrote: > > On 2022-04-09 20:54, Takashi Yano wrote: > >> Thanks for checking. This seems to be normal. Then, I cannot > >> understand why the ClosePseudoConsole() call is blocked... > >> > >> The docum

Re: Deadlock of the process tree when running make

2022-04-09 Thread Alexey Izbyshev
On 2022-04-09 22:35, Alexey Izbyshev wrote: On 2022-04-09 20:54, Takashi Yano wrote: Thanks for checking. This seems to be normal. Then, I cannot understand why the ClosePseudoConsole() call is blocked... The document by Microsoft mentions the blocking conditions of ClosePseudoConsole(): https:

Re: Deadlock of the process tree when running make

2022-04-09 Thread Alexey Izbyshev
On 2022-04-09 20:54, Takashi Yano wrote: Thanks for checking. This seems to be normal. Then, I cannot understand why the ClosePseudoConsole() call is blocked... The document by Microsoft mentions the blocking conditions of ClosePseudoConsole(): https://docs.microsoft.com/en-us/windows/console/cl

Re: Deadlock of the process tree when running make

2022-04-09 Thread Takashi Yano
On Sat, 09 Apr 2022 20:23:06 +0300 Alexey Izbyshev wrote: > On 2022-04-09 19:57, Takashi Yano wrote: > > Thank you very much for the information. Can you check if > > the thread pty_master_fwd_thread() in root mintty is still > > alive? > > I don't have mintty

Re: Deadlock of the process tree when running make

2022-04-09 Thread Alexey Izbyshev
On 2022-04-09 19:57, Takashi Yano wrote: Thank you very much for the information. Can you check if the thread pty_master_fwd_thread() in root mintty is still alive? I don't have mintty because "make" is run via an SSH session. I suppose I should look into sshd in this case?

Re: Deadlock of the process tree when running make

2022-04-09 Thread Takashi Yano
essHacker showed that the owner of the pcon mutex is bash.exe with > (Windows) PID 6276. However, Cygwin ps doesn't list such a process. Its > parent, however, has a Cygwin PID 37961 and is in the hanging tree: > > make(32651)-+-make(32656)-+-bash(37296)---find(38057) >

  1   2   3   4   5   6   7   8   9   10   >