--- Begin Message ---
Subject: |
Native-comp leaks fds open on /dev/ptmx |
Date: |
Sat, 09 Oct 2021 08:45:25 -0700 |
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"
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#51110: Native-comp leaks fds open on /dev/ptmx |
Date: |
Tue, 30 Nov 2021 18:28:36 -0800 |
Eli Zaretskii <eliz@gnu.org> wrote:
> > From: Andrea Corallo <akrl@sdf.org>
> > Cc: stepheng+emacs@gildea.com, 51110@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.
--- End Message ---