GNU bug report logs - #79367
31.0.50; magit-commit sometimes doesn't work if diff-hl-update-async is t

Previous Next

Package: emacs;

Reported by: Zhengyi Fu <i <at> fuzy.me>

Date: Tue, 2 Sep 2025 06:21:01 UTC

Severity: normal

Found in version 31.0.50

Full log


View this message in rfc822 format

From: Zhengyi Fu <i <at> fuzy.me>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: sbaugh <at> janestreet.com, 79367 <at> debbugs.gnu.org, dmitry <at> gutov.dev
Subject: bug#79367: 31.0.50; magit-commit sometimes doesn't work if diff-hl-update-async is t
Date: Fri, 05 Sep 2025 21:19:02 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Cc: i <at> fuzy.me, sbaugh <at> janestreet.com, dmitry <at> gutov.dev, 79367 <at> debbugs.gnu.org
>> Date: Fri, 05 Sep 2025 13:42:09 +0300
>> From: Eli Zaretskii <eliz <at> gnu.org>
>> 
>> > From: Zhengyi Fu <i <at> fuzy.me>
>> > Cc: Spencer Baugh <sbaugh <at> janestreet.com>,  i <at> fuzy.me,
>> >   79367 <at> debbugs.gnu.org,  dmitry <at> gutov.dev
>> > Date: Fri, 05 Sep 2025 14:51:42 +0800
>> > 
>> > > I feel that we are splitting hair, so I went ahead and installed the
>> > > last agreed-to version of the patch.
>> > 
>> > I got an assertion failure when testing the latest master.
>> 
>> What is the recipe for reproducing this?
>
> Also, does the below fix the problem?
>
> diff --git a/src/process.c b/src/process.c
> index fa003c2..e39e02f 100644
> --- a/src/process.c
> +++ b/src/process.c
> @@ -4831,7 +4831,11 @@ deactivate_process (Lisp_Object proc)
>    /* Beware SIGCHLD hereabouts.  */
>  
>    for (i = 0; i < PROCESS_OPEN_FDS; i++)
> -    close_process_fd (&p->open_fd[i]);
> +    {
> +      close_process_fd (&p->open_fd[i]);
> +      fd_callback_info[p->open_fd[i]].thread = NULL;
> +      fd_callback_info[p->open_fd[i]].waiting_thread = NULL;
> +    }
>  
>    inchannel = p->infd;
>    eassert (inchannel < FD_SETSIZE);

No.  I can still reproduce this after applying the patch.





This bug report was last modified 7 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.