Subject: bug#45651: Aw: Re: bug#45651: 28.0.50; emacs native-comp crashes with pidigits bench

From: Andrea Corallo <[email-masked]>
Date: Wed, 06 Jan 2021 20:44:51 +0000

Michael Schmidt <[email-masked]> writes:

> Hi Andrea,
>  
> [here an extended version with cc to [email-masked]]
>  
> Clean build with
>
>     emacs-8ad983c4acef60a80e8d6b6ba891b1ef957f2d7c.tar.gz  
>  
> Fedorea 33 VirtualBox 24GB+10GB swap: pidigits passed with ~61% peak memory consumption.
> Fedorea 33 VirtualBox 16GB+10GB swap: pidigits passed with ~98% peak memory consumption.
> Fedorea 33 VirtualBox 8GB  +10GB swap: pidigits crashed as described before. Please no "Eight gigabytes of memory and
> constantly swaping" ;-)
> dmesg unchaged after boot, no further info.
>  
> A build without nativecomp passed pidigits with ~1.5% memory consumption.
> Really looks like a memory leak.

Yeah I think this is a bug in the benchmark.  This is compiled at speed
3 and the programmer should be responsible to "garbage-collect-maybe" in
hot loops if this is required.

If this theory is correct you should see the issue disappearing adding
~(declare (speed 2))~ to `elb-pidigits'.

  Andrea