GNU bug report logs -
#51110
Native-comp leaks fds open on /dev/ptmx
Previous Next
Reported by: Stephen Gildea <stepheng+emacs <at> gildea.com>
Date: Sat, 9 Oct 2021 15:46:02 UTC
Severity: important
Found in version 28.0.60
Done: Stephen Gildea <stepheng+emacs <at> gildea.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#51110: Native-comp leaks fds open on /dev/ptmx
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 51110 <at> debbugs.gnu.org.
--
51110: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51110
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Eli Zaretskii <eliz <at> gnu.org> wrote:
> > From: Andrea Corallo <akrl <at> sdf.org>
> > Cc: stepheng+emacs <at> gildea.com, 51110 <at> debbugs.gnu.org
> > Date: Tue, 30 Nov 2021 20:24:59 +0000
> >
> > > I don't think there's anything we _can_ do here, and I tried to
> > > explain why.
> >
> > I agree, I don't think we really want support `invocation-name'
> > modifications at runtime.
> >
> > Shall we close this bug?
>
> I think so. But before we do, I'd like to let Stephen a chance to
> convince us otherwise.
I'm happy to see this bug closed, and I hereby do so.
Thank you for the discussion.
[Message part 3 (message/rfc822, inline)]
Version: 28.0.60
Severity: important
Native-comp leaks fds open on /dev/ptmx if you change 'invocation-name'
and then run a function that loads libraries and causes some compilation.
Emacs seems to compile each file multiple times (16 or more), and it soon
runs out of file descriptors.
To reproduce:
Use a newly built (configure --with-native-compilation) Emacs that has
never (successfully) run MH-E before; if your eln-cache has already been
populated, you will need to delete the cache to repeat the failure:
rm -r ~/.emacs.d/eln-cache
The Emacs must be interactive, and you can reproduce quickly as follows:
src/emacs -Q --eval '(setq invocation-name "emacs-leaks")' --eval '(mh-version)'
In a few seconds the echo area will say: "Creating pipe: Too many open files"
What should appear in the echo area: "nmh 1.7.1 installed as MH variant"
or maybe: "No MH variant found on the system"
This bug report was last modified 3 years and 196 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.