GNU bug report logs - #56002
src/process.c; make-process fails to clean up stderr process on early exit

Previous Next

Package: emacs;

Reported by: Tom Gillespie <tgbugs <at> gmail.com>

Date: Wed, 15 Jun 2022 22:39:01 UTC

Severity: normal

Full log


Message #11 received at 56002 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tom Gillespie <tgbugs <at> gmail.com>
Cc: 56002 <at> debbugs.gnu.org
Subject: Re: bug#56002: src/process.c;
 make-process fails to clean up stderr process on early exit
Date: Thu, 16 Jun 2022 08:13:31 +0300
> From: Tom Gillespie <tgbugs <at> gmail.com>
> Date: Wed, 15 Jun 2022 15:38:05 -0700
> 
> If the primary subprocess created by make-process fails early then the
> stderr process is not cleaned up and running kill-buffer on any stderr
> buffer attached to the stderr process will prompt the user.

Can you elaborate on what do you mean by "clean up the stderr
process"?  Do you see the code which does that in the "normal" cases?

> Two early exits that can cause the issue are
> 
> 1. in make-process if the command is not found
> report_file_error ("Searching for program", program);
> 
> 2. in create_process if vfork fails
> report_file_errno (CHILD_SETUP_ERROR_DESC, Qnil, vfork_errno);
> 
> I'm sure there are other failure modes that would trigger the issue.

Sounds like we lack some unwind-protect call somewhere?




This bug report was last modified 2 years and 314 days ago.

Previous Next


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