[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: memory leaks

From: Madhu
Subject: Re: memory leaks
Date: Fri, 04 Mar 2022 08:20:07 -0000

* Madhu <> :
Wrote on Mon, 14 Sep 2020 15:36:57 +0530:
> The numbers I reported by garbage-collect do not account for the memory
> usage. FWIW I've posted that info again at
> In 2019 i suspected the culprit was the fonts system.  It doesn't seem
> to be toolkit related. I don't use emacs as an imageviewer (but I have
> to check that). Since the interest in CONFIG_PSI there are a number of
> tools on github that monitor memory - it should be possible to come up
> with some tool that alerts emacs of memory surges while keeping some
> history.

I found test case for this bug and I sent mail to,
and qmail told me that the mail was accepted:
delivery 1: success:
But the bugreport didn't show up on gnu.emacs.bug.

Here is the test case:

$ cat > f.c
#include <stdio.h>
  char c = ' ';
  while (c != 'q' && c != 'Q')
      fprintf(stdout, "Press q then enter to quit: ");
      c = fgetc(stdin);
  return 0;

$ gcc f.c
$ emacs -Q

M-x shell-command ./a.out

Then the process hangs. But Emacs' memory grows unbounded.

WARNING. Be careful to interrupt it with ^G before the OOM killer
kicks in.  If you have swap you may lose control of your machine

After you interrupt the sub process, Emacs is left with unreclaimed
gigabytes of RSS

Please let me know if you can reproduce this

reply via email to

[Prev in Thread] Current Thread [Next in Thread]