unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51110: Native-comp leaks fds open on /dev/ptmx
@ 2021-10-09 15:45 Stephen Gildea
  2021-10-09 15:57 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Stephen Gildea @ 2021-10-09 15:45 UTC (permalink / raw)
  To: 51110

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"





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-12-01  2:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-09 15:45 bug#51110: Native-comp leaks fds open on /dev/ptmx Stephen Gildea
2021-10-09 15:57 ` Eli Zaretskii
2021-10-09 17:01   ` Stephen Gildea
2021-10-09 17:15     ` Eli Zaretskii
2021-11-30 20:13       ` Andrea Corallo
2021-11-30 20:18         ` Eli Zaretskii
2021-11-30 20:24           ` Andrea Corallo
2021-11-30 20:29             ` Eli Zaretskii
2021-12-01  2:28               ` Stephen Gildea

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).