Subject: Re: bug#33561: when opening a msg with a 4 MB attachment emacs (master) consumes 6.4 GB of RAM

From: Eli Zaretskii <[email-masked]>
Date: Sat, 01 Dec 2018 11:48:30 +0200

> From: Uwe Brauer <[email-masked]>
> Date: Sat, 01 Dec 2018 10:11:46 +0100
> 
> I tried to open a msg which contained an attachment of 3.9 MB, my system
> with 8 GB got almost frozen and 
> #!/usr/bin/python
> 
> # -*- coding: utf-8 -*-
> import re
> import sys
> 
> from ps_mem import main
> 
> if __name__ == '__main__':
>     sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
>     sys.exit(main())
> 
> Told me 
> rivate  +   Shared  =  RAM used       Program
> 
>  6.6 GiB + 343.5 KiB =   6.6 GiB       emacs-27.0.50
> 
> This cannot be good.

What kind of content was in the attachment?  I don't see how we could
look into this issue without knowing at least that much.