GNU bug report logs - #45651
28.0.50; emacs native-comp crashes with pidigits bench

Previous Next

Package: emacs;

Reported by: Michael Schmidt <michael.a.schmidt <at> email.de>

Date: Mon, 4 Jan 2021 11:38:02 UTC

Severity: normal

Found in version 28.0.50

Done: Andrea Corallo <akrl <at> sdf.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 45651 in the body.
You can then email your comments to 45651 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#45651; Package emacs. (Mon, 04 Jan 2021 11:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Schmidt <michael.a.schmidt <at> email.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 04 Jan 2021 11:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Schmidt <michael.a.schmidt <at> email.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; emacs native-comp crashes with pidigits bench
Date: Mon, 4 Jan 2021 12:37:10 +0100
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45651; Package emacs. (Mon, 04 Jan 2021 16:24:02 GMT) Full text and rfc822 format available.

Message #8 received at 45651 <at> debbugs.gnu.org (full text, mbox):

From: Andrea Corallo <akrl <at> sdf.org>
To: Michael Schmidt <michael.a.schmidt <at> email.de>
Cc: 45651 <at> debbugs.gnu.org
Subject: Re: bug#45651: 28.0.50; emacs native-comp crashes with pidigits bench
Date: Mon, 04 Jan 2021 16:23:42 +0000
Michael Schmidt <michael.a.schmidt <at> email.de> writes:

> Hi!
>  
> Running the pidigits benchmark crashes emacs with a SIGTERM.
> All other benchmarks from the elip-benchmarks-1.9 suite passed and were
> moved in another dir for this run.
> I tested both with and without libgmp.
>  

Hi Michael,

Interesting, I can't reproduce on my machine.

I suspect may due to excessive memory consumption on your system, is it
possible?  Could you have a run monitoring it?  Maybe also having a look
into 'dmesg' output may give some info about why the process got killed.

  Andrea




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45651; Package emacs. (Tue, 05 Jan 2021 19:31:01 GMT) Full text and rfc822 format available.

Message #11 received at 45651 <at> debbugs.gnu.org (full text, mbox):

From: Michael Schmidt <michael.a.schmidt <at> email.de>
To: Andrea Corallo <akrl <at> sdf.org>
Cc: 45651 <at> debbugs.gnu.org
Subject: Aw: Re: bug#45651: 28.0.50; emacs native-comp crashes with pidigits
 bench
Date: Tue, 5 Jan 2021 20:30:22 +0100
[Message part 1 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45651; Package emacs. (Wed, 06 Jan 2021 20:45:01 GMT) Full text and rfc822 format available.

Message #14 received at 45651 <at> debbugs.gnu.org (full text, mbox):

From: Andrea Corallo <akrl <at> sdf.org>
To: Michael Schmidt <michael.a.schmidt <at> email.de>
Cc: 45651 <at> debbugs.gnu.org
Subject: Re: Aw: Re: bug#45651: 28.0.50; emacs native-comp crashes with
 pidigits bench
Date: Wed, 06 Jan 2021 20:44:51 +0000
Michael Schmidt <michael.a.schmidt <at> email.de> writes:

> Hi Andrea,
>  
> [here an extended version with cc to 45651 <at> debbugs.gnu.org]
>  
> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#45651; Package emacs. (Mon, 15 Mar 2021 20:45:01 GMT) Full text and rfc822 format available.

Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andrea Corallo <akrl <at> sdf.org>
To: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs <at> gnu.org>
Cc: 45651-done <at> debbugs.gnu.org, Michael Schmidt <michael.a.schmidt <at> email.de>
Subject: Re: bug#45651: Aw: Re: bug#45651: 28.0.50; emacs native-comp
 crashes with pidigits bench
Date: Mon, 15 Mar 2021 20:44:08 +0000
Hi Michael,

sorry for the late replay, I've fixed with 5a37ce17ea elisp-benchmarks
as discussed and now GC can do its job in `elb-pidigits'.

I'm closing this and works on my system, happy to reopen in case.

Thanks!

  Andrea




Reply sent to Andrea Corallo <akrl <at> sdf.org>:
You have taken responsibility. (Mon, 15 Mar 2021 20:45:02 GMT) Full text and rfc822 format available.

Notification sent to Michael Schmidt <michael.a.schmidt <at> email.de>:
bug acknowledged by developer. (Mon, 15 Mar 2021 20:45:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 13 Apr 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 28 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.