From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuchen Guo Newsgroups: gmane.emacs.bugs Subject: bug#66416: GDB output from new crash Date: Sat, 14 Oct 2023 14:23:44 +0000 Message-ID: <87mswll1u7.fsf@lan> References: <87il7cxoyc.fsf@lan> <87edi0xnqx.fsf@lan> <83wmvsta00.fsf@gnu.org> <87jzrs3x14.fsf@lan> <83r0m0t436.fsf@gnu.org> <878r88aqnj.fsf@yahoo.com> <875y3bhpfz.fsf@lan> <83wmvpqxhw.fsf@gnu.org> <87cyxha1i9.fsf@yahoo.com> <87sf6dl6lm.fsf@lan> <878r859xvq.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5211"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 66416@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 14 16:24:47 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qrfZO-00017V-QU for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Oct 2023 16:24:46 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrfZI-0003P4-U2; Sat, 14 Oct 2023 10:24:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrfZH-0003Ov-13 for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 10:24:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qrfZG-0002Zl-78 for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 10:24:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrfZd-0005eX-Pa for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 10:25:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuchen Guo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Oct 2023 14:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66416 X-GNU-PR-Package: emacs Original-Received: via spool by 66416-submit@debbugs.gnu.org id=B66416.169729345821670 (code B ref 66416); Sat, 14 Oct 2023 14:25:01 +0000 Original-Received: (at 66416) by debbugs.gnu.org; 14 Oct 2023 14:24:18 +0000 Original-Received: from localhost ([127.0.0.1]:50073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrfYw-0005dS-75 for submit@debbugs.gnu.org; Sat, 14 Oct 2023 10:24:18 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:59955) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrfYt-0005dE-9v for 66416@debbugs.gnu.org; Sat, 14 Oct 2023 10:24:17 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BA4F0240106 for <66416@debbugs.gnu.org>; Sat, 14 Oct 2023 16:23:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1697293425; bh=IVPUh1aa+O286oLsCe4wJYDpFp3J8TGsvOOO5qAIJvI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=i1YNF0NJeIKY112YkluIFGpb65Pe5j+7G/RCjsGNGHibIXg7MO91vP058mgoJ3ucy 6FNxj7vRifKAG/QjT0y2EHsYACjaRPDScmZ3+VpuZEkFLpru6gQGb9XefizrjzrR2O qwxQPXHEKNdJ3fw6m7FoYbYp0kwdBJa2Da/2t8faz8D5ZjB2G91Bi93MGrq28zY5t/ WfCPNpgG0U8GCSxuRqhvGCROH9iQnhVPRoS7ODbxqEb00lKr83pmJ3QE8Q6Wkw/L45 vRY5ViGWBibFljr3+CaxRl3o32Qqah74qTxSnnaWsHKj5XIDO+aSenhVT0TmCp2ZQ+ xOCjPEw0zcMwA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S75G91tt1z6tvq; Sat, 14 Oct 2023 16:23:45 +0200 (CEST) In-Reply-To: <878r859xvq.fsf@yahoo.com> (Po Lu's message of "Sat, 14 Oct 2023 20:44:41 +0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272424 Archived-At: Po Lu writes: > Is it possible to build Emacs with -fsanitize=address? Yes, I've added this argument to CFLAGS and am rebuilding now. Of note, I rebuilt pgtk Emacs without native compilation in order to save time. Emacs has not yet crashed since that rebuild. Don't know if this might be related. > This is further expounded upon in the GCC manual, and IME generally > proves fruitful for such spasmodic bugs, since you can run Emacs with > address sanitization enabled for extended periods of time as your > "daily driver" (vis-a-vis tools such as Valgrind, which incur a > prohibitive performance penalty). I'm currently starting Emacs server with systemd and hoping it would crash sooner, but not when I'm writing assignments. ;-) Update: the rebuild failed with the following output: ELC textmodes/less-css-mode.elc ELC textmodes/makeinfo.elc ELC textmodes/mhtml-mode.elc ELC textmodes/nroff-mode.elc ELC textmodes/page-ext.elc ELC textmodes/picture.elc ================================================================= ==14797==ERROR: LeakSanitizer: detected memory leaks Indirect leak of 1528 byte(s) in 2 object(s) allocated from: #0 0x7ffff79d7de7 in __interceptor_calloc (/nix/store/xq05361kqwzcdamcsxr4gzg8ksxrb8sg-gcc-12.3.0-lib/lib/libasan.so.8+0xbbde7) #1 0x74ddda in lmalloc /build/source/src/alloc.c:1365 Indirect leak of 1392 byte(s) in 8 object(s) allocated from: #0 0x7ffff79d83ff in __interceptor_malloc (/nix/store/xq05361kqwzcdamcsxr4gzg8ksxrb8sg-gcc-12.3.0-lib/lib/libasan.so.8+0xbc3ff) #1 0x74de07 in lmalloc /build/source/src/alloc.c:1365 SUMMARY: AddressSanitizer: 2920 byte(s) leaked in 10 allocation(s). make[3]: *** [Makefile:332: progmodes/typescript-ts-mode.elc] Error 1 make[3]: *** Waiting for unfinished jobs.... ================================================================= ==14881==ERROR: LeakSanitizer: detected memory leaks Indirect leak of 1528 byte(s) in 2 object(s) allocated from: #0 0x7ffff79d7de7 in __interceptor_calloc (/nix/store/xq05361kqwzcdamcsxr4gzg8ksxrb8sg-gcc-12.3.0-lib/lib/libasan.so.8+0xbbde7) #1 0x74ddda in lmalloc /build/source/src/alloc.c:1365 Indirect leak of 1392 byte(s) in 8 object(s) allocated from: #0 0x7ffff79d83ff in __interceptor_malloc (/nix/store/xq05361kqwzcdamcsxr4gzg8ksxrb8sg-gcc-12.3.0-lib/lib/libasan.so.8+0xbc3ff) #1 0x74de07 in lmalloc /build/source/src/alloc.c:1365 SUMMARY: AddressSanitizer: 2920 byte(s) leaked in 10 allocation(s). make[3]: *** [Makefile:332: textmodes/mhtml-mode.elc] Error 1 make[3]: Leaving directory '/build/source/lisp' make[2]: *** [Makefile:366: compile-main] Error 2