GNU bug report logs - #42657
emacs-27.1-rc1 and Asan findings

Previous Next

Package: emacs;

Reported by: noloader <at> gmail.com

Date: Sat, 1 Aug 2020 20:24:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

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 42657 in the body.
You can then email your comments to 42657 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#42657; Package emacs. (Sat, 01 Aug 2020 20:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to noloader <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 01 Aug 2020 20:24:02 GMT) Full text and rfc822 format available.

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

From: Jeffrey Walton <noloader <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: emacs-27.1-rc1 and Asan findings
Date: Sat, 1 Aug 2020 16:22:52 -0400
I don't have log files for Asan testing. The process is killed before
the log file gets written.

I think just about every test failed similar to:

=================================================================
==18430==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x7f4408236d28 in __interceptor_calloc
(/usr/lib/x86_64-linux-gnu/libasan.so.4+0xded28)
    #1 0x56126c6f40a5 in dump_mmap_contiguous_heap
/home/jwalton/Build-Scripts/emacs-27.1/src/pdumper.c:4684
    #2 0x56126c6f40a5 in dump_mmap_contiguous
/home/jwalton/Build-Scripts/emacs-27.1/src/pdumper.c:4868
    #3 0x56126c6f40a5 in pdumper_load
/home/jwalton/Build-Scripts/emacs-27.1/src/pdumper.c:5428
    #4 0x56126c47e1d2 in load_pdump
/home/jwalton/Build-Scripts/emacs-27.1/src/emacs.c:853
    #5 0x56126c47e1d2 in main
/home/jwalton/Build-Scripts/emacs-27.1/src/emacs.c:1062
    #6 0x7f4406512b96 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21b96)

SUMMARY: AddressSanitizer: 16 byte(s) leaked in 1 allocation(s).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42657; Package emacs. (Sat, 01 Aug 2020 20:33:01 GMT) Full text and rfc822 format available.

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

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: noloader <at> gmail.com
Cc: 42657 <at> debbugs.gnu.org
Subject: Re: bug#42657: emacs-27.1-rc1 and Asan findings
Date: Sat, 1 Aug 2020 22:31:55 +0200
Am Sa., 1. Aug. 2020 um 22:24 Uhr schrieb Jeffrey Walton <noloader <at> gmail.com>:
>
> I don't have log files for Asan testing. The process is killed before
> the log file gets written.
>
> I think just about every test failed similar to:
>
> =================================================================
> ==18430==ERROR: LeakSanitizer: detected memory leaks


Emacs intentionally leaks a lot of memory (like every system with a
GC), so those tend to be false positives. If they still happen on
master, consider suppressing them using __lsan_ignore_object or
similar.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42657; Package emacs. (Sat, 01 Aug 2020 20:36:02 GMT) Full text and rfc822 format available.

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

From: Jeffrey Walton <noloader <at> gmail.com>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 42657 <at> debbugs.gnu.org
Subject: Re: bug#42657: emacs-27.1-rc1 and Asan findings
Date: Sat, 1 Aug 2020 16:34:53 -0400
On Sat, Aug 1, 2020 at 4:32 PM Philipp Stephani <p.stephani2 <at> gmail.com> wrote:
>
> Am Sa., 1. Aug. 2020 um 22:24 Uhr schrieb Jeffrey Walton <noloader <at> gmail.com>:
> >
> > I don't have log files for Asan testing. The process is killed before
> > the log file gets written.
> >
> > I think just about every test failed similar to:
> >
> > =================================================================
> > ==18430==ERROR: LeakSanitizer: detected memory leaks
>
>
> Emacs intentionally leaks a lot of memory (like every system with a
> GC), so those tend to be false positives. If they still happen on
> master, consider suppressing them using __lsan_ignore_object or
> similar.

How does one tell the good leaks from the bad leaks?

Jeff




Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Mon, 17 Aug 2020 23:45:02 GMT) Full text and rfc822 format available.

Notification sent to noloader <at> gmail.com:
bug acknowledged by developer. (Mon, 17 Aug 2020 23:45:02 GMT) Full text and rfc822 format available.

Message #16 received at 42657-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jeffrey Walton <noloader <at> gmail.com>
Cc: 42657-done <at> debbugs.gnu.org
Subject: Re: bug#42657: emacs-27.1-rc1 and Asan findings
Date: Mon, 17 Aug 2020 16:43:59 -0700
> How does one tell the good leaks from the bad leaks?

In Emacs 27 please don't bother, as nobody had gotten around to marking leaks. 
Since this bug report is about Emacs 27 I'm taking the liberty of closing it.

In the master branch we have marked leaks. I just built it with ./configure 
CC='gcc -fsanitize=address' and 'make check' worked for me on Fedora 31 x86-64. 
If you find a leak I suggest deciding whether the leak is worth worrying about 
and then either plugging the leak or marking it as OK.




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

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

Previous Next


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