[Top][All Lists]

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

Re: Why does this thread code crash my emacs?

From: Eli Zaretskii
Subject: Re: Why does this thread code crash my emacs?
Date: Fri, 15 Oct 2021 22:01:04 +0300

> From: Derek Davies <ddavies@ddavies.net>
> Date: Fri, 15 Oct 2021 12:04:35 -0400
> Working with the thread-signal example from:  
> https://emacs-berlin.org/thread-safe-tramp-2018-09.html
> it works for me as given, but when I run hanoi instead of sleeping in
> thread2 my emacs consistently crashes (back to command line from which
> it was invoked).
> I've been poking at it, but without much insight -- does anyone know
> what I or hanoi or threading is doing wrong?

You currently cannot signal a thread that is waiting for input (hanoi
waits for input inside sit-for), because Emacs doesn't (yet) know how
to recover from signals in that state.

IOW, this is a limitation of the current implementation that is more
visible when signaling threads than when there's only one (main)

reply via email to

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