From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#18885: 25.0.50; build fails with ASan enabled Date: Wed, 29 Oct 2014 17:04:44 +0100 Message-ID: References: <87r3xqevui.fsf@udel.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414598729 7293 80.91.229.3 (29 Oct 2014 16:05:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Oct 2014 16:05:29 +0000 (UTC) Cc: 18885@debbugs.gnu.org To: Mark Oteiza Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 29 17:05:22 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XjVkN-0001j5-SP for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Oct 2014 17:05:20 +0100 Original-Received: from localhost ([::1]:47175 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjVkN-00075K-C7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Oct 2014 12:05:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjVkE-0006tk-8e for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 12:05:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjVk6-0005ew-Rm for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 12:05:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjVk6-0005eG-HJ for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 12:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XjVk6-0005WY-18 for bug-gnu-emacs@gnu.org; Wed, 29 Oct 2014 12:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Oct 2014 16:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18885 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18885-submit@debbugs.gnu.org id=B18885.141459868821203 (code B ref 18885); Wed, 29 Oct 2014 16:05:01 +0000 Original-Received: (at 18885) by debbugs.gnu.org; 29 Oct 2014 16:04:48 +0000 Original-Received: from localhost ([127.0.0.1]:38951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjVjs-0005Vv-Cn for submit@debbugs.gnu.org; Wed, 29 Oct 2014 12:04:48 -0400 Original-Received: from cantor2.suse.de ([195.135.220.15]:47410 helo=mx2.suse.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XjVjq-0005Vm-1P for 18885@debbugs.gnu.org; Wed, 29 Oct 2014 12:04:46 -0400 Original-Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 170A0AAF1; Wed, 29 Oct 2014 16:04:45 +0000 (UTC) X-Yow: YOW!! Everybody out of the GENETIC POOL! In-Reply-To: <87r3xqevui.fsf@udel.edu> (Mark Oteiza's message of "Wed, 29 Oct 2014 11:31:17 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95255 Mark Oteiza writes: > Hi, > > For debugging another project, I resorted to using gcc's address > sanitizer to help track down a bug, and it actually helped find others > along the way. I came across a crash in emacs and decided to build > trunk with the address sanitizer enabled. > > The build failed with this output on Arch Linux. The build config is > the same as below except without optimization and with > -fsanitize=address in CFLAGS and LDFLAGS. > > Loading /tmp/makepkg/emacs-git/src/emacs/lisp/tooltip.el (source)... > Finding pointers to doc strings... > Finding pointers to doc strings...done > Dumping under the name emacs > ================================================================= > ==6778==ERROR: AddressSanitizer: global-buffer-overflow on address 0x000000cf9d70 at pc 0x7ffff6f2fd1a bp 0x7fffffffc6a0 sp 0x7fffffffbe48 > READ of size 3601184 at 0x000000cf9d70 thread T0 > #0 0x7ffff6f2fd19 in __interceptor_memcpy.part.38 (/usr/lib/libasan.so.1+0x2fd19) > #1 0x91421d in unexec /tmp/makepkg/emacs-git/src/emacs/src/unexelf.c:1060 This is expected. unexec and asan are not compatible. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."