From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eval EXEC Newsgroups: gmane.emacs.devel Subject: Re: [scratch/igc] 985247b6bee crash on Linux, KDE, Wayland Date: Fri, 06 Sep 2024 14:32:40 +0800 Message-ID: <87o751z3zr.fsf@gmail.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> <87jzfpfhmf.fsf@protonmail.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="556"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 06 09:15:09 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 1smTBU-000AVg-7u for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Sep 2024 09:15:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smTAe-0003oN-AT; Fri, 06 Sep 2024 03:14:16 -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 1smSWX-0006lG-D1 for emacs-devel@gnu.org; Fri, 06 Sep 2024 02:32:49 -0400 Original-Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1smSWV-0000iR-EA; Fri, 06 Sep 2024 02:32:49 -0400 Original-Received: by mail-pf1-x443.google.com with SMTP id d2e1a72fcca58-717929b671eso1219434b3a.0; Thu, 05 Sep 2024 23:32:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725604364; x=1726209164; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Ps9/SHDYA6wSx4b0c2fakhq4tw2kixmZp0xeI5P1GH4=; b=FH3bvMgXbh9fPCqxW3Zz2FQ68KhNFTmOiYP4akak955MqsVYk9KcKCdiy3yLIaiXsw qAqWsmFCROD26t/hTn1mCEtFDide0eI2z4oU0dz6KFsvp/HRZ8Wli2HJVERYo/lG9Cr3 32iDNJxNfixABJK28rkjq7Iti2Nl/q1mjFXYgTLxMVU6MgksDyFLbC1gdmCNgQs403B8 gP23/jAgP7CkUTAFE+Yp+e4qTQM1C21vTVfahbTAh8JEiVqOzzNpXi0P34DTEkBw5Qlj KkiOTRbd0UKFD733eOacNeAi01PPeBy7BDbVsAvu6I132Yx48d1ZF9oT8zPT2A/KBAXJ FZpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725604364; x=1726209164; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ps9/SHDYA6wSx4b0c2fakhq4tw2kixmZp0xeI5P1GH4=; b=nZV6ra3hvDrggAHw+rgFYTiSlsOp2qGnjene1k8N8HQaX4CDgodpH0rF/Isov+L7sI FnDj7XN/Q5/VsR2rxQnljUCMhgc8VPW9KlFWRC4N9S5yPgXHrO5FJ8XejcyyqNUre9+I Va/VSywhRxMK2MsDtkJOnIH43HVV7jI/T4OBRUf+C4RFxVuvOQ9EihhJwxQCmLrZfQbu Es0n0Ux32cAKozlDRDvxo/5eD5yyvJe1uA1rJjqvRJ7Eu+wKJRvEQ9rPAXqWhHUyew+s tYIujYpOuxMwou6QUy5Hv/EtxaFbHpnxo+6RRdn/YovEN9qUn38RsbhD6Pyf7m5N5bRh yQDA== X-Forwarded-Encrypted: i=1; AJvYcCVBZTt8gIcs9v3sqb0bACMFzioOPsK/RJnFB3x6e1zl6TKelBLh8Bd/x1DBZ5nM8sQLjJa8Eiqa/GgX+Q==@gnu.org X-Gm-Message-State: AOJu0YzlJOvbM5kvZpBHRu1sGCBO2uFyOiJVwhtDJn2eX1LEIvJQNQMM LPV+3oDdwq9cU2754hZozFnR4PAbMwy/vJyAZCqSko6oBiE4RI0X X-Google-Smtp-Source: AGHT+IHU8nMo1XrwLrCZKtuc5m9nn1n3WcnN53lNpuRLkfitRQTioJdZ/KoJ/TttieABpyEmlz1XBw== X-Received: by 2002:a05:6a00:2e28:b0:70d:2725:ebe4 with SMTP id d2e1a72fcca58-718d5e5c377mr1663173b3a.13.1725604363962; Thu, 05 Sep 2024 23:32:43 -0700 (PDT) Original-Received: from localhost (144.34.182.14.16clouds.com. [144.34.182.14]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71778598ffasm4189587b3a.167.2024.09.05.23.32.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 23:32:43 -0700 (PDT) In-Reply-To: <87jzfpfhmf.fsf@protonmail.com> (Pip Cet's message of "Fri, 06 Sep 2024 05:58:34 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::443; envelope-from=execvy@gmail.com; helo=mail-pf1-x443.google.com 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_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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 03:14:11 -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:323451 Archived-At: Pip Cet writes: > "Eval EXEC" writes: > >> Eval EXEC writes: >> >>> I recompiled commit 95a30325a84 (HEAD -> scratch/igc, origin/scratch/ig= c) >>> * 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, o= rigin/scratch/igc) * src/igc.c (fix_frame): Fix last change. (8 hours ago) = >> >> 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=3Dnat= ive -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 :-) Thanks for the update. No problem. I'm really happy to debug with you all. =E5=85=A8=E4=B8=96=E7=95=8C Emacs =E7=94=A8=E6=88=B7=E8=81=94=E5=90=88=E8= =B5=B7=E6=9D=A5=EF=BC=8C Make Emacs Great Again! > Did you use any special options or patches when building mps (link time > optimization or -O3, in particular)? No special options or patches > 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. OK, I will rebuild mps and emacs with "-g3 -ggdb -O0" now >> #9 0x0000000000690c05 in fix_lisp_obj (ss=3Dss@entry=3D0x7ffc7653e6f8, = pobj=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 It's: (gdb) x/32gx 0x7f088a262a00 0x7f088a262a00: 0x00000000005a2a06 0x0000000000000000 0x7f088a262a10: 0x0000000322e4d00d 0x0000000000004c58 0x7f088a262a20: 0x0000000000000000 0x0000000322e4d10d 0x7f088a262a30: 0x00000000005a2a06 0x0000000000000000 0x7f088a262a40: 0x0000000322e4d20d 0x00000000005a2a0a 0x7f088a262a50: 0x0000000000000000 0x0000000322e4d30d 0x7f088a262a60: 0x0000000000004c58 0x0000000000000000 0x7f088a262a70: 0x0000000322e4d40d 0x00000000005a2a0a 0x7f088a262a80: 0x0000000000000000 0x0000000322e4d50d 0x7f088a262a90: 0x00000000005a2a0e 0x0000000000000000 0x7f088a262aa0: 0x0000000322e4d60d 0x0000000000004c58 0x7f088a262ab0: 0x0000000000000000 0x0000000322e4d70d 0x7f088a262ac0: 0x00000000005a2a0e 0x0000000000000000 0x7f088a262ad0: 0x0000000322e4d80d 0x00000000005a2a12 0x7f088a262ae0: 0x0000000000000000 0x0000000322e4d90d 0x7f088a262af0: 0x0000000000004c58 0x0000000000000000 > 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=3D0x7ffc76= 53e6f8) 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 It's=20 (gdb) x/64gx 0x7f08addd0600 0x7f08addd0600: 0x00007f08addd063b 0x00000003df45210d 0x7f08addd0610: 0x0000000000000000 0x00007f08addd0653 0x7f08addd0620: 0x00000003df45240d 0x0000000000012638 0x7f08addd0630: 0x00007f08addd066b 0x00000003df44f80d 0x7f08addd0640: 0x0000000000000000 0x00007f08addd0683 0x7f08addd0650: 0x00000003df45220d 0x000000000000a5d0 0x7f08addd0660: 0x00007f08addd069b 0x00000003df45250d 0x7f08addd0670: 0x0000000000000038 0x00007f08addd06b3 0x7f08addd0680: 0x00000003df44f90d 0x000000000000a5d0 0x7f08addd0690: 0x00007f08addd06cb 0x00000003df45230d 0x7f08addd06a0: 0x00007f08addd06e3 0x0000000000000000 0x7f08addd06b0: 0x00000003df45260d 0x00007f0889546b70 0x7f08addd06c0: 0x00007f08936d87d3 0x00000003df44fa0d 0x7f08addd06d0: 0x00007f08936ceb33 0x0000000000000000 0x7f08addd06e0: 0x00000003df44e70d 0x0000000000001538 0x7f08addd06f0: 0x00007f08936d8063 0x00007f089091ff80 0x7f08addd0700: 0x00007f08addd0963 0x0000000300000009 0x7f08addd0710: 0x00007f089091ff98 0x0000000000000000 0x7f08addd0720: 0x0000000300000009 0x00007f089091ffb0 0x7f08addd0730: 0x0000000000000000 0x0000000300000009 0x7f08addd0740: 0x00007f089091ffc8 0x00007f08addd0993 0x7f08addd0750: 0x0000000300000009 0x00007f089091ffe0 0x7f08addd0760: 0x00007f08addd09ab 0x0000000300000009 0x7f08addd0770: 0x00007f0890920000 0x0000000000000000 0x7f08addd0780: 0x0000000500000009 0x00007f08af841768 0x7f08addd0790: 0xffffffffffffffff 0x0000000000000000 0x7f08addd07a0: 0x00007f08addcd2e8 0x0000000300000009 0x7f08addd07b0: 0x00007f0890920018 0x00007f08addd09db 0x7f08addd07c0: 0x0000000300000009 0x00007f0890920030 0x7f08addd07d0: 0x00007f08addd09f3 0x0000000300000009 0x7f08addd07e0: 0x00007f0890920048 0x00007f08addd0a33 0x7f08addd07f0: 0x0000000500000009 0x00007f0890920060 Thanks, Eval Exec --=20