emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hang in make check


From: Lars Ingebrigtsen
Subject: Re: Hang in make check
Date: Tue, 30 Mar 2021 15:29:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> I think the place where read-event hangs in that configuration is in
> this fragment from keyboard.c:kbd_buffer_get_event:

Yup; looks likely.

> But we still need to understand why this happens (if that's what
> happens) in the real test, because AFAIU when unread-command-events is
> non-nil, we were not supposed to get to this place, but instead return
> the event in unread-command-events.

The test code snippet that's actually hanging is this:

(should (equal (progn (run-with-timer
                       1 nil
                       (lambda () (push '(t . ?\C-b) unread-command-events)))
                      (read-event nil nil 2))
               ?\C-b))

So the `read-event' hangs indefinitely, and then apparently never
discovers that the run-with-timer has pushed something unto
unread-command-events (because it's in that getchar?), I think.

I haven't had time to actually try to debug this; hopefully I'll find
some more time later this week...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]