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#71929: 30.0.60; crash in mark_image_cache Date: Fri, 05 Jul 2024 09:27:07 +0300 Message-ID: <86jzi073r8.fsf@gnu.org> References: <87jzi17uot.fsf@melete.silentflame.com> <87y16h6fm3.fsf@melete.silentflame.com> <86jzi1aeje.fsf@gnu.org> <86ikxlae3p.fsf@gnu.org> <87tth4ofvp.fsf@melete.silentflame.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23809"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 71929@debbugs.gnu.org To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 05 08:28:12 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 1sPcQV-0005yv-G5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Jul 2024 08:28:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPcQK-0006G4-VS; Fri, 05 Jul 2024 02:28:00 -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 1sPcQK-0006Fd-0C for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2024 02:28:00 -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 1sPcQJ-0001Ni-NF for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2024 02:27:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sPcQM-0006zl-Gy for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2024 02:28: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: Fri, 05 Jul 2024 06:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71929 X-GNU-PR-Package: emacs Original-Received: via spool by 71929-submit@debbugs.gnu.org id=B71929.172016084026827 (code B ref 71929); Fri, 05 Jul 2024 06:28:02 +0000 Original-Received: (at 71929) by debbugs.gnu.org; 5 Jul 2024 06:27:20 +0000 Original-Received: from localhost ([127.0.0.1]:43433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPcPg-0006yd-8E for submit@debbugs.gnu.org; Fri, 05 Jul 2024 02:27:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPcPe-0006yR-MP for 71929@debbugs.gnu.org; Fri, 05 Jul 2024 02:27:19 -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 1sPcPV-0007o7-Vh; Fri, 05 Jul 2024 02:27:10 -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=E+/p9nVgqzV4S3qoAXyxBTuz3mJwz7xVy8VdbN17RoA=; b=SvtBC8FXH7xY c0HFymTTHu8F/IpUyVwDveqvrqMYbip5jOYfQFdjaSa2FsWDyhSpOSXBVGTsrJNLmhiwltDR7ejIg v0poxu/fhm4kha+kyHvO5gkR5RE9G+k8LccuXDPIywkkbVfZGSIe7xfBCTk8edUZ/1gjcXq2tytAn 3r8wqwznQnF2OLhwHQvIFQA4y1OgyxqNizuZqoMDHKsAN6sgX3VGr9f8781/NLyK9ERFS1j+ZVvs8 FXMB0PRkU2VOBZLqfx8uhd8Mu3a7G8VSknv4CqJMxAJS1/DNcqJi3sWituFJECgr35CBZzBXzfJYZ EhHfKLjl/MPayQE1A3mAww==; In-Reply-To: <87tth4ofvp.fsf@melete.silentflame.com> (message from Sean Whitton on Fri, 05 Jul 2024 08:13:14 +0800) 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:288408 Archived-At: > From: Sean Whitton > Cc: 71929@debbugs.gnu.org > Date: Fri, 05 Jul 2024 08:13:14 +0800 > > Hello, > > On Thu 04 Jul 2024 at 09:03am +03, Eli Zaretskii wrote: > > >> What is the value of c->images? IOW, why did this line segfault? > > > > Also, what is the value of c->refcount? > > (gdb) p c > $1 = (struct image_cache *) 0x555557c89e20 > (gdb) xpr > There is no member named i. > > (gdb) p c->images > $2 = (struct image **) 0x35 > (gdb) xpr > Cannot access memory at address 0x35 > > (gdb) p c->refcount > $4 = 93823560581177 So it's garbled. Po Lu, how do we handle the "shared" image cache when a frame is deleted? Where's the code which frees the cache if the cache's refcount is one when the frame is deleted?