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.devel Subject: Re: MPS: Crash when switching to buffer Date: Mon, 01 Jul 2024 15:46:32 +0300 Message-ID: <861q4dfffb.fsf@gnu.org> References: <87v81pbgzi.fsf@localhost> <86a5j1fhd1.fsf@gnu.org> <87h6d9ia3e.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11806"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, gerd.moellmann@gmail.com, eller.helmut@gmail.com To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 01 14:48:07 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 1sOGRz-0002uI-J0 for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Jul 2024 14:48:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOGR7-0003fv-DC; Mon, 01 Jul 2024 08:47:13 -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 1sOGQu-0003fG-45 for emacs-devel@gnu.org; Mon, 01 Jul 2024 08:47:02 -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 1sOGQs-0002ry-QE; Mon, 01 Jul 2024 08:46:59 -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=sZHb9kNzFpUKm3UOjy3IE1248ixGxQz3FcYGjRPRB+Y=; b=RzvTXyDICC4x hCKyRONRCotMsbP7hEqKwoEKGgW62qn9LexYwz8/otXpdjwXWpQEN5fCGtQP6YkuYjGni2gKies2r DiVFuTGS16JbylstkGmHlnmFdOm0IL1NXBhsvkTysNDccFUbDHQ7nFemoUdjgTFELQhvXbpv6n14d 1PGlTz6gABu+A/NTCLtV5R19HJMZ3g24O5oxFpduT5u3qfXSAavNPI+wOCpVAt3ltV/12XtaexAxv wXn6jSRkLOTgNQIXyRNNsp9wYof3tueY3zH/ggg6/gnaO38AEy/N6dmmhMAcQO38+wQRyG2SWKjGQ jAzGhPSPBHtkjm009mSmZg==; In-Reply-To: <87h6d9ia3e.fsf@localhost> (message from Ihor Radchenko on Mon, 01 Jul 2024 12:13:25 +0000) 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:321016 Archived-At: > From: Ihor Radchenko > Cc: emacs-devel@gnu.org, gerd.moellmann@gmail.com, eller.helmut@gmail.com > Date: Mon, 01 Jul 2024 12:13:25 +0000 > > Eli Zaretskii writes: > > > This is not a crash when switching buffers, this is a crash in > > redisplay, when merging faces for display. > > > > What exactly is the cause of segfault in plist_get? Please look at > > the data there in the debugger and see which one(s) are invalid or > > corrupted. From the backtrace it sounds like the plist of the face is > > botched, but that's a guess. > > May you please provide more detailed instructions? Below. > > Is this reproducible? I tried switching between two buffers and didn't > > get any crashes here, FWIW. > > I've seen it multiple times after a few hours of using Emacs. > So, it is not reproducible reliably, unfortunately. > Next time, I will leave the gdb session running, so that I can check the > state in more details if necessary. Thanks. The commands below should be a starting point: (gdb) fr 10 Make sure frame #10 is indeed in plist_get, and adjust the frame number if not. (gdb) p tail (gdb) xtype (gdb) p prop (gdb) xtype (gdb) xsymbol Finally, for the brave: (gdb) pp tail