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: Thu, 27 Jun 2024 08:33:51 +0300 Message-ID: <86ikxv6jb4.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> <86wmmb7kg2.fsf@gnu.org> <5e1e8a46816e8a53@mx2.catap.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6311"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 71712@debbugs.gnu.org To: kirill@korins.ky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 27 07:37:20 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 1sMhot-0001Q4-UX for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Jun 2024 07:37:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMhoc-0004cT-Kl; Thu, 27 Jun 2024 01:37:02 -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 1sMhoa-0004c4-Sd for bug-gnu-emacs@gnu.org; Thu, 27 Jun 2024 01:37:01 -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 1sMhoZ-00012H-T0 for bug-gnu-emacs@gnu.org; Thu, 27 Jun 2024 01:37:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sMhoc-0005mo-BM for bug-gnu-emacs@gnu.org; Thu, 27 Jun 2024 01:37: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: Thu, 27 Jun 2024 05:37:02 +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.171946657622166 (code B ref 71712); Thu, 27 Jun 2024 05:37:02 +0000 Original-Received: (at 71712) by debbugs.gnu.org; 27 Jun 2024 05:36:16 +0000 Original-Received: from localhost ([127.0.0.1]:40778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMhnr-0005lS-Si for submit@debbugs.gnu.org; Thu, 27 Jun 2024 01:36:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMhno-0005lC-VN for 71712@debbugs.gnu.org; Thu, 27 Jun 2024 01:36:15 -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 1sMhla-0004x5-6F; Thu, 27 Jun 2024 01:33:54 -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=zCk0IVc5oJGaiDYbrQirM3RuINVHMpMZdkmKPR2ngJk=; b=rQ6TW2PDl4ke U1UjNsDq15RBZzcSBRJCEzMduNHpSqeYY+JwqkgWKhcCYFfWNlQp/6+KffysOnG0G4M5qnQaJPmc7 LTkmgqJP/vclUMro2q9DIVXxYEU8barrlOX54/QGAstkgxu5APvotAgdfJufv1g6Alvbi1C45M+dA z0Tra9056n+QB2WXmoSBMcFzhJ6yONgI8I1O8J4MA/fbMLIIPFUV9IvHS15/u8uAKnt263v0B3gPi JcKHYCPPcEV+zCAV6gQzWtM0BA7hPr7JabnxiQnHc5d4L9co6MkTZ+ePARP5G9r3pzAdDvNbpNTHq UTrAE0ZOQgc5skNd0nOhOQ==; In-Reply-To: <5e1e8a46816e8a53@mx2.catap.net> (message from Kirill A. Korinsky on Wed, 26 Jun 2024 23:00:27 +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:287980 Archived-At: > Date: Wed, 26 Jun 2024 23:00:27 +0100 > From: Kirill A. Korinsky > Cc: luangruo@yahoo.com, > 71712@debbugs.gnu.org > > On Wed, 26 Jun 2024 17:11:41 +0100, > Eli Zaretskii wrote: > > > > 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. > > I tried to attach GDB to running process, or start a new emacs under GDB. > > Both attemt leads to massive amount of SIGSTOP signals ??? Which software on your system issues SIGSTOPs? And on what occasions? And why? FWIW, I'm running Emacs under GDB a lot (albeit not on OpenBSD), and I never see any SIGSTOP, unless I manually issue "kill -STOP" from the shell prompt, or something similar. > and if I switch handler to nostop, I stop to get it, but resulted > emacs is unresponsible. Please show the GDB command you typed to change the handling of SIGSTOP. > I've rebuild emacs with > > --enable-checking='yes,glyphs' --enable-check-lisp-object-type \ > CFLAGS='-O0 -g3' > > with hope that produced .core will be usefull. It will produce more useful core file, but as I explained, the problem happens before the segfault, and the important question is: which code between init_iterator and gui_produce_glyphs causes the frame's face cache to be reset without immediately recomputing the basic faces. This requires to examine the code _before_ the segfault location.