From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66416: GDB output from new crash Date: Sat, 14 Oct 2023 18:40:53 +0300 Message-ID: <83o7h1qkje.fsf@gnu.org> 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> <87mswll1u7.fsf@lan> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15702"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 66416@debbugs.gnu.org To: Yuchen Guo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 14 17:41:53 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 1qrgm0-0003sP-UE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Oct 2023 17:41:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qrglp-0007mU-DS; Sat, 14 Oct 2023 11:41:41 -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 1qrglm-0007mC-N3 for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 11:41:38 -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 1qrglm-0006XO-Ey for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 11:41:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qrgmA-0008BK-2X for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2023 11:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Oct 2023 15:42:02 +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.169729808331390 (code B ref 66416); Sat, 14 Oct 2023 15:42:02 +0000 Original-Received: (at 66416) by debbugs.gnu.org; 14 Oct 2023 15:41:23 +0000 Original-Received: from localhost ([127.0.0.1]:50232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrglX-0008AD-AA for submit@debbugs.gnu.org; Sat, 14 Oct 2023 11:41:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qrglV-0008A1-PA for 66416@debbugs.gnu.org; Sat, 14 Oct 2023 11:41:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qrgl2-0006TA-Qy; Sat, 14 Oct 2023 11:40:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YHmR10ikJ6Zy6RPniqdfm8dB3qBykL4HwWfTQ1S44cI=; b=OMj8frCqFUgN xjGxLYWin3BQ7LaraygR79JF3F5GL/pE46+R7fe7yFWPGqECvEUVTadu03Dqh+/md7mb+UBR4dfbc V0AQgL3zYCCiYjHqjNygYSuOJoeqyDoPz8anKgdJauA81GG0OCFtEhYZx0w1hLVq18QKQ+Im1kZOi 3t4zvJhxQojK4i/zRtUDoMca2fw6nVn77cdjuUJA1d99p/7xe2+RwuY2XvPuRbbIue9i40/B4h5MN GuA/V4OJ1Gp2/t5B01tJxG3FNA4HJPMgW8C1otSbfzbKyzPN3psgPx02KcQRqYH1X5NLdlHvwa4V0 eMHcWzXa+z2hT39E3VWd6Q==; In-Reply-To: <87mswll1u7.fsf@lan> (message from Yuchen Guo on Sat, 14 Oct 2023 14:23:44 +0000) 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:272435 Archived-At: > From: Yuchen Guo > Cc: Eli Zaretskii , 66416@debbugs.gnu.org > Date: Sat, 14 Oct 2023 14:23:44 +0000 > > 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 I think it is best to suppress memory-leak testing at this stage, since the problems we are investigating cannot be caused by leaks (if these leaks are real leaks at all).