GNU bug report logs - #17561
24.4.50; Emacs can forget processes

Previous Next

Package: emacs;

Reported by: Jorgen Schaefer <contact <at> jorgenschaefer.de>

Date: Fri, 23 May 2014 15:54:02 UTC

Severity: normal

Tags: moreinfo

Merged with 17337, 17628

Found in version 24.4.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jorgen Schaefer <forcer <at> forcix.cx>
Cc: 17561 <at> debbugs.gnu.org
Subject: Re: Emacs can forget processes
Date: Sat, 24 May 2014 16:01:20 -0700
Jorgen Schaefer wrote:

>> Can you run the shell command 'strace -p' on an Emacs with the
>> problem, and trace the system calls near the offending area?
>
> The bug report includes an strace output. Emacs does the pselect6 call

Sorry, I should have been more specific.  It'd be nice to see the strace 
output for when you run start-process in a temp buffer, not for later 
when Emacs is in a tight loop.

> read(2) returning 0 indicates an EOF (which pselect6 indicates as
> waiting input), I suspect there could at least be a sanity check here
> to close the file descriptors instead of continuously polling.

Maybe, though I worry that might mask the bug and might cause other, 
more serious failures down the road.  It'd be nicer to fix the actual 
bug, if we can figure out what it is.

For what it's worth I tried reproducing the bug with emacs-24 'emacs -Q' 
on Fedora, using your recipe, but this didn't have a problem.  I ran it 
1000 times rapidly in sequence and it was OK.  I ran it 10000 times and 
ran out of file descriptors but that's to be expected.




This bug report was last modified 10 years and 351 days ago.

Previous Next


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