From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: [scratch/igc] 985247b6bee crash on Linux, KDE, Wayland Date: Fri, 06 Sep 2024 05:58:34 +0000 Message-ID: <87jzfpfhmf.fsf@protonmail.com> References: <8734mezkgo.fsf@gmail.com> <87h6aunilt.fsf@gmail.com> <87zfomqbgk.fsf@protonmail.com> <875xrani8k.fsf@gmail.com> <86bk122azc.fsf@gnu.org> <87v7zagcal.fsf@gmail.com> <867cbp3nw7.fsf@gnu.org> <87v7z9msrl.fsf@gmail.com> <874j6tqxyg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14477"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Eval EXEC Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 06 08:07:06 2024 Return-path: Envelope-to: ged-emacs-devel@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 1smS7e-0003eM-Ge for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Sep 2024 08:07:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smS7K-0001kg-Nu; Fri, 06 Sep 2024 02:06:46 -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 1smRzW-0007VX-Ix for emacs-devel@gnu.org; Fri, 06 Sep 2024 01:58:42 -0400 Original-Received: from mail-4316.protonmail.ch ([185.70.43.16]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smRzU-0004xh-Lu for emacs-devel@gnu.org; Fri, 06 Sep 2024 01:58:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1725602318; x=1725861518; bh=1vodhHtGsb7XUQCHDA3tXqM4/GF1JUmYcHRmTyA1rZs=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=XmkIu5hrYgkpVMb14GUPohcGC0DMXLUY4T+HgQXtdKJL2KI8Tk+o/jfv/fh4CriHO 5E416a2s7wYNg+F+uZsKcwR6gbkfX0c1jsUEkX/BI9+XrsaJUWbZWvvoDR5f4eguY5 d1YfVkVdRVcRF1O2837xSCNvVM0DCxAkfnnFmDwaEcEhJxWB3JrC31Y61Gha2zHjz9 CqdFwanTGdgPDG7Uxo0hRgxrLrJe5WykrJ+zWL+5IOmlCJt2G2QDSLo5ZOulG36rvc g+hY2R4tBRHbO8Dmk9aIUX8tfWUnxbmdBoGqMslu92ohaLYRuWCAuyJpbHpPeQt/M2 IXcqZaqNTOdKQ== In-Reply-To: <874j6tqxyg.fsf@gmail.com> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 36d4aca1ee816aefdac346d2ff4841100c47564a Received-SPF: pass client-ip=185.70.43.16; envelope-from=pipcet@protonmail.com; helo=mail-4316.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 06 Sep 2024 02:06:45 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323443 Archived-At: "Eval EXEC" writes: > Eval EXEC writes: > >> I recompiled commit 95a30325a84 (HEAD -> scratch/igc, origin/scratch/igc= ) >> * src/igc.c (fix_frame): Correct the previous change. >> >> After testing, I believe the issue has been resolved. > > scratch/igc 95a30325 crash again: > > I use latest scratch/igc commit: * 95a30325a84 - (HEAD -> scratch/igc, or= igin/scratch/igc) * src/igc.c (fix_frame): Fix last change. (8 hours ago) <= Eli Zaretskii> > > build it by: > > #!/usr/bin/env bash > set -ex > > make extraclean > > BRANCH_NAME=3D$(git branch --show-current | sed 's/\//_/g') > COMMIT_ID=3D$(git rev-parse --short=3D8 HEAD) > BUILD_DIR=3D${BRANCH_NAME}-commit-${COMMIT_ID} > INSTALL_PREFIX=3D$(realpath ../emacs-build/${BUILD_DIR}) > > ./autogen.sh > ./configure CFLAGS=3D'-g3 -ggdb -O2 -fno-omit-frame-pointer -mtune=3Dnati= ve -march=3Dnative' \ > --prefix=3D${INSTALL_PREFIX} \ > --with-mps=3Dyes \ > --with-imagemagick \ > --with-modules \ > --without-compress-install \ > --with-native-compilation --with-mailutils\ > --enable-link-time-optimization \ > --with-tree-sitter --with-xinput2 \ > --with-dbus --with-native-compilation=3Daot \ > --with-file-notification=3Dinotify\ > && make -j30 install > > rm ../emacs-build/emacs > ln -s ${INSTALL_PREFIX} ../emacs-build/emacs Thanks, and sorry you're seeing so many crashes. It's stable here, so we're going to need your help debugging this :-) Did you use any special options or patches when building mps (link time optimization or -O3, in particular)? Could you please try (but please keep the core file and binary for this crash) rebuilding mps with "-g3 -ggdb -O0" to see whether the problem is, maybe, mps rather than Emacs? That should also improve the debugging output, so please provide further crashes if they do happen with those options. > #9 0x0000000000690c05 in fix_lisp_obj (ss=3Dss@entry=3D0x7ffc7653e6f8, p= obj=3Dpobj@entry=3D0x7f08addd06b8) at /home/exec/Projects/git.savannah.gnu.= org/git/emacs/src/igc.c:975 This is the car of a cons cell, and it looks like it was freed by a previous garbage collection so it's no longer valid. > off =3D > client =3D > base =3D 0x7f088a262a50 Could you open the coredump again and run (gdb) x/32gx 0x7f088a262a00 so we can get an idea of what was allocated around that time? > res =3D > new_off =3D > p =3D 0x7f08addd06b8 > word =3D > tag =3D > _ss =3D 0x7ffc7653e6f8 > _mps_zs =3D > _mps_ufs =3D 36029896530599944 > _mps_wt =3D > _mps_w =3D > #10 0x00000000006919f8 in fix_cons (cons=3D0x7f08addd06b0, ss=3D0x7ffc765= 3e6f8) at /home/exec/Projects/git.savannah.gnu.org/git/emacs/src/igc.c:1751 This is the cons cell itself (the IGC header is what "cons" points to). Please also run (gdb) x/64gx 0x7f08addd0600 Thanks! Pip