From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#71929: 30.0.60; crash in mark_image_cache Date: Fri, 05 Jul 2024 17:36:49 +0800 Message-ID: <87wmm02n9q.fsf@yahoo.com> References: <87jzi17uot.fsf@melete.silentflame.com> <87y16h6fm3.fsf@melete.silentflame.com> <86jzi1aeje.fsf@gnu.org> <86ikxlae3p.fsf@gnu.org> <87tth4ofvp.fsf@melete.silentflame.com> <86jzi073r8.fsf@gnu.org> <871q4849yc.fsf@yahoo.com> <86frso70i4.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37411"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71929@debbugs.gnu.org, spwhitton@spwhitton.name To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 05 11:38:16 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 1sPfOS-0009Tw-M4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Jul 2024 11:38:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPfOD-0007TK-8L; Fri, 05 Jul 2024 05:38:01 -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 1sPfOC-0007TC-2X for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2024 05:38: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 1sPfOB-0007cr-QP for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2024 05:37:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sPfOE-0006Uf-Iv for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2024 05:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Jul 2024 09:38: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.172017225724919 (code B ref 71929); Fri, 05 Jul 2024 09:38:02 +0000 Original-Received: (at 71929) by debbugs.gnu.org; 5 Jul 2024 09:37:37 +0000 Original-Received: from localhost ([127.0.0.1]:43611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPfNp-0006Tq-Ey for submit@debbugs.gnu.org; Fri, 05 Jul 2024 05:37:37 -0400 Original-Received: from sonic314-22.consmr.mail.ne1.yahoo.com ([66.163.189.148]:35443) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPfNm-0006Tc-RV for 71929@debbugs.gnu.org; Fri, 05 Jul 2024 05:37:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1720172246; bh=IW1q9VZdz29argJ24vTbTkKRK7GVNbdm2yz+vRJ0Zvw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=SkgkjlBLzbKTnn3DlpNehYjJHqXhPQ4M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0le1aFaPN7Zcu3FG0SIxeMcWoKKcPbuAAdYz9k dFDXGh4h1gbH0jkkojG2PyKOzpL2.pD6W2k5Ee.EX894pD1pgrg.qvVFWA.CKGUObwYjixsFUfjO kJeI2eQsZkLPINq5BHLf78IUVTpKdYl_iGQ4xkl0a_HWIE5HaiN__PFNaP.jKEMrCS8HE0wh9Az8 HEdxQEKvu9vW2G_4RzzmfscNf86o7VFX__8c7zFvxsaB2u0c41eWmFZ4z0gwXBJeJN2QEEK9g0ZY j7MdveyhT45zPZKMtAg36NVoyk7yIUKTLHjZriAhq0u5ix8EiTuAbcQsK5f8lgmm5m80OMDj1GCl V2wYNbmt8IfTdscXe5HBsl8gGaDwhH2LHQZw3pBx4uRTqwjpNs6dgxY6z2pn9ZiG7HhW3pmU83d. s73l9NDLwINUTUgAuWfd70jaZd2s0RUgDL6ZkgrpHuPKpEBrvKaGCDdFlPyAwBKdNBs.ysM12a7Y bGYba8dIHzG30KK6MoaW.FT8Scn0OvbmSRTOh.XWdltby4mK.I9tmIIgaF0.e9rQFOMW6egLY_hj HJhxtkaZUurcdz2s67bxvkLWgaZ8cZTT.dEMF.hBV. X-Sonic-MF: X-Sonic-ID: b688eeab-6a50-496c-8ccb-a9d341632805 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Fri, 5 Jul 2024 09:37:26 +0000 Original-Received: by hermes--production-sg3-7b469d9f6-rjqq2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID e80ba66ef5a5b5f2517bd4042c27dfaf; Fri, 05 Jul 2024 09:37:19 +0000 (UTC) In-Reply-To: <86frso70i4.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 05 Jul 2024 10:37:23 +0300") X-Mailer: WebService/1.1.22464 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:288416 Archived-At: Eli Zaretskii writes: > How does this answer my question? I mentioned free_frame_faces. That's the only function where image caches are released. > The use case I was thinking of is that the image cache was shared, > then the last frame which shared the cache was deleted. How do we > make sure the cache is freed and set to NULL in this situation? The cache (whose refcount is 1) is released in free_frame_faces when it is called with this final frame, through free_image_cache, which also resets its `FRAME_IMAGE_CACHE' to NULL. > IOW, we seem to have a cache that is not NULL but is also not a real > cache, as it cannot be accessed. The question is how did that happen? I don't know. It can only be the case if its `refcount' was decremented excessively for a reason not yet understood.