unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: Eli Zaretskii <eliz@gnu.org>, Bruno Haible <bruno@clisp.org>
Cc: 65325@debbugs.gnu.org
Subject: bug#65325: "make check" hangs on Cygwin
Date: Fri, 18 Aug 2023 18:02:46 -0400	[thread overview]
Message-ID: <60b81c61-b46f-b091-80e1-3fad5a2f044d@cornell.edu> (raw)
In-Reply-To: <c6912efe-47dd-af14-cc53-1f59293e2d29@cornell.edu>

On 8/16/2023 1:49 PM, Ken Brown wrote:
> On 8/16/2023 11:23 AM, Ken Brown wrote:
>> On 8/16/2023 7:54 AM, Eli Zaretskii wrote:
>>>> From: Bruno Haible <bruno@clisp.org>
>>>> Date: Wed, 16 Aug 2023 00:08:08 +0200
>>>>
>>>> Building Emacs (git sources from today) on Cygwin 2.9.0/x86_64:
>>
>> This is a pretty old Cygwin release.
>>
>>>> 1. I configured in a subdirectory (VPATH build) with options
>>>>       --disable-silent-rules --without-all --without-x
>>>> 2. "make" succeeds.
>>>> 3. "make check" leads to a process that is stuck, does not continue
>>>>     for several hours. It does not eat much CPU time, but nevertheless,
>>>>     something is blocked. Log file 'make-check.log' is attached.
>>>
>>> Thanks.  Alas, the maintainer of Cygwin Emacs (CC'ed) has been silent
>>> for quite some time, so I'm not sure when and how this could be
>>> addressed.
>>
>> I'll test this using the current Cygwin release.
> 
> I can reproduce the hang.  But I don't get the hang in the default build 
> on my system (no configure options).  I'll have to play with the 
> configure options and try to figure out what's going on.

OK, the hang in server-tests.el [and a similar hang in 
keyboard-tests.el] occurs when getchar is called at keyboard.c:3978. 
This call only occurs if dbus, file notification, and threads are all 
disabled, i.e., if the configure options without-dbus, 
without-file-notification, and without-threads are all specified or 
implied.  I don't understand the keyboard code well enough to know (a) 
why we reach that call to getchar in the context of the hanging tests 
and (b) why getchar is only called in the absence of dbus, file 
notification, and threads.

I can work around the problem by always avoiding that getchar call on 
Cygwin (i.e., by adding "&& !defined CYGWIN" at line 3972).  With that 
change, all tests pass on Cygwin with Bruno's configure options.  But I 
don't want to make that change without understanding what's going on. 
Can anyone help?

Ken






  reply	other threads:[~2023-08-18 22:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-15 22:08 bug#65325: "make check" hangs on Cygwin Bruno Haible
2023-08-16 11:54 ` Eli Zaretskii
2023-08-16 13:58   ` Bruno Haible
2023-08-16 15:23   ` Ken Brown
2023-08-16 17:49     ` Ken Brown
2023-08-18 22:02       ` Ken Brown [this message]
2023-08-19  6:15         ` Eli Zaretskii
2023-08-19 16:43           ` Ken Brown
2023-08-19 17:02             ` Bruno Haible
2023-08-19 18:25               ` Ken Brown
2023-08-19 19:54                 ` Eli Zaretskii
2023-08-19 20:58                   ` Ken Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=60b81c61-b46f-b091-80e1-3fad5a2f044d@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=65325@debbugs.gnu.org \
    --cc=bruno@clisp.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).