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#71712: 29.3; Crash on OpenBSD Date: Wed, 26 Jun 2024 19:11:41 +0300 Message-ID: <86wmmb7kg2.fsf@gnu.org> References: <864j9lju9u.fsf@gnu.org> <861q4pi9ey.fsf@gnu.org> <87v82116cn.fsf@yahoo.com> <86bk3tgefm.fsf@gnu.org> <6d1bcb846388ac3d@mx2.catap.net> <86le2r977g.fsf@gnu.org> <00ce57affcc0f9c6@mx1.catap.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18558"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 71712@debbugs.gnu.org, kirill@korins.ky To: kirill@korins.ky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 26 18:12:25 2024 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 1sMVFw-0004YU-GA for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jun 2024 18:12:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMVFe-0003VT-BC; Wed, 26 Jun 2024 12:12:06 -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 1sMVFa-0003VE-E3 for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2024 12:12:03 -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 1sMVFX-00059Q-T3 for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2024 12:12:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sMVFa-00023f-0N for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2024 12:12: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: Wed, 26 Jun 2024 16:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71712 X-GNU-PR-Package: emacs Original-Received: via spool by 71712-submit@debbugs.gnu.org id=B71712.17194183197902 (code B ref 71712); Wed, 26 Jun 2024 16:12:01 +0000 Original-Received: (at 71712) by debbugs.gnu.org; 26 Jun 2024 16:11:59 +0000 Original-Received: from localhost ([127.0.0.1]:40178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMVFW-00023O-Vn for submit@debbugs.gnu.org; Wed, 26 Jun 2024 12:11:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMVFT-00022q-Bp for 71712@debbugs.gnu.org; Wed, 26 Jun 2024 12:11:56 -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 1sMVFJ-000587-HO; Wed, 26 Jun 2024 12:11:46 -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=o2ANYzv9tWTRVAgwVclGVA8diyI8Rd2QhSPb4o5dNZc=; b=kfqNKL1y9sVA u+0gTgULF5kjs0nrbIrmEchxlP2Os4qf/D1l0lOzNADfa37wFQJwOxwDD4pBvfmcVyDcJEvDi+bG6 o0TOkFfLpwOWE+0qmUkezdYz+9K9R3LviVxRK7JByNT6GeeWJkQyhOvdchK8+Vk8x1rJRqoz3uKSG nBJCl+7Z+YBPd3ZFBFQ9G+n5fsLK1BsfSc4THTts59aSINb0Ctykc9vH9d+DFFP2+qa2JpWWaGyHC TshxENCT9WHQzmxcfLcIbeslambKnSW28c9VElxhjF1gYmfOIx4q8vHQDqWjNg4zD2tGx2nWb1c+Z KW4AvTfjmMFnflAZlH/Khg==; In-Reply-To: <00ce57affcc0f9c6@mx1.catap.net> (message from Kirill A. Korinsky on Wed, 26 Jun 2024 16:58:24 +0100) 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:287956 Archived-At: > Date: Wed, 26 Jun 2024 16:58:24 +0100 > From: Kirill A. Korinsky > Cc: luangruo@yahoo.com, > 71712@debbugs.gnu.org > > On Wed, 26 Jun 2024 14:14:43 +0100, > Eli Zaretskii wrote: > > > > The way to find the culprit in these cases is to run the recipe with a > > watchpoint on the frame cache's 'used' count, and see which code > > causes it to be zeroed. Usually, it is some crazy Lisp run from one > > of the hooks which we so graciously offer for grabs. The tricky part > > is to find that code and/or the recipe which could be used to > > reproduce the problem at will, which I understand you don't have... > > Well, I don't have any reproducer, indeed. > > I may attach debuger and add watch point, but the best that I can share is > stacktrace when and if it happen. There's also the "reverse execution" in GDB. You could set a breakpoint where it segfaults, with the condition that face == 0, and when that breaks, do reverse-step until you get to the place where the frame's face_cache is emptied (cache->used == 0); then produce a backtrace, including xbacktrace, and hopefully we will see the culprit.