GNU bug report logs - #71929
30.0.60; crash in mark_image_cache

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Sean Whitton <spwhitton@HIDDEN>; dated Thu, 4 Jul 2024 02:34:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 9 Jul 2024 15:02:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 09 11:02:18 2024
Received: from localhost ([127.0.0.1]:53894 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sRCME-0002k3-3Y
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 11:02:18 -0400
Received: from sonic312-23.consmr.mail.ne1.yahoo.com ([66.163.191.204]:35044)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sRCMC-0002jn-ED
 for 71929 <at> debbugs.gnu.org; Tue, 09 Jul 2024 11:02:17 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720537324; bh=qD8+rxtuUgso0oFGZIHq6s25b4JdnIuNZ8SOOobOiIk=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=kTy8o58LwCEKstlR0KYXVztEVT15I6cDSuk05paR1Dx2PPKXsxp17PKmLYrekvdwiAYG2tga3e8xT9LG/Jof0hRtKfq0W0YIbRbBRKWNLN5zmIwFzwTJjPM5AHLG9wzhgsAvE9H+xmLyYbUOgfL6sRC4OXwAa/zjkHyEDnE9hNgnBBwEsn2pWu+fOq7NmnIqhSoC09TVrIXyFJAiQonda80HTLq6tvptz+UIsbThClEG8qxq/2/DduqoJZkOhrzH8n8VOvMqaIsDiXcdZXjBsw3KTLqRApSh3sSI6NZLz6wQTnfsh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CiJKDTlAGLQ9D1DU5KPt.25S7Sm
 Ia5.JXLBrf3zi9Xvx79UbPRm.rTIwQG_AotJ3511fxXpC91J0knM.sHLErl45vfEU0HIjkTpHUop
 0glc4_06pkhvmG5RlMRrnIRaQrmPvtn0b7fDfdTD58AFzzNlPIt5edrwF8K9jSb8oohYtXu7HS13
 UurIYX686adu902siAle6MudGQAah9ssb0jeMxSkfSrH1dMGW5jenFYxxgR.c.0P2eUQ9puLjOzO
 AClDnSjP4_8bPvrB3pOJt6qCnRxtEMJzRSjqGZLutiGn5fCtVdBqNfslr6LfNkqBmcekXX.Bc9Am
 kUlWaRAQ3XWy_x5FtJIgJX25Fkw37R4xaOwfoYrZpUA6rAve6pKw7HdP.qfVcm21e7dyNv9thAnK
 Ze54PT8L2x2D9VSoRSoz_krJ5aiKTQTh9yT_5OKagY7JG_ijZDz0J6v9ZUC_Kk8jfkGWzizWt2wl
 X9WszJhFVDuoiXOhl73Odoi_3t8dvLH7BpDhkwBhjIVgJQZQ.TTJ9r6yA15PB5y95u2CKn0m.CSp
 qqNsCHTSJl3LV8fv79MryD9umqlCYL5CZwMU.qml02kcD4NHNbSujthcRQ.ZhG_dKf8e1jStQ8k_
 Dpt6._I2FqYB6kNglyk_fvoE.W7vBzmkd9jOo3z.ge_PiinJNOhUcDpHVoF.dd9uSMZQTOufAKZ8
 yk0KDoo.GoFSmfQKJSiiG9gVVSicK.n8-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: a3869c71-5fe4-4ff5-8d4b-62c877979580
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic312.consmr.mail.ne1.yahoo.com with HTTP; Tue, 9 Jul 2024 15:02:04 +0000
Received: by hermes--production-sg3-7b469d9f6-d5m7f (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 45991399f5b5692d6e7f4b40636d1761; 
 Tue, 09 Jul 2024 15:02:00 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <86le2azm1f.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 09 Jul
 2024 17:18:20 +0300")
References: <87tth1rkfy.fsf@HIDDEN>
 <87plrprkb2.fsf@HIDDEN> <87frsl3l0p.fsf@HIDDEN>
 <87plrpvm2y.fsf@HIDDEN> <86a5it3cj2.fsf@HIDDEN>
 <875xth3aym.fsf@HIDDEN> <87ed851gwv.fsf@HIDDEN>
 <871q452u1b.fsf@HIDDEN> <ZozPMCE1s5tNvdpw@HIDDEN>
 <87frsi226v.fsf@HIDDEN> <Zo0-tNrra8qrdv1T@HIDDEN>
 <874j8y1x3d.fsf@HIDDEN> <86le2azm1f.fsf@HIDDEN>
Date: Tue, 09 Jul 2024 23:02:22 +0800
Message-ID: <s54v81e622p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22464
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 2377
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Po Lu <luangruo@HIDDEN>
>> Cc: 71929 <at> debbugs.gnu.org,  Eli Zaretskii <eliz@HIDDEN>
>> Date: Tue, 09 Jul 2024 22:03:34 +0800
>> 
>> OK, I believe I understand the source of these crashes.  A frame
>> whose
>> image cache is shared among several frames is destroyed, but its
>> `image_cache' field is never cleared after it is destroyed, as its
>> cache
>> continues to be referenced, and, if references to the dead frame
>> remain,
>> GC attempts to mark the said image cache although its validity is no
>> longer guaranteed.  In earlier Emacs versions, this problem would
>> have
>> appeared if references to dead frames were preserved beyond the
>> destruction of a display structure.  This has been corrected on the
>> emacs-30 branch, and therefore if the crashes do not resurface in a
>> few
>> days, I will close this ticket.
>
> Thanks, but I don't think I understand this part of the change you
> installed:
>
>   --- a/src/image.c
>   +++ b/src/image.c
>   @@ -2304,23 +2304,18 @@ uncache_image (struct frame *f, Lisp_Object spec)
>    free_image_cache (struct frame *f)
>    {
>      struct image_cache *c = FRAME_IMAGE_CACHE (f);
>   -  if (c)
>   -    {
>   -      ptrdiff_t i;
>   +  ptrdiff_t i;
>
>   -      /* Cache should not be referenced by any frame when freed.  */
>   -      eassert (c->refcount == 0);
>   +  /* Cache should not be referenced by any frame when freed.  */
>   +  eassert (c->refcount == 0);
>
>   -      for (i = 0; i < c->used; ++i)
>   -       free_image (f, c->images[i]);
>   -      xfree (c->images);
>   -      xfree (c->buckets);
>   -      xfree (c);
>   -      FRAME_IMAGE_CACHE (f) = NULL;
>   -    }
>   +  for (i = 0; i < c->used; ++i)
>   +    free_image (f, c->images[i]);
>   +  xfree (c->images);
>   +  xfree (c->buckets);
>   +  xfree (c);
>    }
>
> This basically removes the test of 'c' being non-NULL, leaving the
> rest of the code unchanged.  But if 'c' is NULL, dereferencing it in
> the following code will segfault, so why remove the test?  In
> particular, what about frames that were not yet allocated the image
> cache (could this happen with TTY frames, for example)?
>
> What am I missing here?

That free_frame_faces has been the sole caller of this function for
quite some time, and it already performs the same test around its call
to free_image_cache.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 9 Jul 2024 14:18:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 09 10:18:57 2024
Received: from localhost ([127.0.0.1]:53830 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sRBgH-0001UA-6D
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 10:18:57 -0400
Received: from eggs.gnu.org ([209.51.188.92]:47798)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sRBg0-0001Tg-3n
 for 71929 <at> debbugs.gnu.org; Tue, 09 Jul 2024 10:18:55 -0400
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 <eliz@HIDDEN>)
 id 1sRBfl-00016I-Qt; Tue, 09 Jul 2024 10:18:28 -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=J00V8diRSBpSwDkoN2Pc0CTYlq4avvv/9T17cUIZJwU=; b=JV5/oZfb02ff
 oX8i48CwdrXQfBrSP8z/HesMWvN7B18U2KvWAPmf4za5gBc9PPLkkyinNvIDYgCX14vORBG0NY8Gi
 0V1ElvlyCF4k30XGrfkE8GQgCy9H90ymwgkC0HQj6uwdy+hDKefIkjEJ6lKL5XlDj72vBoSiadPBV
 jfm4i33m+WFvqmcOTM6k7FCtomkZQn7i4UmanfwQn92B7DjnsdY1HAeQmYmb9C5Q9cANec4AhNLWw
 +i6SDSgsTBHIBBcpOQyaA+iHMx/IS9SSlwvVRLH4piRQ3XPOkJbF/9lUUmxoqGTD4o0KGr1AMPZ7x
 e8haP/mvcD4IWWYPhtqz7A==;
Date: Tue, 09 Jul 2024 17:18:20 +0300
Message-Id: <86le2azm1f.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
In-Reply-To: <874j8y1x3d.fsf@HIDDEN> (message from Po Lu on Tue, 09 Jul
 2024 22:03:34 +0800)
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
References: <87tth1rkfy.fsf@HIDDEN>
 <87plrprkb2.fsf@HIDDEN> <87frsl3l0p.fsf@HIDDEN>
 <87plrpvm2y.fsf@HIDDEN> <86a5it3cj2.fsf@HIDDEN>
 <875xth3aym.fsf@HIDDEN> <87ed851gwv.fsf@HIDDEN>
 <871q452u1b.fsf@HIDDEN> <ZozPMCE1s5tNvdpw@HIDDEN>
 <87frsi226v.fsf@HIDDEN> <Zo0-tNrra8qrdv1T@HIDDEN>
 <874j8y1x3d.fsf@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Po Lu <luangruo@HIDDEN>
> Cc: 71929 <at> debbugs.gnu.org,  Eli Zaretskii <eliz@HIDDEN>
> Date: Tue, 09 Jul 2024 22:03:34 +0800
> 
> OK, I believe I understand the source of these crashes.  A frame whose
> image cache is shared among several frames is destroyed, but its
> `image_cache' field is never cleared after it is destroyed, as its cache
> continues to be referenced, and, if references to the dead frame remain,
> GC attempts to mark the said image cache although its validity is no
> longer guaranteed.  In earlier Emacs versions, this problem would have
> appeared if references to dead frames were preserved beyond the
> destruction of a display structure.  This has been corrected on the
> emacs-30 branch, and therefore if the crashes do not resurface in a few
> days, I will close this ticket.

Thanks, but I don't think I understand this part of the change you
installed:

  --- a/src/image.c
  +++ b/src/image.c
  @@ -2304,23 +2304,18 @@ uncache_image (struct frame *f, Lisp_Object spec)
   free_image_cache (struct frame *f)
   {
     struct image_cache *c = FRAME_IMAGE_CACHE (f);
  -  if (c)
  -    {
  -      ptrdiff_t i;
  +  ptrdiff_t i;

  -      /* Cache should not be referenced by any frame when freed.  */
  -      eassert (c->refcount == 0);
  +  /* Cache should not be referenced by any frame when freed.  */
  +  eassert (c->refcount == 0);

  -      for (i = 0; i < c->used; ++i)
  -       free_image (f, c->images[i]);
  -      xfree (c->images);
  -      xfree (c->buckets);
  -      xfree (c);
  -      FRAME_IMAGE_CACHE (f) = NULL;
  -    }
  +  for (i = 0; i < c->used; ++i)
  +    free_image (f, c->images[i]);
  +  xfree (c->images);
  +  xfree (c->buckets);
  +  xfree (c);
   }

This basically removes the test of 'c' being non-NULL, leaving the
rest of the code unchanged.  But if 'c' is NULL, dereferencing it in
the following code will segfault, so why remove the test?  In
particular, what about frames that were not yet allocated the image
cache (could this happen with TTY frames, for example)?

What am I missing here?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 9 Jul 2024 14:04:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 09 10:04:03 2024
Received: from localhost ([127.0.0.1]:53640 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sRBRq-0000tx-Fs
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 10:04:03 -0400
Received: from sonic308-56.consmr.mail.ne1.yahoo.com ([66.163.187.31]:34169)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sRBRp-0000tS-4X
 for 71929 <at> debbugs.gnu.org; Tue, 09 Jul 2024 10:04:01 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720533828; bh=48ChM5R1XdITiBfQauKRIYJRgrRcQW3XMdIvZ/tlAsI=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=I2gq/dR94o4Hl2713weMLZNTysUeLxmYT7QyIWUV3IpLWJw0RO0WAFOW6JqkcyV2AvldpzZ0tvdGlcNiZ8t4tJ9leWStNwpLvfc+JJF+f+RxVnL6aifYQtLz4agYrqFIyp4ss93EwShZ9IbxViPZIGMiNcpskYMfI5w7jH36MiYk6W7fgA6VVRoraQy/ghTCSqEa5IOf4Ztw37sVrLVN9JNg6pDIfgUzbjadDNQuVEBc3CgpLysT681TgFYiP7z599RsVDUz0tZMpdIMMBvKlp3lkdNUBIKrxqF/4CTxS5EO4xM3QIpanP0DtlQeK3kzUunOxA4NZYk1Gy61xHTR/w==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720533828; bh=p9EpLatzKnwppQdmjrLFz/w2FLgR0G/vxaDn8o6VyMx=;
 h=X-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RIuNqN7ZOxQb4llEuEJj8_C
 K72A4f0moZyAOafl.Q4n6fHeYR1S3sfrKS_zn30r883XtUG8HceS_RaZTIdOHRACTikbdjrtq3NA
 vz_yqjriWAxgMxwajIsAwA4fa1wGqeWpDCv0BVmPUaJVcgsfnv.3_TAY6NtDdSz37DQ7HOJsVffr
 Pru8X8k_S6hPD2vyJOIFlmd5.nwgSDnetz3HBlEnvVeskPfPoaZdJCGO72M5ghoqpuzdNtCURjfs
 8hVJsMrOKRhK6IAdEEQrHwkAPJ7G9S6Hy6TM4erTbD0J9S35YsfZU_fVypD8r.1O.Vl_gmF8aUjW
 ToL5ssbwUogtE4n453ROMkZXviHO8ANqAXX5Gd5N48G1ZICckoYeHOoSKKz9S6vmSFtDS8xxjaDu
 sUsi_V96KRs88PPLBfVErWEl2Qkm75n_0PUEdaMZd__qBx1p_HTkeDrzgptBTr3UrE.3jSDknJzY
 xB3APfmSqRp7Bqzt6WtP66aNm18GIBMSTIOVEPiviZeSG1dCSLsJW7CoyrUFEy7L6vdKuqHyx_qF
 e69rzgtXk5JZlHQEpqLiPal4aQB3lISY41eOYMLy79UyLlfLF2KmscQ--
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: e9445430-2a98-43c2-9e92-20afc9c76d93
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic308.consmr.mail.ne1.yahoo.com with HTTP; Tue, 9 Jul 2024 14:03:48 +0000
Received: by hermes--production-sg3-7b469d9f6-6hvhq (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID b9c3c324bc6dcea26c01c82cb14cc2dc; 
 Tue, 09 Jul 2024 14:03:43 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <Zo0-tNrra8qrdv1T@HIDDEN> (Sean Whitton's message
 of "Tue, 9 Jul 2024 21:44:20 +0800")
References: <87tth1rkfy.fsf@HIDDEN>
 <87plrprkb2.fsf@HIDDEN> <87frsl3l0p.fsf@HIDDEN>
 <87plrpvm2y.fsf@HIDDEN> <86a5it3cj2.fsf@HIDDEN>
 <875xth3aym.fsf@HIDDEN> <87ed851gwv.fsf@HIDDEN>
 <871q452u1b.fsf@HIDDEN> <ZozPMCE1s5tNvdpw@HIDDEN>
 <87frsi226v.fsf@HIDDEN> <Zo0-tNrra8qrdv1T@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
Date: Tue, 09 Jul 2024 22:03:34 +0800
Message-ID: <874j8y1x3d.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22464
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 2166
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Sean Whitton <spwhitton@HIDDEN> writes:

> On Tue, Jul 09, 2024 at 08:13:28PM +0800, Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote:
>> Sean Whitton <spwhitton@HIDDEN> writes:
>> 
>> > On Sun, Jul 07, 2024 at 09:47:28PM +0800, Po Lu wrote:
>> >
>> >> I must ask you to bear with me again, as another detail was not
>> >> correctly accounted for in the last patch.  Please retry with this:
>> >
>> > This just crashed.  Apparent trigger was 'emacsclient -t', this time.
>> >
>> > verify_image_cache_refcount is not in the backtrace.
>> >
>> > I should be able to keep it open in a stable build of Emacs for at least 24h
>> > if you'd like to ask for more.
>> >
>> > Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
>> > 0x00005555557a21cd in mark_image_cache (c=0x55555672cc50) at image.c:3776
>> > 3776		if (c->images[i])
>> 
>> And this is a segmentation fault, not a trap.  Can you establish when
>> the frame in question was created, how and where it received its current
>> image cache, and whether this frame exists in Vframe_list?
>
> I'm afraid I'm not familiar with any of these data structures.  I don't know
> what these image caches are.
>
> In the mark_frame stack frame I did "p f" to obtain the address
> 0x555559f61330.  I then did the "while $cons" thing you posted in another
> message, and searched its output for this address, and it is not present.
>
> So perhaps this means the frame is not present in Vframe_list.

OK, I believe I understand the source of these crashes.  A frame whose
image cache is shared among several frames is destroyed, but its
`image_cache' field is never cleared after it is destroyed, as its cache
continues to be referenced, and, if references to the dead frame remain,
GC attempts to mark the said image cache although its validity is no
longer guaranteed.  In earlier Emacs versions, this problem would have
appeared if references to dead frames were preserved beyond the
destruction of a display structure.  This has been corrected on the
emacs-30 branch, and therefore if the crashes do not resurface in a few
days, I will close this ticket.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 9 Jul 2024 13:44:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 09 09:44:40 2024
Received: from localhost ([127.0.0.1]:52432 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sRB96-00006Y-3D
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 09:44:40 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:49718)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sRB93-00006F-5m
 for 71929 <at> debbugs.gnu.org; Tue, 09 Jul 2024 09:44:38 -0400
DKIM-Signature: a=rsa-sha256;
 b=vdgfNTbOwcph4o85j1eTzOy1y7fWcH8vqDYGF6yS37B5P9ZjMrkiIiBilKzVwqiJB1nzNoC7GHkkVAp6a3ay9mBbsX05wbpqS2/f+42mzeGsZfg9Fu/tihrbOfyWzZ1Y678lpPW98Md1XNEBnkFQBzaEHaaQZzTOLrXWIEycwfZEJVYDEm0zzcnv2CNxNBDQzVIxXwo9g4TQy/8Uozxk0LT6wMaVuFuqN6jYc8s59ffu1I3Zg1Fl51SVtb/DB3YSLI0RK8a9k8vF6CtVxCoASa3uz3vlSztxvcISke5KB26DYZzJYAJob10Wd37LrPNxK1OGa1zstzOcUhxwOmSd+Q==;
 s=purelymail2; d=spwhitton.name; v=1;
 bh=/iEApPMVxE74LX+Uhdgqpi8fM/jZ5azkcH2uuylEkmg=;
 h=Received:Received:Date:From:To:Subject; 
DKIM-Signature: a=rsa-sha256;
 b=FjegK1ZlIe/3DQcFkswmidhQfxbK6bteSB1LNl1ed3ssiHpbydi8LsmCHmdcCAnOU/2qV5Msa6uPg2QX43iRZEg0MP9tl3HbS4yrDM6bV4ZFhNjFr3h35n+bqaLhkh3d5XDM9H/uOX6KJExY8fE+spzrcox4zdAkqiqnziBmA22yM55cRqKntGX1A9YeW4sWtJK3I3uLMywkz6nJjg96JAeTb3U2H0LJWq/h7qKBEQD81Mtc16sb6d4Kxlg1K6aXequRBttPrKh6GVGCxT6uvtNtEUImcESrhGZiziECTXkB68BTa0IM37xx/VEmC7Ypi0uDEbLuXnsvKeO+inDmnQ==;
 s=purelymail2; d=purelymail.com; v=1;
 bh=/iEApPMVxE74LX+Uhdgqpi8fM/jZ5azkcH2uuylEkmg=;
 h=Feedback-ID:Received:Received:Date:From:To:Subject; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -498828403; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Tue, 09 Jul 2024 13:44:24 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 65EE37E977D; Tue,  9 Jul 2024 21:44:20 +0800 (CST)
Date: Tue, 9 Jul 2024 21:44:20 +0800
From: Sean Whitton <spwhitton@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
Message-ID: <Zo0-tNrra8qrdv1T@HIDDEN>
References: <87tth1rkfy.fsf@HIDDEN>
 <87plrprkb2.fsf@HIDDEN> <87frsl3l0p.fsf@HIDDEN>
 <87plrpvm2y.fsf@HIDDEN> <86a5it3cj2.fsf@HIDDEN>
 <875xth3aym.fsf@HIDDEN> <87ed851gwv.fsf@HIDDEN>
 <871q452u1b.fsf@HIDDEN>
 <ZozPMCE1s5tNvdpw@HIDDEN>
 <87frsi226v.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87frsi226v.fsf@HIDDEN>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Tue, Jul 09, 2024 at 08:13:28PM +0800, Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote:
> Sean Whitton <spwhitton@HIDDEN> writes:
> 
> > On Sun, Jul 07, 2024 at 09:47:28PM +0800, Po Lu wrote:
> >
> >> I must ask you to bear with me again, as another detail was not
> >> correctly accounted for in the last patch.  Please retry with this:
> >
> > This just crashed.  Apparent trigger was 'emacsclient -t', this time.
> >
> > verify_image_cache_refcount is not in the backtrace.
> >
> > I should be able to keep it open in a stable build of Emacs for at least 24h
> > if you'd like to ask for more.
> >
> > Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
> > 0x00005555557a21cd in mark_image_cache (c=0x55555672cc50) at image.c:3776
> > 3776		if (c->images[i])
> 
> And this is a segmentation fault, not a trap.  Can you establish when
> the frame in question was created, how and where it received its current
> image cache, and whether this frame exists in Vframe_list?

I'm afraid I'm not familiar with any of these data structures.  I don't know
what these image caches are.

In the mark_frame stack frame I did "p f" to obtain the address
0x555559f61330.  I then did the "while $cons" thing you posted in another
message, and searched its output for this address, and it is not present.

So perhaps this means the frame is not present in Vframe_list.



-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 9 Jul 2024 12:14:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 09 08:14:13 2024
Received: from localhost ([127.0.0.1]:52314 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sR9jZ-00064V-GB
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 08:14:13 -0400
Received: from sonic316-20.consmr.mail.ne1.yahoo.com ([66.163.187.146]:38612)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sR9jX-00064I-Hc
 for 71929 <at> debbugs.gnu.org; Tue, 09 Jul 2024 08:14:11 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720527239; bh=L3yNtKh66T1oQE6NmOGdv+FfB1yyj5uCHu4/OrDh+jk=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=S0hlI9QZGhRYDLt9tk1ocNh9N788hHQicXF6yE7ZfwNPb8Qhck9413XZXzoiIBlwfdG72Yn1flEPRCvuaCiL2QCPOe3sNeG4+dOo7tiLYfzRuZItmmgN/nITg55OcCyj6RVtPb1IWxbMfmXQfSjuc7LXfSLcHqErkiU6bY6imMekDqspnbbs/43p4Lq57ieAbpiDOthSDFgVucNOm9UDSB23p1xMpHQ0+L0B+PiGAnFj53Gc/4fyyGUr8bjzyvoylvGcETCKB3vwCXOnp6Vy6r9zmhSNJYNd8oGfmqHWqBzliunbUU6tV5C9liVG65B4HINyqz355hzX2vx91yFAXg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720527239; bh=5HEL3he1AOWG3LN73+MJq2MYVSqTwvXM3yYbGoRmSw8=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=HEcKGThv63xxA4oDjzFiOL/AjTo3DqQ9ec5E6xQx8aJw/4C7tCtPWwG+V0vzqz1eQyoB+koOPmrNwQLZVRnkexQ56+ZJN2cxptdk64CllmBxmoLrsa2u2T34BbhtE/0tSFm8DrEJD+2ZTbMmw74eWmJIQ2G0x/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 sXB.VS_AvzGnWiU9NKbAdLnraesggEypiRXCIEhzexbWJZCSXKs65noQtxLUjpKFEm94wfd8qYe8
 UHxSgZ8rSVqQSGaEiZMCF8N6.773TLTKwawmlsju47UU1h8AhOD4hTmpoTL6z4dOr7_OatKK_MpX
 6vPvUATkiP4XkYHXji4mjD4yBXoy45ozW6.jIjztvWuzCrrquIvn9t86LJZxI5rNcQ_A_9Pl6xi3
 ZMW06Ghf02oglA.kNrs_MjPKx6.pmTGl8.ov5cl62jL_OAEnccbvsi4jdUK_7Oha8lN273ogYABp
 FTzu.jyW5ieJgI3xdVyJ50kFfqKE9g8UOjgW.y_PiHNw_Jr1TfVdaVtOBkGas1wepDDr2KTuF1gy
 06EFts1gT8Maqj2QqfcKULyU54tGM6vcoGxXjggjsk.r3Mc6M_PXw
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: dbb681c9-a08c-4ef8-aeea-ed2614172757
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic316.consmr.mail.ne1.yahoo.com with HTTP; Tue, 9 Jul 2024 12:13:59 +0000
Received: by hermes--production-sg3-7b469d9f6-62qs7 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID a81bb4bf1ca357c3b23ffa044ed2118e; 
 Tue, 09 Jul 2024 12:13:44 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <ZozPMCE1s5tNvdpw@HIDDEN> (Sean Whitton's message
 of "Tue, 9 Jul 2024 13:48:32 +0800")
References: <87cynrjl84.fsf@HIDDEN> <87o77b2gsr.fsf@HIDDEN>
 <87tth1rkfy.fsf@HIDDEN>
 <87plrprkb2.fsf@HIDDEN> <87frsl3l0p.fsf@HIDDEN>
 <87plrpvm2y.fsf@HIDDEN> <86a5it3cj2.fsf@HIDDEN>
 <875xth3aym.fsf@HIDDEN> <87ed851gwv.fsf@HIDDEN>
 <871q452u1b.fsf@HIDDEN> <ZozPMCE1s5tNvdpw@HIDDEN>
Date: Tue, 09 Jul 2024 20:13:28 +0800
Message-ID: <87frsi226v.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22464
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1066
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Sean Whitton <spwhitton@HIDDEN> writes:

> On Sun, Jul 07, 2024 at 09:47:28PM +0800, Po Lu wrote:
>
>> I must ask you to bear with me again, as another detail was not
>> correctly accounted for in the last patch.  Please retry with this:
>
> This just crashed.  Apparent trigger was 'emacsclient -t', this time.
>
> verify_image_cache_refcount is not in the backtrace.
>
> I should be able to keep it open in a stable build of Emacs for at least 24h
> if you'd like to ask for more.
>
> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
> 0x00005555557a21cd in mark_image_cache (c=0x55555672cc50) at image.c:3776
> 3776		if (c->images[i])

And this is a segmentation fault, not a trap.  Can you establish when
the frame in question was created, how and where it received its current
image cache, and whether this frame exists in Vframe_list?

If the answer to the final question is no, can anyone surmise how it is
that a live frame's image cache might be prematurely deleted without its
references being detected by verify_image_cache_refcount?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 9 Jul 2024 11:37:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 09 07:37:35 2024
Received: from localhost ([127.0.0.1]:52240 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sR9A7-00059S-IS
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 07:37:35 -0400
Received: from eggs.gnu.org ([209.51.188.92]:41180)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sR9A5-00059F-Nb
 for 71929 <at> debbugs.gnu.org; Tue, 09 Jul 2024 07:37:34 -0400
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 <eliz@HIDDEN>)
 id 1sR99u-0003Go-4Z; Tue, 09 Jul 2024 07:37:22 -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=Q0xW38VgpEqv+lA6RryzLziQ9bO6a7lnyhxnzx8mJBI=; b=VdZMGBsKC+/E
 5G9Z+jAN6DtQDe6lgxmiQ7q7HmPUWo198aHmijRKdp0gs5ioyM4RO+ewrwjDYzcSyWfxwMNyVHO7r
 oM9ntfZfZIQyxa+icns2G7LEHScOM9XNAqfjuw/A0vg5vW3W/alaRcxlLhvpL6UHl/7fRFCKcg7bE
 ptZPO4STlqwFM0TzB1vTsWsxtveO8D66DPduFJCTuxt4k33gV/01D1buXkVE2ZCEMQ2SQd5gmmF4f
 UMBwIATwbvifReOFgtqPuWeXlJPKeY011fPQ3ghVImmrdiybdttkZuk2vxszypw8N5QWcYrIkah4V
 /Es51Vx7JlD91v77LEuOsQ==;
Date: Tue, 09 Jul 2024 14:37:19 +0300
Message-Id: <86plrmzths.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <ZozPMCE1s5tNvdpw@HIDDEN> (message from Sean
 Whitton on Tue, 9 Jul 2024 13:48:32 +0800)
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
References: <87cynrjl84.fsf@HIDDEN> <87o77b2gsr.fsf@HIDDEN>
 <87tth1rkfy.fsf@HIDDEN>
 <87plrprkb2.fsf@HIDDEN> <87frsl3l0p.fsf@HIDDEN>
 <87plrpvm2y.fsf@HIDDEN> <86a5it3cj2.fsf@HIDDEN>
 <875xth3aym.fsf@HIDDEN> <87ed851gwv.fsf@HIDDEN>
 <871q452u1b.fsf@HIDDEN> <ZozPMCE1s5tNvdpw@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71929
Cc: luangruo@HIDDEN, 71929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Tue, 9 Jul 2024 13:48:32 +0800
> From: Sean Whitton <spwhitton@HIDDEN>
> Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
> 
> On Sun, Jul 07, 2024 at 09:47:28PM +0800, Po Lu wrote:
> 
> > I must ask you to bear with me again, as another detail was not
> > correctly accounted for in the last patch.  Please retry with this:
> 
> This just crashed.  Apparent trigger was 'emacsclient -t', this time.
> 
> verify_image_cache_refcount is not in the backtrace.
> 
> I should be able to keep it open in a stable build of Emacs for at least 24h
> if you'd like to ask for more.

Thanks.  How many frames, approximately, were alive in this session
when it crashed?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 9 Jul 2024 05:48:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 09 01:48:55 2024
Received: from localhost ([127.0.0.1]:51942 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sR3ig-0007t2-HW
	for submit <at> debbugs.gnu.org; Tue, 09 Jul 2024 01:48:55 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:57594)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sR3ie-0007so-8k
 for 71929 <at> debbugs.gnu.org; Tue, 09 Jul 2024 01:48:53 -0400
DKIM-Signature: a=rsa-sha256;
 b=srA8AVT7k17kap8DopEksNceXrpCM6jsisCr/2GCTdLxyNueGQm15KL4EPbXYpobA1vqFO1n3mfexcTbja9XjLLVy0rfZnv5vL4FqicJN6OLBOzl8cZjFPMUEOX2Zp1X7qpnkE4A0ambqOVKe3wZjM+zEFNdgK1WvvLtwV3JYHdJ1KOiAOgKZ7xSmPcWt4eYxa/37AmeCjCScFnvhs0tlV+X6MPx98gISbwmE2R9RKreiA0Nl2vRDF7JVqQVNIIZ4F/SD9hAFMurOvfH1Tsn1TbNTQh0ygVRxSMeNcmwzH2/VRylaaxhaMad/5bP5Tui0sNXlPwg3/GrFJpswB0GsA==;
 s=purelymail2; d=spwhitton.name; v=1;
 bh=FXDQO7l4/ogerBhUS3BnTjj/0P6mXj4cURhQyLF24tw=;
 h=Received:Received:Date:From:To:Subject; 
DKIM-Signature: a=rsa-sha256;
 b=0RW9JwxBoimFw3oBUW0bgwcWGLG5xYIA6+/G5Al61Rn/xl/zFXr3YGhkQbY19p+N7mpMr74THZeD5HnPDyROBcUsSBF2GdENWCGUfHL78v9wcH2jmxtq9htYVmTQZkjOhdOvX8EWgQ34AJBitxWaOrNinXDJKtYFLfpZo/LWFr/icEPfwYtiLjhCUDwkbLf2yG+pP2K7YWToD7Pw5elsm7qHDvCf+BbWeJysrCOg8A9pk/Fh60jy9XTj369PiDxXeJhUJAmDSf7lx79ug8dFf/NkoHKAwdTEVigmjFxI/wuGGCfa7eLMhtr9AcNAYqFm2xq80uX5WLexGQZNBrq+eA==;
 s=purelymail2; d=purelymail.com; v=1;
 bh=FXDQO7l4/ogerBhUS3BnTjj/0P6mXj4cURhQyLF24tw=;
 h=Feedback-ID:Received:Received:Date:From:To:Subject; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 682876348; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Tue, 09 Jul 2024 05:48:36 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id D945D7E070A; Tue,  9 Jul 2024 13:48:32 +0800 (CST)
Date: Tue, 9 Jul 2024 13:48:32 +0800
From: Sean Whitton <spwhitton@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
Message-ID: <ZozPMCE1s5tNvdpw@HIDDEN>
References: <87cynrjl84.fsf@HIDDEN> <87o77b2gsr.fsf@HIDDEN>
 <87tth1rkfy.fsf@HIDDEN>
 <87plrprkb2.fsf@HIDDEN> <87frsl3l0p.fsf@HIDDEN>
 <87plrpvm2y.fsf@HIDDEN> <86a5it3cj2.fsf@HIDDEN>
 <875xth3aym.fsf@HIDDEN> <87ed851gwv.fsf@HIDDEN>
 <871q452u1b.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <871q452u1b.fsf@HIDDEN>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Sun, Jul 07, 2024 at 09:47:28PM +0800, Po Lu wrote:

> I must ask you to bear with me again, as another detail was not
> correctly accounted for in the last patch.  Please retry with this:

This just crashed.  Apparent trigger was 'emacsclient -t', this time.

verify_image_cache_refcount is not in the backtrace.

I should be able to keep it open in a stable build of Emacs for at least 24h
if you'd like to ask for more.

Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
0x00005555557a21cd in mark_image_cache (c=0x55555672cc50) at image.c:3776
3776		if (c->images[i])

  0 in mark_image_cache of image.c:3776
  1 in mark_frame of alloc.c:7063
  2 in process_mark_stack of alloc.c:7303
  3 in mark_objects of alloc.c:7512
  4 in mark_vectorlike of alloc.c:6891
  5 in mark_frame of alloc.c:7037
  6 in process_mark_stack of alloc.c:7303
  7 in mark_objects of alloc.c:7512
  8 in mark_vectorlike of alloc.c:6891
  9 in mark_window of alloc.c:7072
 10 in process_mark_stack of alloc.c:7307
 11 in mark_object of alloc.c:7504
 12 in mark_char_table of alloc.c:6920
 13 in mark_char_table of alloc.c:6917
 14 in process_mark_stack of alloc.c:7341
 15 in mark_objects of alloc.c:7512
 16 in mark_vectorlike of alloc.c:6891
 17 in mark_buffer of alloc.c:6954
 18 in process_mark_stack of alloc.c:7299
 19 in mark_object of alloc.c:7504
 20 in mark_interval_tree_1 of alloc.c:1529
 21 in traverse_intervals_noorder of intervals.c:243
 22 in traverse_intervals_noorder of intervals.c:248
 23 in mark_interval_tree of alloc.c:1538
 24 in process_mark_stack of alloc.c:7264
 25 in mark_objects of alloc.c:7512
 26 in mark_vectorlike of alloc.c:6891
 27 in mark_buffer of alloc.c:6954
 28 in process_mark_stack of alloc.c:7299
 29 in mark_object of alloc.c:7504
 30 in mark_interval_tree_1 of alloc.c:1529
 31 in traverse_intervals_noorder of intervals.c:243
 32 in mark_interval_tree of alloc.c:1538
 33 in process_mark_stack of alloc.c:7264
 34 in mark_object of alloc.c:7504
 35 in mark_char_table of alloc.c:6920
 36 in mark_char_table of alloc.c:6917
 37 in process_mark_stack of alloc.c:7341
 38 in mark_objects of alloc.c:7512
 39 in mark_vectorlike of alloc.c:6891
 40 in mark_buffer of alloc.c:6954
 41 in process_mark_stack of alloc.c:7299
 42 in mark_object of alloc.c:7504
 43 in mark_char_table of alloc.c:6920
 44 in mark_char_table of alloc.c:6917
 45 in process_mark_stack of alloc.c:7341
 46 in mark_object of alloc.c:7504
 47 in mark_char_table of alloc.c:6920
 48 in mark_char_table of alloc.c:6917
 49 in process_mark_stack of alloc.c:7341
 50 in mark_object of alloc.c:7504
 51 in mark_char_table of alloc.c:6920
 52 in mark_char_table of alloc.c:6917
 53 in process_mark_stack of alloc.c:7341
 54 in mark_objects of alloc.c:7512
 55 in mark_vectorlike of alloc.c:6891
 56 in mark_buffer of alloc.c:6954
 57 in process_mark_stack of alloc.c:7299
 58 in mark_object of alloc.c:7504
 59 in mark_char_table of alloc.c:6920
 60 in mark_char_table of alloc.c:6917
 61 in process_mark_stack of alloc.c:7341
 62 in mark_objects of alloc.c:7512
 63 in mark_vectorlike of alloc.c:6891
 64 in mark_buffer of alloc.c:6954
 65 in process_mark_stack of alloc.c:7299
 66 in mark_objects of alloc.c:7512
 67 in mark_vectorlike of alloc.c:6891
 68 in mark_buffer of alloc.c:6954
 69 in process_mark_stack of alloc.c:7299
 70 in mark_object of alloc.c:7504
 71 in mark_char_table of alloc.c:6920
 72 in mark_char_table of alloc.c:6917
 73 in process_mark_stack of alloc.c:7341
 74 in mark_objects of alloc.c:7512
 75 in mark_vectorlike of alloc.c:6891
 76 in mark_buffer of alloc.c:6954
 77 in process_mark_stack of alloc.c:7299
 78 in mark_objects of alloc.c:7512
 79 in mark_vectorlike of alloc.c:6891
 80 in mark_window of alloc.c:7072
 81 in process_mark_stack of alloc.c:7307
 82 in mark_objects of alloc.c:7512
 83 in mark_vectorlike of alloc.c:6891
 84 in mark_frame of alloc.c:7037
 85 in process_mark_stack of alloc.c:7303
 86 in mark_objects of alloc.c:7512
 87 in mark_vectorlike of alloc.c:6891
 88 in mark_window of alloc.c:7072
 89 in process_mark_stack of alloc.c:7307
 90 in mark_objects of alloc.c:7512
 91 in mark_vectorlike of alloc.c:6891
 92 in mark_buffer of alloc.c:6954
 93 in process_mark_stack of alloc.c:7299
 94 in mark_objects of alloc.c:7512
 95 in mark_vectorlike of alloc.c:6891
 96 in mark_buffer of alloc.c:6954
 97 in process_mark_stack of alloc.c:7299
 98 in mark_objects of alloc.c:7512
 99 in mark_vectorlike of alloc.c:6891
100 in mark_buffer of alloc.c:6954
101 in process_mark_stack of alloc.c:7299
102 in mark_object of alloc.c:7504
103 in mark_interval_tree_1 of alloc.c:1529
104 in traverse_intervals_noorder of intervals.c:243
105 in mark_interval_tree of alloc.c:1538
106 in process_mark_stack of alloc.c:7264
107 in mark_objects of alloc.c:7512
108 in mark_vectorlike of alloc.c:6891
109 in mark_buffer of alloc.c:6954
110 in process_mark_stack of alloc.c:7299
111 in mark_object of alloc.c:7504
112 in mark_interval_tree_1 of alloc.c:1529
113 in traverse_intervals_noorder of intervals.c:243
114 in mark_interval_tree of alloc.c:1538
115 in process_mark_stack of alloc.c:7264
116 in mark_objects of alloc.c:7512
117 in mark_vectorlike of alloc.c:6891
118 in mark_buffer of alloc.c:6954
119 in process_mark_stack of alloc.c:7299
120 in mark_objects of alloc.c:7512
121 in mark_vectorlike of alloc.c:6891
122 in mark_buffer of alloc.c:6954
123 in process_mark_stack of alloc.c:7299
124 in mark_object of alloc.c:7504
125 in mark_interval_tree_1 of alloc.c:1529
126 in traverse_intervals_noorder of intervals.c:243
127 in mark_interval_tree of alloc.c:1538
128 in process_mark_stack of alloc.c:7264
129 in mark_objects of alloc.c:7512
130 in mark_vectorlike of alloc.c:6891
131 in mark_buffer of alloc.c:6954
132 in process_mark_stack of alloc.c:7299
133 in mark_object of alloc.c:7504
134 in mark_char_table of alloc.c:6920
135 in process_mark_stack of alloc.c:7341
136 in mark_object of alloc.c:7504
137 in mark_char_table of alloc.c:6920
138 in process_mark_stack of alloc.c:7341
139 in mark_object of alloc.c:7504
140 in mark_char_table of alloc.c:6920
141 in process_mark_stack of alloc.c:7341
142 in mark_object of alloc.c:7504
143 in mark_char_table of alloc.c:6920
144 in process_mark_stack of alloc.c:7341
145 in mark_objects of alloc.c:7512
146 in mark_vectorlike of alloc.c:6891
147 in mark_buffer of alloc.c:6954
148 in process_mark_stack of alloc.c:7299
149 in mark_objects of alloc.c:7512
150 in mark_vectorlike of alloc.c:6891
151 in mark_buffer of alloc.c:6954
152 in process_mark_stack of alloc.c:7299
153 in mark_objects of alloc.c:7512
154 in mark_vectorlike of alloc.c:6891
155 in mark_buffer of alloc.c:6954
156 in process_mark_stack of alloc.c:7299
157 in mark_objects of alloc.c:7512
158 in mark_vectorlike of alloc.c:6891
159 in mark_buffer of alloc.c:6954
160 in process_mark_stack of alloc.c:7299
161 in mark_objects of alloc.c:7512
162 in mark_vectorlike of alloc.c:6891
163 in mark_buffer of alloc.c:6954
164 in process_mark_stack of alloc.c:7299
165 in mark_object of alloc.c:7504
166 in mark_object_root_visitor of alloc.c:6396
167 in visit_vectorlike_root of alloc.c:6348
168 in visit_buffer_root of alloc.c:6362
169 in visit_static_gc_roots of alloc.c:6374
170 in garbage_collect of alloc.c:6598
171 in maybe_garbage_collect of alloc.c:6507
172 in maybe_gc of /home/spwhitton/src/emacs/primary/src/lisp.h:5929
173 in Ffuncall of eval.c:3088
174 in Fmaphash of fns.c:5974
175 in funcall_subr of eval.c:3163
176 in exec_byte_code of bytecode.c:812
177 in funcall_lambda of eval.c:3252
178 in funcall_general of eval.c:3044
179 in Ffuncall of eval.c:3093
180 in Fapply of eval.c:2722
181 in funcall_subr of eval.c:3184
182 in exec_byte_code of bytecode.c:812
183 in funcall_lambda of eval.c:3252
184 in funcall_general of eval.c:3044
185 in Ffuncall of eval.c:3093
186 in Fapply of eval.c:2765
187 in apply1 of eval.c:2981
188 in read_process_output_call of process.c:6129
189 in internal_condition_case_1 of eval.c:1637
190 in read_and_dispose_of_process_output of process.c:6498
191 in read_process_output of process.c:6266
192 in wait_reading_process_output of process.c:5947
193 in sit_for of dispnew.c:6335
194 in read_char of keyboard.c:2923
195 in read_key_sequence of keyboard.c:10743
196 in command_loop_1 of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
197 in internal_condition_case of eval.c:1613
198 in command_loop_2 of keyboard.c:1168
199 in internal_catch of eval.c:1292
200 in command_loop of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
201 in recursive_edit_1 of keyboard.c:754
202 in Frecursive_edit of keyboard.c:837
203 in main of emacs.c:2631

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 7 Jul 2024 14:46:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 07 10:46:14 2024
Received: from localhost ([127.0.0.1]:48936 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sQT9a-0001OF-01
	for submit <at> debbugs.gnu.org; Sun, 07 Jul 2024 10:46:14 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:58130)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sQT9U-0001Nb-Ak
 for 71929 <at> debbugs.gnu.org; Sun, 07 Jul 2024 10:46:12 -0400
DKIM-Signature: a=rsa-sha256;
 b=y2NXJd5p7RjpwqfZUQVnTpRjuMvdWrcPCFvh0zprOItPhmNMPLxjinEP+YFf+5p4Y79VhnKgjdFwCQw3mbgmmbarsl4A9FdCtuAJMNFQhMkTYGOcD5W/CxjqxF8zpS6aY/V7msjrV7HexIiCW3gTmFCGkQET+kNZJH6cJZpmD7xn0eVIdEddok0F30TYcTc6bBGp1dRnM9lwmwBpmB/EtcbVMyRhEtRO/+STuxCOm7Or/Dx4vkp7oJk2WuycZp76a+SFbm7+HYH7GcnpEAwKXgo3nGKi3SehUa1mDD+/AfaH5JRrn3rbk072qRDTqRIii04Q1H4iAe56JLAEAb8zhQ==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=OF6cCwRo0hDqNCtAFx7QDugoBLj7a1HG+Fhn4chyxZk=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=RU4sbS39XKaOeHhCi/yaPTJ3VdtBLpqq+3cz2ehGqakpijQ4YLc6jM+Fvmad4bi2m3jRBcebZdXvlo2OpjN9b6LvuJzGBAw+NdSp9CsxSxsxzwRcDzWzYZ6qyg/vSdD1Jt2c5qjHqjdn2sa9RT8v6I95TnJR6jjD4CwHO/Xs7c4dO3LgVI72qIz4dfUbva75h0Tc0wKVLzCwYiFLcxsanXa/hu/mzRjkXDEMhcZ63vnzTRa4QjlmT3V5MKFQMIMQdaZH6WjnYwyd21SninMrG98zJU/FB2Rvhl6cgO4fu5cqkKos23oyiKOYwKS7ghVd2qTK4qMo+ZaLcmeX8++hlw==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=OF6cCwRo0hDqNCtAFx7QDugoBLj7a1HG+Fhn4chyxZk=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 872031115; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sun, 07 Jul 2024 14:45:56 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id CDA7B7FEA0B; Sun,  7 Jul 2024 22:45:53 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <871q452u1b.fsf@HIDDEN> (Po Lu's message of "Sun, 07 Jul 2024
 21:47:28 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
 <87cynrjl84.fsf@HIDDEN> <87o77b2gsr.fsf@HIDDEN>
 <87tth1rkfy.fsf@HIDDEN>
 <87plrprkb2.fsf@HIDDEN> <87frsl3l0p.fsf@HIDDEN>
 <87plrpvm2y.fsf@HIDDEN> <86a5it3cj2.fsf@HIDDEN>
 <875xth3aym.fsf@HIDDEN> <87ed851gwv.fsf@HIDDEN>
 <871q452u1b.fsf@HIDDEN>
Date: Sun, 07 Jul 2024 22:45:53 +0800
Message-ID: <87zfqt45we.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On Sun 07 Jul 2024 at 09:47pm +08, Po Lu wrote:

> I must ask you to bear with me again, as another detail was not
> correctly accounted for in the last patch.  Please retry with this:

No problem.  It doesn't crash right away this time, but I'll get back to
you when it does.

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 7 Jul 2024 13:48:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 07 09:48:08 2024
Received: from localhost ([127.0.0.1]:47582 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sQSFL-0007zS-K5
	for submit <at> debbugs.gnu.org; Sun, 07 Jul 2024 09:48:08 -0400
Received: from sonic317-32.consmr.mail.ne1.yahoo.com ([66.163.184.43]:35846)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sQSFI-0007yu-Um
 for 71929 <at> debbugs.gnu.org; Sun, 07 Jul 2024 09:48:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720360073; bh=CviHZ3iTYnyULXGvjhUL7QxKEj7Mtf/pzW29bZfxxdw=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=TQ5QAT7muOWzmJv939Iwo3M+jjDUzja+54twUSUvF5IUz6IBFVZ0NvlxkmoC1t53vxEbSn3O5+2HaqTF7WAAdXMcDPevj/Qbl6+w/eSZwex6Qpa14qnAR7hOoE30DPB5obAkaAwmjq7Pxtj2d4We/9kUwrKmt7vZMz6gshMWUVjM/vws82iICJaHWZVV5/yL9xeZh6vPuh7d2MfRwJDjJbflsfbDI0T7IOiXEFlW6FcRdjONeJj9sRsFjNvVshv9zXNwF10f2np3u+Bc/I/EQ1nZgN4zVpKM4WevjRQzKHOqdn7lPhqGYinjDGPnXxncYLeQdCuoBEkTm0CBe2SIsg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720360073; bh=/6WSjJkb/nYS6lHB9GHzYB4V0KOHltXtP7aLaBCEpeG=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=HNvQ/Bvcb7p691exwaSQ6C5e0zqI64FdZijp8+O4bRZJrlB5IAHjE/THyuA7d4rAp/kLEa1exlZP8YsPuBzjBem5U0QTEcRgWhrKPFh4jp4sJamU4pqf365iprWUgy+SXHGJPBu5COvU+wySB9OJt0ZNZn4R842Kx0AylcJArmKcvOtulKfQyKHAQ90AiW43RjC6cQ1u0oszUA5BxR+tOLm9dK6utWcSVBjmsHEl2TVc7P+CjzSgd0frf/uMyygpX0JD66CWoGyGRiCZ0+K6phkiA72BMdp/PYtRNrCPOicatmk0b8jYp+uN3v+xs1UdNTh/uc+GAMj936cC4SqUkQ==
X-YMail-OSG: Md.yjl0VM1n9ZgiajGljWnRaFB.mUWnIpZ4wV2E6a0qkuAh9uLcKUL6_UCdZL71
 shHmwR29NzQU0RCqJKY8UhZ_8IJba3efTPUK458T69su5mCkdskgrmeknEzEH6wo8KzTo3KiQuzh
 QJVjmehasx9haco0Z8l7aJ0.l28gjkCdR7Lmw4eCWZ.0Ra_VTJVmnbJiilYkgP2OTcZwzqiAA6J.
 8NAYIOXBK1WCAtFlU1vFN7FaPcAWaHHysDFNBKj50KmDg91raR6VD_.qCnWX6MENYyEpJxJHB8jy
 0fLgBN6GDQ.C7hW8WIszc5MyOhOHOC5vyJPfKfubqpkwZRSA5HPRjRfz9P50imvTockTsnCHDpdR
 6_uMeR3ELThGLIpbeXPSVfJi_4Td6L9MQC6GrwJDJL_oExby6iCnuXWkonQ4A88_ya3E7y897gEi
 Sfvh67YDOsrHF1ZlihinmtM3IkN7KKec0QDdAUvVy2i7XOpu7UMruHSi4glWtvRjiPBtV6wmmoTt
 _0hybdcatsGEETYEFjB9zqP7fYVNyT9ZUrr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Y.JXiLlmGNa6raveLu5Y5opQjP0p0EXWZXR5wzaFAtWyPqtjs4
 ycU.5z4Q.nCcTrerZ0CqBlsEd9DAQ.kEsMCm82WLLZ2b.cMbevJZbLnTW8uKBzzuFU3F.LBMe_nO
 MExLyqs0yJEp1Ft_xJ7V6szwJ7LbuipIJ.aZv8oW49wIgYUtg3fe4dSn0VLrHTeiWb6DbdRKwt2Y
 B4JO_OoY2FlyOWSkiaKR5.J9pyCzIGcVFuqJQxopQZd2cYYjQE4b.KiJl1DGE9_js3aUQU.kSPYC
 7lO6cYpdnArhD0_xZLb2SEQbjwzWuIJyLDdxdmHwEQVZgjUmHUsDjYHMB8Bx55tZyJohwTvVH0JK
 SxQ2ArhitbchwTTKf83IVwyCTfbe3f0R2e34lCshe54DXoP5MtZnf2y0ygjYMqxptB.Wyz8rjLiG
 _WP956XYEM3SIdJSIT9FIvxX7IuIGgGVKmH26kce3Ts1OfVJKHVZ_YvUfXZQnzoMHrRrJV_2XUUt
 Gysf91leBfUKHR9Gw80mbcAQZ_30iBXXHIXNDkzmDDQrb7K1K0ZDWQ6liDGNpiIqW1QVxdB8EwpO
 FmMX8vTP1Sir1fOVQSBwQC2wE8.ragyo4IHxIZNZWGZ4BDXbtloy2cmBiv_jX8saI0Fud62yNMbL
 o7MQN8YgEuvSG5gzMHOKxffGdvLbVsIwymJKfc8HGbaMRCfyWORsb
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: ba85a183-9a75-4a27-8595-2c2c58507f92
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic317.consmr.mail.ne1.yahoo.com with HTTP; Sun, 7 Jul 2024 13:47:53 +0000
Received: by hermes--production-sg3-7b469d9f6-2fcg5 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 560c21bdee3602f26d10f2a13d99eae5; 
 Sun, 07 Jul 2024 13:47:49 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <87ed851gwv.fsf@HIDDEN> (Sean Whitton's message
 of "Sun, 07 Jul 2024 21:16:16 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
 <87cynrjl84.fsf@HIDDEN> <87o77b2gsr.fsf@HIDDEN>
 <87tth1rkfy.fsf@HIDDEN>
 <87plrprkb2.fsf@HIDDEN> <87frsl3l0p.fsf@HIDDEN>
 <87plrpvm2y.fsf@HIDDEN> <86a5it3cj2.fsf@HIDDEN>
 <875xth3aym.fsf@HIDDEN> <87ed851gwv.fsf@HIDDEN>
Date: Sun, 07 Jul 2024 21:47:28 +0800
Message-ID: <871q452u1b.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22464
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 3634
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Sean Whitton <spwhitton@HIDDEN> writes:

> Hello,
>
> On Sun 07 Jul 2024 at 03:41pm +08, Po Lu wrote:
>
>> Eli Zaretskii <eliz@HIDDEN> writes:
>>
>>> This is the initial frame of the daemon.  It is not a GUI frame, and
>>> so it should not have a valid image cache.  I guess some change is
>>> needed in verify_image_cache_refcount?
>>
>> Not quite: init_frame_faces is apparently called before the frame is
>> entered into Vframe_list, so, likewise, the face cache's reference count
>> should be verified before it is incremented.
>>
>> Sean, please retry with this patch substituted for the previous:
>
> This time it doesn't crash until I open and close a frame, as can be
> seen in the backtrace:

I must ask you to bear with me again, as another detail was not
correctly accounted for in the last patch.  Please retry with this:

diff --git a/src/frame.c b/src/frame.c
index 7f4bf274ad9..9793b9f5cbe 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -4831,14 +4831,20 @@ gui_set_font (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
 	  /* Clean F's image cache of images whose values are derived
 	     from the font width.  */
 	  clear_image_cache (f, Qauto);
+	  verify_image_cache_refcount (FRAME_IMAGE_CACHE (f));
 	}
       else
 	{
+	  struct image_cache *old_cache = FRAME_IMAGE_CACHE (f);
+
 	  /* Release the current image cache, and reuse or allocate a
 	     new image cache with IWIDTH.  */
 	  FRAME_IMAGE_CACHE (f)->refcount--;
+	  FRAME_IMAGE_CACHE (f) = NULL;
+	  verify_image_cache_refcount (old_cache);
 	  FRAME_IMAGE_CACHE (f) = share_image_cache (f);
 	  FRAME_IMAGE_CACHE (f)->refcount++;
+	  verify_image_cache_refcount (FRAME_IMAGE_CACHE (f));
 	}
     }
 
diff --git a/src/frame.h b/src/frame.h
index 1d920d1a6bc..8a636c56643 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -1682,6 +1682,31 @@ IMAGE_OPT_FROM_ID (struct frame *f, int id)
   eassume (0 <= used);
   return 0 <= id && id < used ? FRAME_IMAGE_CACHE (f)->images[id] : NULL;
 }
+
+/* Abort if C is non-NULL and C's `refcount' field disagrees with the
+   number of frames holding references to the same.  */
+
+INLINE void
+verify_image_cache_refcount (struct image_cache *c)
+{
+  int expected;
+  Lisp_Object tail, frame;
+
+  if (c)
+    {
+      expected = 0;
+
+      FOR_EACH_FRAME (tail, frame)
+	{
+	  if (FRAME_IMAGE_CACHE (XFRAME (frame)) == c)
+	    expected++;
+	}
+
+      if (expected != c->refcount)
+	emacs_abort ();
+    }
+}
+
 #endif
 
 /***********************************************************************
diff --git a/src/image.c b/src/image.c
index 2945447b962..9387c78408b 100644
--- a/src/image.c
+++ b/src/image.c
@@ -3625,6 +3625,7 @@ cache_image (struct frame *f, struct image *img)
     {
       c = FRAME_IMAGE_CACHE (f) = share_image_cache (f);
       c->refcount++;
+      verify_image_cache_refcount (c);
     }
 
   /* Find a free slot in c->images.  */
diff --git a/src/xfaces.c b/src/xfaces.c
index 188dd4778bc..372c36634d1 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -678,7 +678,10 @@ init_frame_faces (struct frame *f)
   /* Make or share an image cache.  */
   if (FRAME_WINDOW_P (f))
     {
-      FRAME_IMAGE_CACHE (f) = share_image_cache (f);
+      struct image_cache *c = share_image_cache (f);
+
+      verify_image_cache_refcount (c);
+      FRAME_IMAGE_CACHE (f) = c;
       ++FRAME_IMAGE_CACHE (f)->refcount;
     }
 #endif /* HAVE_WINDOW_SYSTEM */
@@ -710,6 +713,7 @@ free_frame_faces (struct frame *f)
       if (image_cache)
 	{
 	  --image_cache->refcount;
+	  verify_image_cache_refcount (image_cache);
 	  if (image_cache->refcount == 0)
 	    free_image_cache (f);
 	}




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 7 Jul 2024 13:16:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 07 09:16:46 2024
Received: from localhost ([127.0.0.1]:47564 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sQRl0-0006yu-7R
	for submit <at> debbugs.gnu.org; Sun, 07 Jul 2024 09:16:46 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:44956)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sQRky-0006ya-7F
 for 71929 <at> debbugs.gnu.org; Sun, 07 Jul 2024 09:16:45 -0400
DKIM-Signature: a=rsa-sha256;
 b=MzCBD/UTIZ5ZqXFclF+uaEhkUU5nKSVe1L24I9lY1ARkadn7WrQM8Z5FzIT4duaXhQmbzVu0a0dLCAH54SktvWPbXPtrJwwWEJr5STjSzHrK/RFof6CKuPA2z+/MIakIdgprPe4HwsFqOLcoxvJTC3d0ZpxCYtLskTLNllK9NJCUsAYlnxXKu3zUkgtVYzYhez+PJkg36MClr7+k3zQvCcGEHqf/UmjkD+KChcG/Z5yeEyKEiUHis7hgEEe5Ycg625SKDbL4tCTPjSDLFoZvWUe+PaVfHFvnDyLXQBrqVhgdL4FFdn7NSdojJECyG/3EMQoe456UtUXvkJD6zvjNNg==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=PJT94G+UE8awOEs92EILMNofxIHOjb7NIltddRKI1es=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=EnYHhEZKBh7O4net2bZqklKbFRcVC4zWXT+79U34jf/TbAf5272SxJSMZnBCcyC5TQZEcG+qy2bOHkzZhf8acFL2TW4hcaLFdRet9Fjwuh+f7j3am82G7TV9hHYNhB7XlJ8/bZQPtArIM5Hp0DYksmLtlWQZaLnpFL3gQI/6Bc6MZqPOBwDHQLShWlfB6W1BWpVaXZQiQxGIrNkZinEy1r1y+GUTxPStkWCfkmRvvXBi2x1F54kUtxkVlB8MbsMQHB1I2W7X+Jl5oPWA/AbL1e8WMDhm4B3XuWKtm4TCqjG73nQPTRBSjprAbvzfLZpZZgbzeDwbtlc56wIRUOrDgw==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=PJT94G+UE8awOEs92EILMNofxIHOjb7NIltddRKI1es=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1311697170; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sun, 07 Jul 2024 13:16:20 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id C2DCC7E808A; Sun,  7 Jul 2024 21:16:16 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <875xth3aym.fsf@HIDDEN> (Po Lu via's message of "Sun, 07 Jul
 2024 15:41:53 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
 <87cynrjl84.fsf@HIDDEN> <87o77b2gsr.fsf@HIDDEN>
 <87tth1rkfy.fsf@HIDDEN>
 <87plrprkb2.fsf@HIDDEN> <87frsl3l0p.fsf@HIDDEN>
 <87plrpvm2y.fsf@HIDDEN> <86a5it3cj2.fsf@HIDDEN>
 <875xth3aym.fsf@HIDDEN>
Date: Sun, 07 Jul 2024 21:16:16 +0800
Message-ID: <87ed851gwv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On Sun 07 Jul 2024 at 03:41pm +08, Po Lu wrote:

> Eli Zaretskii <eliz@HIDDEN> writes:
>
>> This is the initial frame of the daemon.  It is not a GUI frame, and
>> so it should not have a valid image cache.  I guess some change is
>> needed in verify_image_cache_refcount?
>
> Not quite: init_frame_faces is apparently called before the frame is
> entered into Vframe_list, so, likewise, the face cache's reference count
> should be verified before it is incremented.
>
> Sean, please retry with this patch substituted for the previous:

This time it doesn't crash until I open and close a frame, as can be
seen in the backtrace:

 0 in terminate_due_to_signal of emacs.c:442
 1 in emacs_abort of sysdep.c:2391
 2 in verify_image_cache_refcount of /home/spwhitton/src/emacs/primary/src/frame.h:1706
 3 in free_frame_faces of xfaces.c:715
 4 in pgtk_free_frame_resources of pgtkterm.c:443
 5 in pgtk_destroy_window of pgtkterm.c:539
 6 in delete_frame of frame.c:2318
 7 in Fdelete_frame of frame.c:2527
 8 in funcall_subr of eval.c:3163
 9 in exec_byte_code of bytecode.c:812
10 in funcall_lambda of eval.c:3252
11 in funcall_general of eval.c:3044
12 in Ffuncall of eval.c:3093
13 in Ffuncall_interactively of callint.c:250
14 in funcall_subr of eval.c:3184
15 in funcall_general of eval.c:3040
16 in Ffuncall of eval.c:3093
17 in Fcall_interactively of callint.c:789
18 in funcall_subr of eval.c:3165
19 in exec_byte_code of bytecode.c:812
20 in funcall_lambda of eval.c:3252
21 in funcall_general of eval.c:3044
22 in Ffuncall of eval.c:3093
23 in read_char of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
24 in read_key_sequence of keyboard.c:10743
25 in command_loop_1 of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
26 in internal_condition_case of eval.c:1613
27 in command_loop_2 of keyboard.c:1168
28 in internal_catch of eval.c:1292
29 in command_loop of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
30 in recursive_edit_1 of keyboard.c:754
31 in Frecursive_edit of keyboard.c:837
32 in main of emacs.c:2631

(gdb) p expected
$3 = 0
(gdb) p c
$4 = (struct image_cache *) 0x555557f65370
(gdb) p c->refcount
$5 = 1
(gdb) set $cons = Vframe_list
(gdb) while $cons
 >xgetptr $cons
 >p ((struct Lisp_Cons *) $ptr)->u.s.car
 >xframe
 >p *$
 >xgetptr $cons
 >set $cons = ((struct Lisp_Cons *) $ptr)->u.s.u.cdr
 >end
$6 = XIL(0x555555f3dfd5)
$7 = (struct frame *) 0x555555f3dfd0
"F1"
$8 = {
  header = {
    size = 4611686018595352602
  },
  name = XIL(0x55555587c944),
  icon_name = XIL(0),
  title = XIL(0),
  parent_frame = XIL(0),
  last_mouse_device = XIL(0),
  focus_frame = XIL(0),
  root_window = XIL(0x555555f3e225),
  selected_window = XIL(0x555555f3e225),
  old_selected_window = XIL(0x555555f3e225),
  minibuffer_window = XIL(0x555555f3e4cd),
  param_alist = XIL(0x555557a23c73),
  scroll_bars = XIL(0),
  condemned_scroll_bars = XIL(0),
  menu_bar_items = XIL(0x555558f8b705),
  face_hash_table = XIL(0x555555f3e775),
  menu_bar_vector = XIL(0),
  buffer_predicate = XIL(0),
  buffer_list = XIL(0x55555934f053),
  buried_buffer_list = XIL(0),
  tab_bar_window = XIL(0),
  desired_tab_bar_string = XIL(0),
  current_tab_bar_string = XIL(0),
  tool_bar_position = XIL(0x11d00),
  font_data = XIL(0),
  tab_bar_items = XIL(0),
  tool_bar_items = XIL(0),
  face_cache = 0x555555f741d0,
  image_cache = 0x0,
  last_tab_bar_item = -1,
  menu_bar_items_used = 0,
  current_pool = 0x555555f3f4b0,
  desired_pool = 0x555555f3f490,
  desired_matrix = 0x555555f3f4d0,
  current_matrix = 0x555555f3f740,
  glyphs_initialized_p = true,
  resized_p = false,
  default_face_done_p = false,
  already_hscrolled_p = false,
  updated_p = false,
  minimize_tab_bar_window_p = false,
  external_tool_bar = false,
  fonts_changed = false,
  cursor_type_changed = false,
  redisplay = true,
  external_menu_bar = false,
  visible = 1,
  iconified = false,
  garbaged = false,
  wants_modeline = true,
  auto_raise = false,
  auto_lower = false,
  no_split = false,
  explicit_name = false,
  window_change = false,
  window_state_change = false,
  mouse_moved = false,
  pointer_invisible = false,
  frozen_window_starts = false,
  output_method = output_initial,
  tooltip = false,
  want_fullscreen = FULLSCREEN_NONE,
  vertical_scroll_bar_type = vertical_scroll_bar_none,
  horizontal_scroll_bars = false,
  undecorated = false,
  override_redirect = false,
  skip_taskbar = false,
  no_focus_on_map = false,
  no_accept_focus = false,
  z_group = z_group_none,
  no_special_glyphs = false,
  can_set_window_size = true,
  after_make_frame = true,
  tab_bar_redisplayed = false,
  tab_bar_resized = false,
  tool_bar_redisplayed = false,
  tool_bar_resized = false,
  inhibit_horizontal_resize = false,
  inhibit_vertical_resize = false,
  face_change = false,
  inhibit_clear_image_cache = false,
  new_size_p = false,
  was_invisible = false,
  select_mini_window_flag = false,
  change_stamp = 7,
  number_of_windows = 2,
  tab_bar_lines = 0,
  tab_bar_height = 0,
  n_tab_bar_rows = 0,
  n_tab_bar_items = 0,
  tool_bar_lines = 0,
  tool_bar_height = 0,
  n_tool_bar_rows = 0,
  n_tool_bar_items = 0,
  decode_mode_spec_buffer = 0x555555f3f340 "",
  insert_line_cost = 0x0,
  delete_line_cost = 0x0,
  insert_n_lines_cost = 0x0,
  delete_n_lines_cost = 0x0,
  text_cols = 80,
  text_lines = 24,
  text_width = 80,
  text_height = 24,
  total_cols = 80,
  total_lines = 25,
  pixel_width = 80,
  pixel_height = 25,
  new_width = -1,
  new_height = -1,
  left_pos = 0,
  top_pos = 0,
  win_gravity = 0,
  size_hint_flags = 0,
  border_width = 0,
  child_frame_border_width = -1,
  internal_border_width = 0,
  right_divider_width = 0,
  bottom_divider_width = 0,
  left_fringe_width = 0,
  right_fringe_width = 0,
  fringe_cols = 0,
  menu_bar_lines = 1,
  menu_bar_height = 1,
  column_width = 1,
  line_height = 1,
  terminal = 0x555555f3ddb0,
  output_data = {
    tty = 0x0,
    x = 0x0,
    w32 = 0x0,
    ns = 0x0,
    pgtk = 0x0,
    haiku = 0x0,
    android = 0x0
  },
  font_driver_list = 0x0,
  desired_cursor = FILLED_BOX_CURSOR,
  cursor_width = 0,
  blink_off_cursor = FILLED_BOX_CURSOR,
  blink_off_cursor_width = 0,
  config_scroll_bar_width = 0,
  config_scroll_bar_cols = 0,
  config_scroll_bar_height = 0,
  config_scroll_bar_lines = 0,
  cost_calculation_baud_rate = 0,
  alpha = {0, 0},
  alpha_background = 0,
  gamma = 0,
  extra_line_spacing = 0,
  background_pixel = 18446744073709551613,
  foreground_pixel = 18446744073709551614
}

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 7 Jul 2024 07:42:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 07 03:42:22 2024
Received: from localhost ([127.0.0.1]:47245 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sQMXO-0001Da-8b
	for submit <at> debbugs.gnu.org; Sun, 07 Jul 2024 03:42:22 -0400
Received: from sonic302-20.consmr.mail.ne1.yahoo.com ([66.163.186.146]:42007)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sQMXM-0001DI-Oe
 for 71929 <at> debbugs.gnu.org; Sun, 07 Jul 2024 03:42:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720338129; bh=hL7qh5uKHPqDthhx0qgr8cPARgjSvXF8OwKL37yD63A=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=dDV+NNnikexzreWj0CYbax2WSZm27RzYeCOCwsr9OtCv+75UdIe9/BJZsohF/0qC2amnt+z5q1AxsJ9qv6Ru/TbR9nYTDxL5L0NLx/A9GukMqKYhmun3f+1aUFcqpE53e0FgVvR8vKDlxZ3mH1imDNfpLvkafaBAhvIoXNGn2gkGx8sEQUK05CxsErczeKs50bVz1QYPmIZMQkg5KzhJwLH6IZG91CT66NOLG+nGk92qkack6ARfltBHvNLmGRK5s8/TO6bxSXL/ezOBGn3QXDCJxLdVWVV4Nk83CSxhZzgniuFif+uOei6uo6N8o9H3I8N0qx46STNoWsDMWGixAw==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720338129; bh=nxCkNdCi6lD4sFMxi5jEyLgml0DF9/x8u7pWeb9XvyL=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=SgdiF3GQG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iJY.Zir_j3cXarGwyHwcvegG4VEYUHnfbiRxpDBUgK8evRAnWWk4
 NbroBe95bqj0iTMz0l5oDyKeWbv3pfIO3Zq2erS7MpSG7sWDw670puofdYMnZuL6mww6vwA4prmu
 JlMjxbiv6Cuq9.d82aFQtXqBSFPFIDbyzrI1xEwdRzKEro5jSIS0.NPq2HwZxDnpaV6tmBWUApEw
 RYKYNMvOUj53woYqgC_qtN5EIn3dscttpFuODz.hKvo6KdD.zNBZqodKlBRM7sHkGFFUo_N8bX0A
 H1hExfYxVrOVMIDIzcYmNkUM8UNY9WNl._g5656hswBZ__vMw9XfEsNQRMXj5FkiQJKPZP6KroNP
 oUmZV4uYLXv.EvViAcIdQSSIvT4boNq0fHzKqLgG5fBfO02xg9LvG2PAtaneo5tukO6VtgrSkaRd
 8O6C1fcQUteOBxqEdKk2WLzj1KihcHT1dzkoSefytamnoGHUw1fkdxtQok_ZV9.uCQXhKrxXVRp2
 crOuQ3IBEXt18tzXqlZtZiyzaUfmyQNYQP_r0KD2895ObLvc2Ww--
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 6eacb9f7-12d7-4803-ae2f-3e07bca834d6
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic302.consmr.mail.ne1.yahoo.com with HTTP; Sun, 7 Jul 2024 07:42:09 +0000
Received: by hermes--production-sg3-7b469d9f6-w9xm6 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 7baf8149924fe8f3d0c675118afe2749; 
 Sun, 07 Jul 2024 07:42:01 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <86a5it3cj2.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 07 Jul
 2024 10:08:01 +0300")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
 <87cynrjl84.fsf@HIDDEN> <87o77b2gsr.fsf@HIDDEN>
 <87tth1rkfy.fsf@HIDDEN>
 <87plrprkb2.fsf@HIDDEN> <87frsl3l0p.fsf@HIDDEN>
 <87plrpvm2y.fsf@HIDDEN> <86a5it3cj2.fsf@HIDDEN>
Date: Sun, 07 Jul 2024 15:41:53 +0800
Message-ID: <875xth3aym.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22464
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 3324
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Sean Whitton <spwhitton@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> This is the initial frame of the daemon.  It is not a GUI frame, and
> so it should not have a valid image cache.  I guess some change is
> needed in verify_image_cache_refcount?

Not quite: init_frame_faces is apparently called before the frame is
entered into Vframe_list, so, likewise, the face cache's reference count
should be verified before it is incremented.

Sean, please retry with this patch substituted for the previous:

diff --git a/src/frame.c b/src/frame.c
index 7f4bf274ad9..9793b9f5cbe 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -4831,14 +4831,20 @@ gui_set_font (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
 	  /* Clean F's image cache of images whose values are derived
 	     from the font width.  */
 	  clear_image_cache (f, Qauto);
+	  verify_image_cache_refcount (FRAME_IMAGE_CACHE (f));
 	}
       else
 	{
+	  struct image_cache *old_cache = FRAME_IMAGE_CACHE (f);
+
 	  /* Release the current image cache, and reuse or allocate a
 	     new image cache with IWIDTH.  */
 	  FRAME_IMAGE_CACHE (f)->refcount--;
+	  FRAME_IMAGE_CACHE (f) = NULL;
+	  verify_image_cache_refcount (old_cache);
 	  FRAME_IMAGE_CACHE (f) = share_image_cache (f);
 	  FRAME_IMAGE_CACHE (f)->refcount++;
+	  verify_image_cache_refcount (FRAME_IMAGE_CACHE (f));
 	}
     }
 
diff --git a/src/frame.h b/src/frame.h
index 1d920d1a6bc..8a636c56643 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -1682,6 +1682,31 @@ IMAGE_OPT_FROM_ID (struct frame *f, int id)
   eassume (0 <= used);
   return 0 <= id && id < used ? FRAME_IMAGE_CACHE (f)->images[id] : NULL;
 }
+
+/* Abort if C is non-NULL and C's `refcount' field disagrees with the
+   number of frames holding references to the same.  */
+
+INLINE void
+verify_image_cache_refcount (struct image_cache *c)
+{
+  int expected;
+  Lisp_Object tail, frame;
+
+  if (c)
+    {
+      expected = 0;
+
+      FOR_EACH_FRAME (tail, frame)
+	{
+	  if (FRAME_IMAGE_CACHE (XFRAME (frame)) == c)
+	    expected++;
+	}
+
+      if (expected != c->refcount)
+	emacs_abort ();
+    }
+}
+
 #endif
 
 /***********************************************************************
diff --git a/src/image.c b/src/image.c
index 2945447b962..9387c78408b 100644
--- a/src/image.c
+++ b/src/image.c
@@ -3625,6 +3625,7 @@ cache_image (struct frame *f, struct image *img)
     {
       c = FRAME_IMAGE_CACHE (f) = share_image_cache (f);
       c->refcount++;
+      verify_image_cache_refcount (c);
     }
 
   /* Find a free slot in c->images.  */
diff --git a/src/xfaces.c b/src/xfaces.c
index 188dd4778bc..ed4d404fbf3 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -678,7 +678,10 @@ init_frame_faces (struct frame *f)
   /* Make or share an image cache.  */
   if (FRAME_WINDOW_P (f))
     {
-      FRAME_IMAGE_CACHE (f) = share_image_cache (f);
+      struct image_cache *c = share_image_cache (f);
+
+      verify_image_cache_refcount (c);
+      FRAME_IMAGE_CACHE (f) = c;
       ++FRAME_IMAGE_CACHE (f)->refcount;
     }
 #endif /* HAVE_WINDOW_SYSTEM */
@@ -709,6 +712,7 @@ free_frame_faces (struct frame *f)
       struct image_cache *image_cache = FRAME_IMAGE_CACHE (f);
       if (image_cache)
 	{
+	  verify_image_cache_refcount (image_cache);
 	  --image_cache->refcount;
 	  if (image_cache->refcount == 0)
 	    free_image_cache (f);




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 7 Jul 2024 07:08:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 07 03:08:16 2024
Received: from localhost ([127.0.0.1]:47219 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sQM0O-0005tO-8Q
	for submit <at> debbugs.gnu.org; Sun, 07 Jul 2024 03:08:16 -0400
Received: from eggs.gnu.org ([209.51.188.92]:38766)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sQM0L-0005t9-UB
 for 71929 <at> debbugs.gnu.org; Sun, 07 Jul 2024 03:08:14 -0400
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 <eliz@HIDDEN>)
 id 1sQM0C-0003Lb-Ga; Sun, 07 Jul 2024 03:08:04 -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=VNWAWdogy8rgx0a3/LW+3emHvG4+QRTg+gCu5Dxfrlc=; b=D/Vae6ewAwAK
 3q6qDc+0Kfx6QD/9k/jRYnWgeLzSob39nStOU9XzPm41ArQNbY01WhgDBnloXPXafb8AN5riPSWOw
 xzNX973VuATQ9Y+KAGscUPlhLNhvwx3OF/WqUJuhvzqb91ZIteYFGLC1qb0/C4BT1s+u1n0FvnqWP
 wd21L2fIMmtTudV7zhvo1rXD8ZpyE87+BqRi26XmmQWSA1oVoMmuZo1da3/PdO5gNiCZ1hMUiZ+i1
 uhobuxsHMVh9IEftqEnBK8GuCW2DJQuTuHLLVHF68MubAatEU+yY5JMzY+WSW2TQrJqDhp49iJ/M3
 NmaMugt3tcrFF0087zRiww==;
Date: Sun, 07 Jul 2024 10:08:01 +0300
Message-Id: <86a5it3cj2.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: luangruo@HIDDEN, Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87plrpvm2y.fsf@HIDDEN> (message from Sean
 Whitton on Sun, 07 Jul 2024 12:54:13 +0800)
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
 <87cynrjl84.fsf@HIDDEN> <87o77b2gsr.fsf@HIDDEN>
 <87tth1rkfy.fsf@HIDDEN>
 <87plrprkb2.fsf@HIDDEN> <87frsl3l0p.fsf@HIDDEN>
 <87plrpvm2y.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Sean Whitton <spwhitton@HIDDEN>
> Cc: 71929 <at> debbugs.gnu.org,  Eli Zaretskii <eliz@HIDDEN>
> Date: Sun, 07 Jul 2024 12:54:13 +0800
> 
> > Please move into verify_image_cache_refcount and execute:
> >
> >   (gdb) p expected
> >   (gdb) p FRAME_IMAGE_CACHE (f)
> >   (gdb) p FRAME_IMAGE_CACHE (f)->refcount
> >   (gdb) set $cons = Vframe_list
> >   (gdb) while $cons
> >    >xgetptr $cons
> >    >p ((struct Lisp_Cons *) $ptr)->u.s.car
> >    >xframe
> >    >p *$
> >    >xgetptr $cons
> >    >set $cons = ((struct Lisp_Cons *) $ptr)->u.s.u.cdr
> >    >end
> 
> (gdb) p expected
> $1 = 0
> (gdb) p FRAME_IMAGE_CACHE (f)
> $2 = (struct image_cache *) 0x555557f29270
> (gdb) p FRAME_IMAGE_CACHE (f)->refcount
> $3 = 1
> (gdb) set $cons = Vframe_list
> [...]
> $4 = XIL(0x555555f3dfd5)
> $5 = (struct frame *) 0x555555f3dfd0
> "F1"
> $6 = {
>   header = {
>     size = 4611686018595352602
>   },
> [...]
>   terminal = 0x555555f3ddb0,
>   output_data = {
>     tty = 0x0,
>     x = 0x0,
>     w32 = 0x0,
>     ns = 0x0,
>     pgtk = 0x0,
>     haiku = 0x0,
>     android = 0x0
>   },

This is the initial frame of the daemon.  It is not a GUI frame, and
so it should not have a valid image cache.  I guess some change is
needed in verify_image_cache_refcount?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 7 Jul 2024 04:54:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 07 00:54:35 2024
Received: from localhost ([127.0.0.1]:47079 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sQJv0-0007dw-LZ
	for submit <at> debbugs.gnu.org; Sun, 07 Jul 2024 00:54:35 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:38588)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sQJux-0007df-If
 for 71929 <at> debbugs.gnu.org; Sun, 07 Jul 2024 00:54:32 -0400
DKIM-Signature: a=rsa-sha256;
 b=zVT7qUIClEl58m5fF1wnm08BhtU0nwEkEBRUbdUpHAa4jAeQK1oVKO3k52Ytj6avleE6lcwb6843lc1LIw0+JqysbHUO9bdlWxDHwLWcONICkNAoiOaesgmU3+AIOxPyQ0gPSD1BCSbUOa4uInBNJDyrV01wD1ff17jP7SmHx+vKI22/HwRoyBLM3J8//unyzLaKozQkb3J1Mh7V6oITtWm33s41NPzuFA0/jDYTW8UX+XQ2dOlfcsKfl4gcJiVxNSu8IYK9HktiQ+mMKa3qcQCTVv2sOjjBiieOKW9dk4mIM4o0yfVrNoqaoCfBD8Ydfy1ODrsK5DHdzUpN1ghmhw==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=G4FeW/9QP34HKUX9SC4AVvaD86DSVwjv3QnF3Wd6qoE=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=alQFuOw+/QbOEudkn82ZkxYholRY5652LlufZQzxM3SRvGQJo7vjjhuJfDHzSn5mzveq33XVnAs+mrqPzLHTeT0J5o/v7wgqV5Z1GBcYiTb/NeSffftpXWvxdzNs/lZLX5L8S9ohY/RL0Vs7hAJAjRiW68hrUAy1HkblHvzXyHKVVPp9lPpEcd5TMCVKqLFj3K/A5o1sfMiqbcfj0zlgSwEjTNEERSd04Mq91xgFX6Z+MLxQ0CD6FNbxOcD3G+5z0ZMKQQnX6Rg11IajXWrWnkWLUhZMH2gl5mIByVenhc6X5ebRlTotbuNJMFxp2dM/e8lSk4nNU7K55WJtmYX6QA==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=G4FeW/9QP34HKUX9SC4AVvaD86DSVwjv3QnF3Wd6qoE=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 840399610; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sun, 07 Jul 2024 04:54:17 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 824BA7FA4BF; Sun,  7 Jul 2024 12:54:13 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <87frsl3l0p.fsf@HIDDEN> (Po Lu's message of "Sun, 07 Jul 2024
 12:04:38 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
 <87cynrjl84.fsf@HIDDEN> <87o77b2gsr.fsf@HIDDEN>
 <87tth1rkfy.fsf@HIDDEN>
 <87plrprkb2.fsf@HIDDEN> <87frsl3l0p.fsf@HIDDEN>
Date: Sun, 07 Jul 2024 12:54:13 +0800
Message-ID: <87plrpvm2y.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On Sun 07 Jul 2024 at 12:04pm +08, Po Lu wrote:

> Sean Whitton <spwhitton@HIDDEN> writes:
>
>> Hello,
>>
>> On Sun 07 Jul 2024 at 10:43am +08, Sean Whitton wrote:
>>
>>> Hello,
>>>
>>> On Sat 06 Jul 2024 at 02:08pm +08, Po Lu wrote:
>>>
>>>> Thanks.  Would you mind running Emacs with this patch installed and
>>>> configured with the aforesaid option, and responding with backtraces
>>>> from any triggered assertion?
>>>
>>> I launch it with emacs --fg-daemon under gdb and it crashes immediately,
>>> before I've had chance to open any frames with emacsclient:
>>
>> Not quite.  It crashes when I try to use 'emacsclient -c' to open the
>> first graphical frame.
>
> Please move into verify_image_cache_refcount and execute:
>
>   (gdb) p expected
>   (gdb) p FRAME_IMAGE_CACHE (f)
>   (gdb) p FRAME_IMAGE_CACHE (f)->refcount
>   (gdb) set $cons = Vframe_list
>   (gdb) while $cons
>    >xgetptr $cons
>    >p ((struct Lisp_Cons *) $ptr)->u.s.car
>    >xframe
>    >p *$
>    >xgetptr $cons
>    >set $cons = ((struct Lisp_Cons *) $ptr)->u.s.u.cdr
>    >end

(gdb) p expected
$1 = 0
(gdb) p FRAME_IMAGE_CACHE (f)
$2 = (struct image_cache *) 0x555557f29270
(gdb) p FRAME_IMAGE_CACHE (f)->refcount
$3 = 1
(gdb) set $cons = Vframe_list
[...]
$4 = XIL(0x555555f3dfd5)
$5 = (struct frame *) 0x555555f3dfd0
"F1"
$6 = {
  header = {
    size = 4611686018595352602
  },
  name = XIL(0x55555587c944),
  icon_name = XIL(0),
  title = XIL(0),
  parent_frame = XIL(0),
  last_mouse_device = XIL(0),
  focus_frame = XIL(0),
  root_window = XIL(0x555555f3e225),
  selected_window = XIL(0x555555f3e225),
  old_selected_window = XIL(0),
  minibuffer_window = XIL(0x555555f3e4cd),
  param_alist = XIL(0x555557a23523),
  scroll_bars = XIL(0),
  condemned_scroll_bars = XIL(0),
  menu_bar_items = XIL(0),
  face_hash_table = XIL(0x555555f3e775),
  menu_bar_vector = XIL(0),
  buffer_predicate = XIL(0),
  buffer_list = XIL(0x555557a23503),
  buried_buffer_list = XIL(0),
  tab_bar_window = XIL(0),
  desired_tab_bar_string = XIL(0),
  current_tab_bar_string = XIL(0),
  tool_bar_position = XIL(0x11d00),
  font_data = XIL(0),
  tab_bar_items = XIL(0),
  tool_bar_items = XIL(0),
  face_cache = 0x555555f741d0,
  image_cache = 0x0,
  last_tab_bar_item = -1,
  menu_bar_items_used = 0,
  current_pool = 0x555555f3f4b0,
  desired_pool = 0x555555f3f490,
  desired_matrix = 0x555555f3f4d0,
  current_matrix = 0x555555f3f740,
  glyphs_initialized_p = true,
  resized_p = true,
  default_face_done_p = false,
  already_hscrolled_p = false,
  updated_p = false,
  minimize_tab_bar_window_p = false,
  external_tool_bar = false,
  fonts_changed = false,
  cursor_type_changed = false,
  redisplay = true,
  external_menu_bar = false,
  visible = 1,
  iconified = false,
  garbaged = true,
  wants_modeline = true,
  auto_raise = false,
  auto_lower = false,
  no_split = false,
  explicit_name = false,
  window_change = true,
  window_state_change = false,
  mouse_moved = false,
  pointer_invisible = false,
  frozen_window_starts = false,
  output_method = output_initial,
  tooltip = false,
  want_fullscreen = FULLSCREEN_NONE,
  vertical_scroll_bar_type = vertical_scroll_bar_none,
  horizontal_scroll_bars = false,
  undecorated = false,
  override_redirect = false,
  skip_taskbar = false,
  no_focus_on_map = false,
  no_accept_focus = false,
  z_group = z_group_none,
  no_special_glyphs = false,
  can_set_window_size = true,
  after_make_frame = true,
  tab_bar_redisplayed = false,
  tab_bar_resized = false,
  tool_bar_redisplayed = false,
  tool_bar_resized = false,
  inhibit_horizontal_resize = false,
  inhibit_vertical_resize = false,
  face_change = true,
  inhibit_clear_image_cache = false,
  new_size_p = false,
  was_invisible = false,
  select_mini_window_flag = false,
  change_stamp = 1,
  number_of_windows = 0,
  tab_bar_lines = 0,
  tab_bar_height = 0,
  n_tab_bar_rows = 0,
  n_tab_bar_items = 0,
  tool_bar_lines = 0,
  tool_bar_height = 0,
  n_tool_bar_rows = 0,
  n_tool_bar_items = 0,
  decode_mode_spec_buffer = 0x555555f3f340 "",
  insert_line_cost = 0x0,
  delete_line_cost = 0x0,
  insert_n_lines_cost = 0x0,
  delete_n_lines_cost = 0x0,
  text_cols = 80,
  text_lines = 24,
  text_width = 80,
  text_height = 24,
  total_cols = 80,
  total_lines = 25,
  pixel_width = 80,
  pixel_height = 25,
  new_width = -1,
  new_height = -1,
  left_pos = 0,
  top_pos = 0,
  win_gravity = 0,
  size_hint_flags = 0,
  border_width = 0,
  child_frame_border_width = -1,
  internal_border_width = 0,
  right_divider_width = 0,
  bottom_divider_width = 0,
  left_fringe_width = 0,
  right_fringe_width = 0,
  fringe_cols = 0,
  menu_bar_lines = 1,
  menu_bar_height = 1,
  column_width = 1,
  line_height = 1,
  terminal = 0x555555f3ddb0,
  output_data = {
    tty = 0x0,
    x = 0x0,
    w32 = 0x0,
    ns = 0x0,
    pgtk = 0x0,
    haiku = 0x0,
    android = 0x0
  },
  font_driver_list = 0x0,
  desired_cursor = FILLED_BOX_CURSOR,
  cursor_width = 0,
  blink_off_cursor = FILLED_BOX_CURSOR,
  blink_off_cursor_width = 0,
  config_scroll_bar_width = 0,
  config_scroll_bar_cols = 0,
  config_scroll_bar_height = 0,
  config_scroll_bar_lines = 0,
  cost_calculation_baud_rate = 0,
  alpha = {0, 0},
  alpha_background = 0,
  gamma = 0,
  extra_line_spacing = 0,
  background_pixel = 18446744073709551613,
  foreground_pixel = 18446744073709551614
}

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 7 Jul 2024 04:05:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 07 00:05:20 2024
Received: from localhost ([127.0.0.1]:47055 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sQJ9L-0006RT-JI
	for submit <at> debbugs.gnu.org; Sun, 07 Jul 2024 00:05:19 -0400
Received: from sonic308-10.consmr.mail.ne1.yahoo.com ([66.163.187.33]:36151)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sQJ9B-0006R6-Nc
 for 71929 <at> debbugs.gnu.org; Sun, 07 Jul 2024 00:05:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720325099; bh=Ft29g/qyfT0qvFuzr2OFwenUPm9dmAph74xw9TL3koU=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=M8KVyI51Od0FQBT6c1XhfkxdqoC1pCUmyTxDswnAuWJpjaoxO3DmqiFLlzlSavazGR0ptbaz5atXcYWMLwyk8qm3cUYAMsF31LmmF/naNyd7IG5pBVVhrz46MSfN7b8A0MXr4pbE1jHlZSlIpxKb6ZxFSuCA61bQKMdgJfYoaIB/GV5uRGRhHHleunH72ay3jyoc2GzV/yFLf9fMR8p63/B0kRAEKe0QV0kIBl+gsKKBhksnHH1NWPVpXnM9/KlB2mjDShbg4uzCxwYfqcUCp086Um5PNQuoUJSv2iTxxvKCk9QUZfv4a3vUZMdzWKJ8qNIKR+OTOA7Y0jW62Fl16w==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720325099; bh=/+uVAd9FWe660dXP4he5bCnNzQTrV+ZT+mL2iSMvAuu=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=tuT/ctQyhTEANRNiksAH0Dj+JVV2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cvJXL_NtUn1ymbTk.gM4g_iKYj8Byn2E98kYoMmoqLM5ias_O1wEQ5j
 XMgcNjrMqOrr7r_Nhfuta3cjLTSEgzYPiHDqTfDusojM8uE8h3mnYJMWLuBWQ8mdbxco_BXp4Mk5
 VzenYleV7GCNatSLbTrF5nQ36R99Y.4xCROckopQkFNA8W6ZXAxbe2s9F8uO3tYQnfOLVCEkn5qu
 Z53n17YR4KPqcGeH6T16xvlzQ2hub0JlTcJ1eCePhXw7Myi8LJwkHXtEKEkU1UWn8nkH0oeOHlc6
 kjuF2FnAPQCf6khBUxkISn94VFcsYyFUKiLVP2sRZVWHyDRWxAfhOITMLgKH64PjxLBvqxMdJU1C
 s9a2ZgYybOw4hwuZan09E19fVApO.0H2hZj9WIamAgr0U2714UplmXVSo8.XVozZB1oaDYfq5p5O
 yYI1hnbUsEpEUOfEx9c8VRu4wTgofC49.8Xe.fxqyrblrUpdlDVh1PIFdCu4qqaNfCB13Tiim.Or
 _PxyHhWIkeMLw2hS3QESLnVM07S.rrS7a9Mk7FrBGsz_WIaVYD.M-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 2b8c08bd-62f3-43c5-937b-7d63eaf7fd16
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic308.consmr.mail.ne1.yahoo.com with HTTP; Sun, 7 Jul 2024 04:04:59 +0000
Received: by hermes--production-sg3-7b469d9f6-2cjcg (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 78892f8292c22c119faa5b06780688e5; 
 Sun, 07 Jul 2024 04:04:54 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <87plrprkb2.fsf@HIDDEN> (Sean Whitton's message
 of "Sun, 07 Jul 2024 10:46:09 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
 <87cynrjl84.fsf@HIDDEN> <87o77b2gsr.fsf@HIDDEN>
 <87tth1rkfy.fsf@HIDDEN>
 <87plrprkb2.fsf@HIDDEN>
Date: Sun, 07 Jul 2024 12:04:38 +0800
Message-ID: <87frsl3l0p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22464
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 973
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Sean Whitton <spwhitton@HIDDEN> writes:

> Hello,
>
> On Sun 07 Jul 2024 at 10:43am +08, Sean Whitton wrote:
>
>> Hello,
>>
>> On Sat 06 Jul 2024 at 02:08pm +08, Po Lu wrote:
>>
>>> Thanks.  Would you mind running Emacs with this patch installed and
>>> configured with the aforesaid option, and responding with backtraces
>>> from any triggered assertion?
>>
>> I launch it with emacs --fg-daemon under gdb and it crashes immediately,
>> before I've had chance to open any frames with emacsclient:
>
> Not quite.  It crashes when I try to use 'emacsclient -c' to open the
> first graphical frame.

Please move into verify_image_cache_refcount and execute:

  (gdb) p expected
  (gdb) p FRAME_IMAGE_CACHE (f)
  (gdb) p FRAME_IMAGE_CACHE (f)->refcount
  (gdb) set $cons = Vframe_list
  (gdb) while $cons
   >xgetptr $cons
   >p ((struct Lisp_Cons *) $ptr)->u.s.car
   >xframe
   >p *$
   >xgetptr $cons
   >set $cons = ((struct Lisp_Cons *) $ptr)->u.s.u.cdr
   >end




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 7 Jul 2024 02:46:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 06 22:46:32 2024
Received: from localhost ([127.0.0.1]:47028 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sQHv6-0004WI-5F
	for submit <at> debbugs.gnu.org; Sat, 06 Jul 2024 22:46:32 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:54016)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sQHv4-0004W3-68
 for 71929 <at> debbugs.gnu.org; Sat, 06 Jul 2024 22:46:30 -0400
DKIM-Signature: a=rsa-sha256;
 b=fppcZ9dZIRE+2Ld3UrzIJndRlxShTZol04GA45jI+wU5Sp18s4bU4XbCLurgTbeSoKZldVl3KMRG+3mi1wyy4Ceg1bRUIX11703v1BTiqPGu025Y4NiNI8otnBbfXn/YeyaRo2Gq8grASgbsbgt95+EKa74BQbfqC9/ytKitFYWOGYElh58wfLSpZd5BDkBAE81V2vH271GqiHm1Sq/CDx183s5r1IJZcZFw16yyFq5v8BkDhgdtF8KyZsHpBsYPzh27fL3rmqk54WIXHbkcA5LtFBrNjReCKUgVHQAKwmciOsCfwsZZCLdAbWEjdU965pWivwKSC/o2mX0Kx0ja+Q==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=E8WjlymbOsMbTOl5uaDoYuvtJFqi852DrGuIvkjj9iQ=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=EcPGzZ3BtkZXsNyDHf9mN9DTthCsMb0MD+XTiSh/1UxNW8hAOHhKx5Axr6ZjHKVXqxtCHXAwMRn0mKHK8+ir1M6q/0+/i0UZrKvDLNb3wO7Mgmlj1ZrQndpm6JNhuOTBpWGTrdzOGdTwlJ9xCDA3sR5bZg6mcrgLdeqf7ceE2ezNXXMcpiIkPeVf8nG8qvmR5uKtjropoBAzGTTn0F3++5JVmNPgIYym7uE7HhDfd6daZuSiqQT1qEHw4hfw1oLya+jzHx5E3Sp+6sZXASNoSPk9WyivXsjv/HArgORdj0P3N8dW6/LiC81VAJ/ZIyIEi7zqVPxXYgzD6eCVJiok2w==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=E8WjlymbOsMbTOl5uaDoYuvtJFqi852DrGuIvkjj9iQ=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 831103957; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sun, 07 Jul 2024 02:46:12 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id D4FF57F9FA9; Sun,  7 Jul 2024 10:46:09 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <87tth1rkfy.fsf@HIDDEN> (Sean Whitton's message
 of "Sun, 07 Jul 2024 10:43:13 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
 <87cynrjl84.fsf@HIDDEN> <87o77b2gsr.fsf@HIDDEN>
 <87tth1rkfy.fsf@HIDDEN>
Date: Sun, 07 Jul 2024 10:46:09 +0800
Message-ID: <87plrprkb2.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On Sun 07 Jul 2024 at 10:43am +08, Sean Whitton wrote:

> Hello,
>
> On Sat 06 Jul 2024 at 02:08pm +08, Po Lu wrote:
>
>> Thanks.  Would you mind running Emacs with this patch installed and
>> configured with the aforesaid option, and responding with backtraces
>> from any triggered assertion?
>
> I launch it with emacs --fg-daemon under gdb and it crashes immediately,
> before I've had chance to open any frames with emacsclient:

Not quite.  It crashes when I try to use 'emacsclient -c' to open the
first graphical frame.

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 7 Jul 2024 02:44:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 06 22:44:13 2024
Received: from localhost ([127.0.0.1]:47020 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sQHsr-0004S8-EI
	for submit <at> debbugs.gnu.org; Sat, 06 Jul 2024 22:44:13 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:50916)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sQHso-0004RW-Gf
 for 71929 <at> debbugs.gnu.org; Sat, 06 Jul 2024 22:44:10 -0400
DKIM-Signature: a=rsa-sha256;
 b=nbqHRw1FSc+udAMD6AGmMJxTB6dMPUkM36WOeuF++oKOzrxMVcC0Iay3qg/sWy9lOvgmdWQpPoagoGVkXQwNPBF6bJAvOKDe6FkxhBiI6+QToyYN2FjTzlsZJEHeQbJVIgnayzUVoHvUiSxifHGQWHQ+j8JHMh9I1E1mMCQSUyRhoo7/GW0gq6/JSc/f0APoRKQYnoJSAgVuRLkEwfwM9k4mGPOZfSPwtqu6Af2hg1ZqETbWAHRm7WNMGqmpVjJ46Bi3DNnrlRmqKZG50bNpeLjEaU7ODWyx+4huhFU9FRki8SftSmhitCSEWzShag8tLxUHNzHvvc4JJpB3d69v8A==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=0Jar7zqOti7NxxSXc5xCpBo0fPT+JVq+nNms2AAjfng=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=LDuVKMbol3byMH+XweQi51oCJuQMOdjMlDe9zVtvbmYNQb4aehj9SXaHI7LkvGb5A8cGLssWtFst9FvtHSlrIRjib4yKT4/CfZUxWtckarIr3gnzJ9dkhK5/7bqDJcqAFCGNFPQ5vbPaWVZ2ZRR3L2R/vhubnxFsd6nvUB/3RXU83DwnYjZf7HKsgx6G4Ctt7UgihmbRJxKa8XIsB/PYk4Om26JdISU4ybabOMpzRyZyw6gfCpo1xSnFCBRloA2mxQ5lPWMEA/vp5MdKLVvcCJJQNv2yrkcYt+lBpkJNFzBw6U+iEtOJDeZVdnlqRSzZchCX310Ar4Sabq46VI69JQ==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=0Jar7zqOti7NxxSXc5xCpBo0fPT+JVq+nNms2AAjfng=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 993874137; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sun, 07 Jul 2024 02:43:50 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 2A7527F9FD0; Sun,  7 Jul 2024 10:43:13 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <87o77b2gsr.fsf@HIDDEN> (Po Lu's message of "Sat, 06 Jul 2024
 14:08:52 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
 <87cynrjl84.fsf@HIDDEN> <87o77b2gsr.fsf@HIDDEN>
Date: Sun, 07 Jul 2024 10:43:13 +0800
Message-ID: <87tth1rkfy.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On Sat 06 Jul 2024 at 02:08pm +08, Po Lu wrote:

> Thanks.  Would you mind running Emacs with this patch installed and
> configured with the aforesaid option, and responding with backtraces
> from any triggered assertion?

I launch it with emacs --fg-daemon under gdb and it crashes immediately,
before I've had chance to open any frames with emacsclient:

 0 in terminate_due_to_signal of emacs.c:442
 1 in die of alloc.c:8083
 2 in verify_image_cache_refcount of /home/spwhitton/src/emacs/primary/src/frame.h:1708
 3 in init_frame_faces of xfaces.c:683
 4 in Fx_create_frame of pgtkfns.c:1467
 5 in funcall_subr of eval.c:3161
 6 in exec_byte_code of bytecode.c:812
 7 in funcall_lambda of eval.c:3252
 8 in funcall_general of eval.c:3044
 9 in Ffuncall of eval.c:3093
10 in Fapply of eval.c:2722
11 in funcall_subr of eval.c:3184
12 in exec_byte_code of bytecode.c:812
13 in funcall_lambda of eval.c:3252
14 in funcall_general of eval.c:3044
15 in Ffuncall of eval.c:3093
16 in Fapply of eval.c:2765
17 in apply1 of eval.c:2981
18 in read_process_output_call of process.c:6129
19 in internal_condition_case_1 of eval.c:1637
20 in read_and_dispose_of_process_output of process.c:6498
21 in read_process_output of process.c:6266
22 in wait_reading_process_output of process.c:5947
23 in kbd_buffer_get_event of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
24 in read_event_from_main_queue of keyboard.c:2330
25 in read_decoded_event_from_main_queue of keyboard.c:2394
26 in read_char of keyboard.c:3015
27 in read_key_sequence of keyboard.c:10743
28 in command_loop_1 of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
29 in internal_condition_case of eval.c:1613
30 in command_loop_2 of keyboard.c:1168
31 in internal_catch of eval.c:1292
32 in command_loop of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
33 in recursive_edit_1 of keyboard.c:754
34 in Frecursive_edit of keyboard.c:837
35 in main of emacs.c:2631

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 7 Jul 2024 02:44:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 06 22:44:10 2024
Received: from localhost ([127.0.0.1]:47015 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sQHso-0004Rn-2f
	for submit <at> debbugs.gnu.org; Sat, 06 Jul 2024 22:44:10 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:53720)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sQHsk-0004RR-Vr
 for 71929 <at> debbugs.gnu.org; Sat, 06 Jul 2024 22:44:08 -0400
DKIM-Signature: a=rsa-sha256;
 b=0zN0EzbyHQ47XzsvuhrPvFyFyj4sA26OJIPA4DysloK9xcpbb4j2QI+A6SWHHTx3IEd738kCakprGJ0Lb2D8SaY7UYqu7+p2ytbqytd7fnzg11JxPJDAx6qECPu9Relc+PKxgLuStWcgPdBSK5K4tVt5pUTBR0mDpypGU8U7fVOUVgqjU8kA74awlBfvolsNptJGrQayW0sNjb36k+x4Wc4MI2pSsu8+qAlofwr5LgKMkaI/N+g8iozeGG6xRn+ILKxGIWCJDQmDw7wOuHwc0lqNtO4ZmAqsCwLssZHdL63SJwA1vavtHPguxTEe+n0BM0qUbVKyWAf6q+cJXiS+1w==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=AqxGlj8IVQ5O0QjoodDeKUZZXm3fFDsPDoy1x4qBm2U=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=rMR3NC0uTJieIcP6e/dO5sEAH1nZh1CiehWHd1PqbO3G+Y9W7YdB7Dct4xclBiZ8BjdEJzmMslPTOGR44Wpb1pzgFCfbrF5qUohDvO2MskvK5CiNDwdIMW3sEViTNExHoxthDdzW7PSvf3UEERk/JIc9HbgHfnBevl9gpKPYbqHpX4ycc1gcBLJeftnqmL2MUK3g1wqbYC5uJLkLZHhtRjCRS4NPHsqeFwRK9h8H9+qjYSV5uYUT3tPzmq26BjF2MSlc5dhNIEGMnUkPZZW1GbUVooJZ+lp4+KUDV71/T+umpzPOb+YAmjM7k56t7x0n/qktNRLvftZX8GtZqkmV9w==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=AqxGlj8IVQ5O0QjoodDeKUZZXm3fFDsPDoy1x4qBm2U=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -997014538; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sun, 07 Jul 2024 02:43:50 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id E58A27F9FAA; Sun,  7 Jul 2024 10:40:52 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <87o77b2gsr.fsf@HIDDEN> (Po Lu's message of "Sat, 06 Jul 2024
 14:08:52 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
 <87cynrjl84.fsf@HIDDEN> <87o77b2gsr.fsf@HIDDEN>
Date: Sun, 07 Jul 2024 10:40:52 +0800
Message-ID: <87zfqtrkjv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On Sat 06 Jul 2024 at 02:08pm +08, Po Lu wrote:

>
> Thanks.  Would you mind running Emacs with this patch installed and
> configured with the aforesaid option, and responding with backtraces
> from any triggered assertion?

Will do.

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 7 Jul 2024 02:44:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 06 22:44:10 2024
Received: from localhost ([127.0.0.1]:47013 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sQHsn-0004Rl-Nl
	for submit <at> debbugs.gnu.org; Sat, 06 Jul 2024 22:44:10 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:53722)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sQHsk-0004RS-Vy
 for 71929 <at> debbugs.gnu.org; Sat, 06 Jul 2024 22:44:08 -0400
DKIM-Signature: a=rsa-sha256;
 b=tmb/JXhIV+4bf7xdguF9nWh4ly+//ud3ZEPT2RealT2XjpcFZFZTUo/8gINn7lzHnaW+ORpb14pVnHrLvihr7q5ltSEKYjs3WV9PuIF9DWV6xLDO8a4YsfKeHPdqf0WEJzEQyyhmglI4E7q3FF4quY8W7N5xEEhHZ4i4OzmdBbemKunoMCIkR7rtvZTlWwfJjD3c9D5Rjc1w384C/o7Gxz8s459wv2uWvpqCHtRBBv7ecFaCEl3cdcGC7AUwa4vjkQvnYsAMd10v3JOKBzDQIexuFDzaDOYwopJr2MP9UMvUUL28GHFDfPzvFnSrXmOTM33p3HK+GK+Tja+Oncft/g==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=u0T1TjMlzG7EfbZbadJKEP9mpV+10Kver84P4p/wWgM=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=GfwfjF0a99wdUB+yjCPaMUYIF4LX/RbNqIpx0rE+S2RdNvkORsKdo7rGWcvugNpozrsOQlR8cp+5uyYsyIgm/F+0rWf2BWG59y46cnZAdoKszeALwr+7yjoXowXqGp37r0qEzTVcXZD0/pqFIwyio8qaC13YQg6iY0ExzyP3vud1K8BbmMAv7sV1vQTY4RH+tJ9EL3DK+oPCY38j9FPA/JLhe5B8XbpHqPQrec4ldlCp0rgnfiQ4OQ52p+H+XMsgeNReNLAUTZG1wk+zu76aXgkUhf2bnFZxjOrTsyy7G7XI9NlWV2YNvYaJXF64yIF6jByCAXRK8b+lwypvnXcu8Q==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=u0T1TjMlzG7EfbZbadJKEP9mpV+10Kver84P4p/wWgM=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 1771844220; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sun, 07 Jul 2024 02:43:50 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id D0EA37F9F89; Sun,  7 Jul 2024 10:39:24 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <86msmv58gc.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 06 Jul
 2024 09:40:51 +0300")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
 <87cynrjl84.fsf@HIDDEN> <86msmv58gc.fsf@HIDDEN>
Date: Sun, 07 Jul 2024 10:39:24 +0800
Message-ID: <874j92rkmb.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: luangruo@HIDDEN, 71929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On Sat 06 Jul 2024 at 09:40am +03, Eli Zaretskii wrote:

>> From: Sean Whitton <spwhitton@HIDDEN>
>> Cc: Eli Zaretskii <eliz@HIDDEN>,  71929 <at> debbugs.gnu.org
>> Date: Sat, 06 Jul 2024 10:41:15 +0800
>>
>> I recompiled with this.  It crashed again this morning.  Unfortunately
>> it just crashed in the same way, without hitting any other failed
>> assertions along the way.  Here is the backtrace.
>>
>>   0 in mark_image_cache of image.c:3775
>>   1 in mark_frame of alloc.c:7063
>>   2 in process_mark_stack of alloc.c:7303
>
> Do you still have this crashes session in GDB, so I could ask you to
> look around and show values of some variables?

Unfortunately not.  I'll try to keep it aronud next time, and please let
me know as many variables as you have already thought of as soon as you
can.

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 6 Jul 2024 06:41:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 06 02:41:06 2024
Received: from localhost ([127.0.0.1]:45443 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPz6Y-0000kX-8l
	for submit <at> debbugs.gnu.org; Sat, 06 Jul 2024 02:41:06 -0400
Received: from eggs.gnu.org ([209.51.188.92]:46138)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sPz6V-0000jt-R3
 for 71929 <at> debbugs.gnu.org; Sat, 06 Jul 2024 02:41:04 -0400
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 <eliz@HIDDEN>)
 id 1sPz6M-0001ef-TW; Sat, 06 Jul 2024 02:40: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=dW5whJhs5DFwRIxHQmlZIq+j1hDEcRnhEKGPLwij5js=; b=Yf8DFGvBQt+B
 4DLZBx7IFFaVnHiYzb34zVWU+ZjdQOdGU8o9HrRRgABkrJH1L6atg/d06S6Ll89vi9hR2Zo5KUSLh
 As+LWW1r6J85eYOPoPjEyyLUQDvYQGvAOc2BvyKcDtwR51R2qqFNaCRXYO4+4GESE3jobr+3b05tf
 wDRKctlZdgFxi/OFcZOv8u5HwRVcrg/XxQo2RA0wPj3+hOKg/ePXTxTrJUOXfcLmo7tGaCfeDBQeT
 csFgeKpLMx9VrmySSxT48elkQEz+ZVH+Qk/hJW0n7dvIQpFQlKELA1ReNCZJgEvtX/BJzZoO9x/X0
 d+vfCbXHJZX4OnCthZjMUg==;
Date: Sat, 06 Jul 2024 09:40:51 +0300
Message-Id: <86msmv58gc.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87cynrjl84.fsf@HIDDEN> (message from Sean
 Whitton on Sat, 06 Jul 2024 10:41:15 +0800)
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
 <87cynrjl84.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71929
Cc: luangruo@HIDDEN, 71929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Sean Whitton <spwhitton@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>,  71929 <at> debbugs.gnu.org
> Date: Sat, 06 Jul 2024 10:41:15 +0800
> 
> I recompiled with this.  It crashed again this morning.  Unfortunately
> it just crashed in the same way, without hitting any other failed
> assertions along the way.  Here is the backtrace.
> 
>   0 in mark_image_cache of image.c:3775
>   1 in mark_frame of alloc.c:7063
>   2 in process_mark_stack of alloc.c:7303

Do you still have this crashes session in GDB, so I could ask you to
look around and show values of some variables?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 6 Jul 2024 06:09:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 06 02:09:22 2024
Received: from localhost ([127.0.0.1]:45403 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPybp-0005Qj-WE
	for submit <at> debbugs.gnu.org; Sat, 06 Jul 2024 02:09:22 -0400
Received: from sonic317-34.consmr.mail.ne1.yahoo.com ([66.163.184.45]:37689)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sPybn-0005QV-Kc
 for 71929 <at> debbugs.gnu.org; Sat, 06 Jul 2024 02:09:20 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720246149; bh=z5nSD+1/rQWFDwFJFhwtJA6QUJ1OBVyK7Eqn2N12kkw=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=XPHH8tcrJFKn/+uHW+PNqLytgyHn9sVieTAMAtlxfcz/pc3G2yCqiFEBAlFz+cqhfmgZb0lQJFBUMB31Va8Lp89tyVbAVnYI8OntMbHNic/7V9Y1GbX6l/DpGhQq0t6XoVVvZjezabWEXLJMt6tYP4Px6/AnZE/1ESpXbaCKXBuVop79PAGk+xf5tdiidrdFcUfHOQo5O6UjzS6SY4M6QSCTiYurFR+URzXY2+M3Ynj+qGYuMYrQMdnU0tfe0IiIurjs7ssV4ofhkN8L95npkRjp1DE8i8Ci0haRR2TZgueOuD0zORDNyPGj3NBVYrYsOGN2tMLyZisSKptc0UmkOw==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720246149; bh=/G1BKVDH5PbbxbTie9UYqyHF7o519hQIIKagB0ysYih=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=Nx3MVA91WqzFpinI7+4AsQAb5bWGx018Z+N4Oc352h3Tiweb7ZfOVbvAIs8suP2efFm/7Zq83QiHcccThU3QMu7eKKIdiNCbgAuJnjVEOQInw/b0nFmZz4uimL7Vi+bWxN/bz8V3Pa6FkNsGccTMUkIzCzsSbFpL/4m0cx0kAhCKWGZwcVG37Q4Mvwo9iJ+bJcgc1jf+xhDk3BQwlXATpSioSfmhXyxZa/xqkz3zlc7/CSlnTK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MbXMK9T9k2AgEnO9hAu1YEv1GmiXAMXuS3yKMEp
 zp_I4KJ2YluWQGLQ8cUt4QFadAV3V_uUaLMX4nzY6gydg6yAwsCrgBZE8FJzfBZvoC1uVDmOBYrj
 I_IRyOEE01msqAFg16m7lrgcmblBwyYiJf1lCbE8RMfn7gkZDvGuTXOTes4Vo8ErvdTMTn5OKnYa
 GD7JbSrGqlzT.FYVib9kJFBuQjAYwM_XwwiUEzriFrW77HcyUXlxcDpJwwPiflger2m1yrE.Uvdj
 oEz1qr2PhVUOJlATuLT3mwvjILp6oHT0KtPjCdgaDMFzP57Q-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 8f865e73-ce33-4e13-b9fc-0591f3f8a0e0
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic317.consmr.mail.ne1.yahoo.com with HTTP; Sat, 6 Jul 2024 06:09:09 +0000
Received: by hermes--production-sg3-7b469d9f6-jl6j9 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 66a903102762e76c70b1f8222c42fb77; 
 Sat, 06 Jul 2024 06:09:04 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <87cynrjl84.fsf@HIDDEN> (Sean Whitton's message
 of "Sat, 06 Jul 2024 10:41:15 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
 <87cynrjl84.fsf@HIDDEN>
Date: Sat, 06 Jul 2024 14:08:52 +0800
Message-ID: <87o77b2gsr.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22464
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 10090
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Sean Whitton <spwhitton@HIDDEN> writes:

> I recompiled with this.  It crashed again this morning.  Unfortunately
> it just crashed in the same way, without hitting any other failed
> assertions along the way.  Here is the backtrace.
>
>   0 in mark_image_cache of image.c:3775
>   1 in mark_frame of alloc.c:7063
>   2 in process_mark_stack of alloc.c:7303
>   3 in mark_objects of alloc.c:7512
>   4 in mark_vectorlike of alloc.c:6891
>   5 in mark_window of alloc.c:7072
>   6 in process_mark_stack of alloc.c:7307
>   7 in mark_objects of alloc.c:7512
>   8 in mark_vectorlike of alloc.c:6891
>   9 in mark_frame of alloc.c:7037
>  10 in process_mark_stack of alloc.c:7303
>  11 in mark_objects of alloc.c:7512
>  12 in mark_vectorlike of alloc.c:6891
>  13 in mark_window of alloc.c:7072
>  14 in process_mark_stack of alloc.c:7307
>  15 in mark_object of alloc.c:7504
>  16 in mark_char_table of alloc.c:6920
>  17 in mark_char_table of alloc.c:6917
>  18 in process_mark_stack of alloc.c:7341
>  19 in mark_object of alloc.c:7504
>  20 in mark_char_table of alloc.c:6920
>  21 in mark_char_table of alloc.c:6917
>  22 in process_mark_stack of alloc.c:7341
>  23 in mark_object of alloc.c:7504
>  24 in mark_interval_tree_1 of alloc.c:1529
>  25 in traverse_intervals_noorder of intervals.c:243
>  26 in traverse_intervals_noorder of intervals.c:248
>  27 in traverse_intervals_noorder of intervals.c:248
>  28 in traverse_intervals_noorder of intervals.c:248
>  29 in mark_interval_tree of alloc.c:1538
>  30 in mark_buffer of alloc.c:6958
>  31 in process_mark_stack of alloc.c:7299
>  32 in mark_objects of alloc.c:7512
>  33 in mark_vectorlike of alloc.c:6891
>  34 in mark_buffer of alloc.c:6954
>  35 in process_mark_stack of alloc.c:7299
>  36 in mark_object of alloc.c:7504
>  37 in mark_discard_killed_buffers of alloc.c:7020
>  38 in mark_window of alloc.c:7087
>  39 in process_mark_stack of alloc.c:7307
>  40 in mark_objects of alloc.c:7512
>  41 in mark_vectorlike of alloc.c:6891
>  42 in mark_frame of alloc.c:7037
>  43 in process_mark_stack of alloc.c:7303
>  44 in mark_object of alloc.c:7504
>  45 in mark_interval_tree_1 of alloc.c:1529
>  46 in traverse_intervals_noorder of intervals.c:243
>  47 in mark_interval_tree of alloc.c:1538
>  48 in process_mark_stack of alloc.c:7264
>  49 in mark_objects of alloc.c:7512
>  50 in mark_vectorlike of alloc.c:6891
>  51 in mark_buffer of alloc.c:6954
>  52 in process_mark_stack of alloc.c:7299
>  53 in mark_object of alloc.c:7504
>  54 in mark_interval_tree_1 of alloc.c:1529
>  55 in traverse_intervals_noorder of intervals.c:243
>  56 in traverse_intervals_noorder of intervals.c:248
>  57 in traverse_intervals_noorder of intervals.c:248
>  58 in mark_interval_tree of alloc.c:1538
>  59 in process_mark_stack of alloc.c:7264
>  60 in mark_object of alloc.c:7504
>  61 in mark_glyph_matrix of alloc.c:6847
>  62 in mark_window of alloc.c:7079
>  63 in process_mark_stack of alloc.c:7307
>  64 in mark_objects of alloc.c:7512
>  65 in mark_vectorlike of alloc.c:6891
>  66 in mark_frame of alloc.c:7037
>  67 in process_mark_stack of alloc.c:7303
>  68 in mark_object of alloc.c:7504
>  69 in mark_interval_tree_1 of alloc.c:1529
>  70 in traverse_intervals_noorder of intervals.c:243
>  71 in mark_interval_tree of alloc.c:1538
>  72 in process_mark_stack of alloc.c:7264
>  73 in mark_object of alloc.c:7504
>  74 in mark_overlay of alloc.c:6933
>  75 in process_mark_stack of alloc.c:7355
>  76 in mark_objects of alloc.c:7512
>  77 in mark_vectorlike of alloc.c:6891
>  78 in mark_buffer of alloc.c:6954
>  79 in process_mark_stack of alloc.c:7299
>  80 in mark_object of alloc.c:7504
>  81 in mark_interval_tree_1 of alloc.c:1529
>  82 in traverse_intervals_noorder of intervals.c:243
>  83 in mark_interval_tree of alloc.c:1538
>  84 in process_mark_stack of alloc.c:7264
>  85 in mark_object of alloc.c:7504
>  86 in mark_char_table of alloc.c:6920
>  87 in mark_char_table of alloc.c:6917
>  88 in process_mark_stack of alloc.c:7341
>  89 in mark_object of alloc.c:7504
>  90 in mark_char_table of alloc.c:6920
>  91 in mark_char_table of alloc.c:6917
>  92 in process_mark_stack of alloc.c:7341
>  93 in mark_objects of alloc.c:7512
>  94 in mark_vectorlike of alloc.c:6891
>  95 in mark_buffer of alloc.c:6954
>  96 in process_mark_stack of alloc.c:7299
>  97 in mark_objects of alloc.c:7512
>  98 in mark_vectorlike of alloc.c:6891
>  99 in mark_buffer of alloc.c:6954
> 100 in process_mark_stack of alloc.c:7299
> 101 in mark_object of alloc.c:7504
> 102 in mark_char_table of alloc.c:6920
> 103 in mark_char_table of alloc.c:6917
> 104 in process_mark_stack of alloc.c:7341
> 105 in mark_objects of alloc.c:7512
> 106 in mark_vectorlike of alloc.c:6891
> 107 in mark_buffer of alloc.c:6954
> 108 in process_mark_stack of alloc.c:7299
> 109 in mark_objects of alloc.c:7512
> 110 in mark_vectorlike of alloc.c:6891
> 111 in mark_buffer of alloc.c:6954
> 112 in process_mark_stack of alloc.c:7299
> 113 in mark_objects of alloc.c:7512
> 114 in mark_vectorlike of alloc.c:6891
> 115 in mark_buffer of alloc.c:6954
> 116 in process_mark_stack of alloc.c:7299
> 117 in mark_objects of alloc.c:7512
> 118 in mark_vectorlike of alloc.c:6891
> 119 in mark_buffer of alloc.c:6954
> 120 in process_mark_stack of alloc.c:7299
> 121 in mark_objects of alloc.c:7512
> 122 in mark_vectorlike of alloc.c:6891
> 123 in mark_buffer of alloc.c:6954
> 124 in process_mark_stack of alloc.c:7299
> 125 in mark_object of alloc.c:7504
> 126 in mark_object_root_visitor of alloc.c:6396
> 127 in visit_vectorlike_root of alloc.c:6348
> 128 in visit_buffer_root of alloc.c:6362
> 129 in visit_static_gc_roots of alloc.c:6374
> 130 in garbage_collect of alloc.c:6598
> 131 in maybe_garbage_collect of alloc.c:6507
> 132 in maybe_gc of /home/spwhitton/src/emacs/primary/src/lisp.h:5929
> 133 in exec_byte_code of bytecode.c:787
> 134 in funcall_lambda of eval.c:3252
> 135 in funcall_general of eval.c:3044
> 136 in Ffuncall of eval.c:3093
> 137 in Fapply of eval.c:2718
> 138 in funcall_subr of eval.c:3184
> 139 in exec_byte_code of bytecode.c:812
> 140 in funcall_lambda of eval.c:3252
> 141 in funcall_general of eval.c:3044
> 142 in Ffuncall of eval.c:3093
> 143 in timer_check_2 of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
> 144 in timer_check of keyboard.c:4866
> 145 in readable_events of keyboard.c:3591
> 146 in get_input_pending of keyboard.c:7869
> 147 in detect_input_pending_run_timers of keyboard.c:11573
> 148 in wait_reading_process_output of process.c:5838
> 149 in kbd_buffer_get_event of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
> 150 in read_event_from_main_queue of keyboard.c:2330
> 151 in read_decoded_event_from_main_queue of keyboard.c:2394
> 152 in read_char of keyboard.c:3015
> 153 in read_key_sequence of keyboard.c:10743
> 154 in command_loop_1 of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
> 155 in internal_condition_case of eval.c:1613
> 156 in command_loop_2 of keyboard.c:1168
> 157 in internal_catch of eval.c:1292
> 158 in command_loop of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
> 159 in recursive_edit_1 of keyboard.c:754
> 160 in Frecursive_edit of keyboard.c:837
> 161 in main of emacs.c:2631

Thanks.  Would you mind running Emacs with this patch installed and
configured with the aforesaid option, and responding with backtraces
from any triggered assertion?

diff --git a/src/frame.c b/src/frame.c
index 7f4bf274ad9..a4b8ca207ee 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -4831,14 +4831,18 @@ gui_set_font (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
 	  /* Clean F's image cache of images whose values are derived
 	     from the font width.  */
 	  clear_image_cache (f, Qauto);
+	  verify_image_cache_refcount (f);
 	}
       else
 	{
 	  /* Release the current image cache, and reuse or allocate a
 	     new image cache with IWIDTH.  */
 	  FRAME_IMAGE_CACHE (f)->refcount--;
+	  FRAME_IMAGE_CACHE (f) = NULL;
+	  verify_image_cache_refcount (f);
 	  FRAME_IMAGE_CACHE (f) = share_image_cache (f);
 	  FRAME_IMAGE_CACHE (f)->refcount++;
+	  verify_image_cache_refcount (f);
 	}
     }
 
diff --git a/src/frame.h b/src/frame.h
index 1d920d1a6bc..eee694d6920 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -1682,6 +1682,34 @@ IMAGE_OPT_FROM_ID (struct frame *f, int id)
   eassume (0 <= used);
   return 0 <= id && id < used ? FRAME_IMAGE_CACHE (f)->images[id] : NULL;
 }
+
+/* Abort if F's image cache's `refcount' field disagrees with the number
+   of frames holding references to the same.  */
+
+INLINE void
+verify_image_cache_refcount (f)
+     struct frame *f;
+{
+#ifdef ENABLE_CHECKING
+  int expected;
+  Lisp_Object tail, frame;
+
+  if (FRAME_IMAGE_CACHE (f))
+    {
+      expected = 0;
+
+      FOR_EACH_FRAME (tail, frame)
+	{
+	  if (FRAME_IMAGE_CACHE (XFRAME (frame))
+	      == FRAME_IMAGE_CACHE (f))
+	    expected++;
+	}
+
+      eassert (expected == FRAME_IMAGE_CACHE (f)->refcount);
+    }
+#endif /* ENABLE_CHECKING */
+}
+
 #endif
 
 /***********************************************************************
diff --git a/src/image.c b/src/image.c
index 2945447b962..9420c579d7b 100644
--- a/src/image.c
+++ b/src/image.c
@@ -3625,6 +3625,7 @@ cache_image (struct frame *f, struct image *img)
     {
       c = FRAME_IMAGE_CACHE (f) = share_image_cache (f);
       c->refcount++;
+      verify_image_cache_refcount (f);
     }
 
   /* Find a free slot in c->images.  */
diff --git a/src/xfaces.c b/src/xfaces.c
index 188dd4778bc..0e0172e1984 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -680,6 +680,7 @@ init_frame_faces (struct frame *f)
     {
       FRAME_IMAGE_CACHE (f) = share_image_cache (f);
       ++FRAME_IMAGE_CACHE (f)->refcount;
+      verify_image_cache_refcount (f);
     }
 #endif /* HAVE_WINDOW_SYSTEM */
 
@@ -709,6 +710,7 @@ free_frame_faces (struct frame *f)
       struct image_cache *image_cache = FRAME_IMAGE_CACHE (f);
       if (image_cache)
 	{
+	  verify_image_cache_refcount (f);
 	  --image_cache->refcount;
 	  if (image_cache->refcount == 0)
 	    free_image_cache (f);




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 6 Jul 2024 02:41:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 05 22:41:44 2024
Received: from localhost ([127.0.0.1]:45323 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPvMt-0007Rp-GC
	for submit <at> debbugs.gnu.org; Fri, 05 Jul 2024 22:41:44 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:59230)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sPvMq-0007RT-9e
 for 71929 <at> debbugs.gnu.org; Fri, 05 Jul 2024 22:41:41 -0400
DKIM-Signature: a=rsa-sha256;
 b=BRIyldj8HBGqfhDI3cFl/j9jfn2ydQWIOj0cM4AGlUJv/Qp+lVBYsuuA4lQhEYMgZo30DHUGJ5TPaFEaQxkJ2OOUKM4mm9CAe42f9Pz41Auu9ta0w2u+fZONFRycKERipVCMs9T/VA/8bd2N0Rw/bGso0k/5POgPZrixBLcRbb71BN5wB1sRD1oUfls7p3jBUEts1s8G5u+eitR4D9S5VgnafNtw3WQKAgEQ4TG5N/ZDmlkfdAmX1a2vLwUwdlq28DDWraVHFVjMeS/Qrt/V9JVh6qdfyOcIyfORDeMxkRzHbdkaXO8U2GEJUvwHwX5YPLjDmzV2VE9U1H6dmD1Vkg==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=248bzwS4HgQa6G3FXkykojGuvCajYZa3GQbeQPdEkXo=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=0pX2/pIWxgNOJRFa1pVVk0HQCHlWcd+YRYUfyLaOhuvJCZnloJOVxyRSoI01MnEHaRIZhHG3VKFPAt98617x+BGKJhT81rhpZvPqqjAwMxYGI8d2K6gH2P9S7v6/zULQPO5/xvmw9hVSR/Zabpa0lUZnefGPn0FIyrsjaUTrKj/IB1TkfEcM2Mr47gxerHCYALhMLtOtrr0CBk0Efo/5AZtpmvfFDd+9Vi2M3JA9cGiRbuo6Ja4fZ/X4n0k2bq3mZqecVp8JDWwBsFjQiiKRW0W56UPK+JzvmkTdBueiazJ4HHBhJfTS4gCKAW5/zwSwy26C/NR95R/OCq5bvO9Ncg==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=248bzwS4HgQa6G3FXkykojGuvCajYZa3GQbeQPdEkXo=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1148137841; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sat, 06 Jul 2024 02:41:18 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 694997F9F64; Sat,  6 Jul 2024 10:41:15 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <87sewo2hk3.fsf@HIDDEN> (Po Lu's message of "Fri, 05 Jul 2024
 19:40:12 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
Date: Sat, 06 Jul 2024 10:41:15 +0800
Message-ID: <87cynrjl84.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On Fri 05 Jul 2024 at 07:40pm +08, Po Lu wrote:

> Eli Zaretskii <eliz@HIDDEN> writes:
>
>> Can you suggest a GDB setup for Sean to use in order to try to find
>> this unknown code which causes this?
>
> I suggested compiling --enable-checking, as there is an assert which I
> expect to be activated in these situations.

I recompiled with this.  It crashed again this morning.  Unfortunately
it just crashed in the same way, without hitting any other failed
assertions along the way.  Here is the backtrace.

  0 in mark_image_cache of image.c:3775
  1 in mark_frame of alloc.c:7063
  2 in process_mark_stack of alloc.c:7303
  3 in mark_objects of alloc.c:7512
  4 in mark_vectorlike of alloc.c:6891
  5 in mark_window of alloc.c:7072
  6 in process_mark_stack of alloc.c:7307
  7 in mark_objects of alloc.c:7512
  8 in mark_vectorlike of alloc.c:6891
  9 in mark_frame of alloc.c:7037
 10 in process_mark_stack of alloc.c:7303
 11 in mark_objects of alloc.c:7512
 12 in mark_vectorlike of alloc.c:6891
 13 in mark_window of alloc.c:7072
 14 in process_mark_stack of alloc.c:7307
 15 in mark_object of alloc.c:7504
 16 in mark_char_table of alloc.c:6920
 17 in mark_char_table of alloc.c:6917
 18 in process_mark_stack of alloc.c:7341
 19 in mark_object of alloc.c:7504
 20 in mark_char_table of alloc.c:6920
 21 in mark_char_table of alloc.c:6917
 22 in process_mark_stack of alloc.c:7341
 23 in mark_object of alloc.c:7504
 24 in mark_interval_tree_1 of alloc.c:1529
 25 in traverse_intervals_noorder of intervals.c:243
 26 in traverse_intervals_noorder of intervals.c:248
 27 in traverse_intervals_noorder of intervals.c:248
 28 in traverse_intervals_noorder of intervals.c:248
 29 in mark_interval_tree of alloc.c:1538
 30 in mark_buffer of alloc.c:6958
 31 in process_mark_stack of alloc.c:7299
 32 in mark_objects of alloc.c:7512
 33 in mark_vectorlike of alloc.c:6891
 34 in mark_buffer of alloc.c:6954
 35 in process_mark_stack of alloc.c:7299
 36 in mark_object of alloc.c:7504
 37 in mark_discard_killed_buffers of alloc.c:7020
 38 in mark_window of alloc.c:7087
 39 in process_mark_stack of alloc.c:7307
 40 in mark_objects of alloc.c:7512
 41 in mark_vectorlike of alloc.c:6891
 42 in mark_frame of alloc.c:7037
 43 in process_mark_stack of alloc.c:7303
 44 in mark_object of alloc.c:7504
 45 in mark_interval_tree_1 of alloc.c:1529
 46 in traverse_intervals_noorder of intervals.c:243
 47 in mark_interval_tree of alloc.c:1538
 48 in process_mark_stack of alloc.c:7264
 49 in mark_objects of alloc.c:7512
 50 in mark_vectorlike of alloc.c:6891
 51 in mark_buffer of alloc.c:6954
 52 in process_mark_stack of alloc.c:7299
 53 in mark_object of alloc.c:7504
 54 in mark_interval_tree_1 of alloc.c:1529
 55 in traverse_intervals_noorder of intervals.c:243
 56 in traverse_intervals_noorder of intervals.c:248
 57 in traverse_intervals_noorder of intervals.c:248
 58 in mark_interval_tree of alloc.c:1538
 59 in process_mark_stack of alloc.c:7264
 60 in mark_object of alloc.c:7504
 61 in mark_glyph_matrix of alloc.c:6847
 62 in mark_window of alloc.c:7079
 63 in process_mark_stack of alloc.c:7307
 64 in mark_objects of alloc.c:7512
 65 in mark_vectorlike of alloc.c:6891
 66 in mark_frame of alloc.c:7037
 67 in process_mark_stack of alloc.c:7303
 68 in mark_object of alloc.c:7504
 69 in mark_interval_tree_1 of alloc.c:1529
 70 in traverse_intervals_noorder of intervals.c:243
 71 in mark_interval_tree of alloc.c:1538
 72 in process_mark_stack of alloc.c:7264
 73 in mark_object of alloc.c:7504
 74 in mark_overlay of alloc.c:6933
 75 in process_mark_stack of alloc.c:7355
 76 in mark_objects of alloc.c:7512
 77 in mark_vectorlike of alloc.c:6891
 78 in mark_buffer of alloc.c:6954
 79 in process_mark_stack of alloc.c:7299
 80 in mark_object of alloc.c:7504
 81 in mark_interval_tree_1 of alloc.c:1529
 82 in traverse_intervals_noorder of intervals.c:243
 83 in mark_interval_tree of alloc.c:1538
 84 in process_mark_stack of alloc.c:7264
 85 in mark_object of alloc.c:7504
 86 in mark_char_table of alloc.c:6920
 87 in mark_char_table of alloc.c:6917
 88 in process_mark_stack of alloc.c:7341
 89 in mark_object of alloc.c:7504
 90 in mark_char_table of alloc.c:6920
 91 in mark_char_table of alloc.c:6917
 92 in process_mark_stack of alloc.c:7341
 93 in mark_objects of alloc.c:7512
 94 in mark_vectorlike of alloc.c:6891
 95 in mark_buffer of alloc.c:6954
 96 in process_mark_stack of alloc.c:7299
 97 in mark_objects of alloc.c:7512
 98 in mark_vectorlike of alloc.c:6891
 99 in mark_buffer of alloc.c:6954
100 in process_mark_stack of alloc.c:7299
101 in mark_object of alloc.c:7504
102 in mark_char_table of alloc.c:6920
103 in mark_char_table of alloc.c:6917
104 in process_mark_stack of alloc.c:7341
105 in mark_objects of alloc.c:7512
106 in mark_vectorlike of alloc.c:6891
107 in mark_buffer of alloc.c:6954
108 in process_mark_stack of alloc.c:7299
109 in mark_objects of alloc.c:7512
110 in mark_vectorlike of alloc.c:6891
111 in mark_buffer of alloc.c:6954
112 in process_mark_stack of alloc.c:7299
113 in mark_objects of alloc.c:7512
114 in mark_vectorlike of alloc.c:6891
115 in mark_buffer of alloc.c:6954
116 in process_mark_stack of alloc.c:7299
117 in mark_objects of alloc.c:7512
118 in mark_vectorlike of alloc.c:6891
119 in mark_buffer of alloc.c:6954
120 in process_mark_stack of alloc.c:7299
121 in mark_objects of alloc.c:7512
122 in mark_vectorlike of alloc.c:6891
123 in mark_buffer of alloc.c:6954
124 in process_mark_stack of alloc.c:7299
125 in mark_object of alloc.c:7504
126 in mark_object_root_visitor of alloc.c:6396
127 in visit_vectorlike_root of alloc.c:6348
128 in visit_buffer_root of alloc.c:6362
129 in visit_static_gc_roots of alloc.c:6374
130 in garbage_collect of alloc.c:6598
131 in maybe_garbage_collect of alloc.c:6507
132 in maybe_gc of /home/spwhitton/src/emacs/primary/src/lisp.h:5929
133 in exec_byte_code of bytecode.c:787
134 in funcall_lambda of eval.c:3252
135 in funcall_general of eval.c:3044
136 in Ffuncall of eval.c:3093
137 in Fapply of eval.c:2718
138 in funcall_subr of eval.c:3184
139 in exec_byte_code of bytecode.c:812
140 in funcall_lambda of eval.c:3252
141 in funcall_general of eval.c:3044
142 in Ffuncall of eval.c:3093
143 in timer_check_2 of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
144 in timer_check of keyboard.c:4866
145 in readable_events of keyboard.c:3591
146 in get_input_pending of keyboard.c:7869
147 in detect_input_pending_run_timers of keyboard.c:11573
148 in wait_reading_process_output of process.c:5838
149 in kbd_buffer_get_event of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
150 in read_event_from_main_queue of keyboard.c:2330
151 in read_decoded_event_from_main_queue of keyboard.c:2394
152 in read_char of keyboard.c:3015
153 in read_key_sequence of keyboard.c:10743
154 in command_loop_1 of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
155 in internal_condition_case of eval.c:1613
156 in command_loop_2 of keyboard.c:1168
157 in internal_catch of eval.c:1292
158 in command_loop of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
159 in recursive_edit_1 of keyboard.c:754
160 in Frecursive_edit of keyboard.c:837
161 in main of emacs.c:2631

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 5 Jul 2024 12:46:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 05 08:46:41 2024
Received: from localhost ([127.0.0.1]:43745 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPiKm-000629-OA
	for submit <at> debbugs.gnu.org; Fri, 05 Jul 2024 08:46:41 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:47930)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sPiKk-00061t-AI
 for 71929 <at> debbugs.gnu.org; Fri, 05 Jul 2024 08:46:40 -0400
DKIM-Signature: a=rsa-sha256;
 b=jTrj+SN6Yp/YntxJ/+GZLmWKhuS03htyU5w3tHWf4cuIUgVlw+h2893POicZeRtTt/z8LkLIMQ6kvEFT+mvBxqZknNtkfvSaF/fLnZ0l93FZZPZFL7lNdkf09YpCXEr7ahtQ0x3J8qMCImEOOUIpxp3JABG1KtOMsJdzGgRZLet6ndDB3DjTFFdTfI8x3pTiEyi0JxkRTucFN9cVFChff8//xGcZPoVGbvbWdC4SNHiOXsxTxuMj6VbL0xfs0mF2Il+7j7HBU1E82W4xy1Pfn7q4R6Q8uhi1FAKGRDDhAbsL2wtg4suGbdn1CWK2jhvL1ap1xeUrtn6eUL6IhR7zew==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=6BjT9PAT6gXIebw+s9x1l0sSfjEHNlTj1uH5dZB3xtM=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=UZq6t4zpcmxHfPqo8vt9YJ9n1vJpmP92B3e+iBhatH0uQIktmEJ6vyCcoe3vy7ldtL7pO9zv362eBqz1KQRsrdWVhDGbXZl4P6WLt5lM0Sgf24K/rKW2RcklWN+oDd4Gmx4+DYQqVJy+K6abMDWiUnChhkOg0z7JveWUtPKWQL3CgTUszS+YmeP2dHXzknpWHQIxzlymlfkRDhd/qXE7OpI4z2VxWUdQ++P8hyspSTFV2hwjt0AwNe7y1jUkh2V3+iWyAmuAD/9Yo9lDAEgFwTwt4lmjgvl5LjlrLn2LScagzvcX/F2dcrPMcX9b5cct0ZB7G0iiYwyOYslkx6deCw==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=6BjT9PAT6gXIebw+s9x1l0sSfjEHNlTj1uH5dZB3xtM=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1846752959; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Fri, 05 Jul 2024 12:46:26 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id EFD017F9F4D; Fri,  5 Jul 2024 20:46:21 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <87sewo2hk3.fsf@HIDDEN> (Po Lu's message of "Fri, 05 Jul 2024
 19:40:12 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN> <87sewo2hk3.fsf@HIDDEN>
Date: Fri, 05 Jul 2024 20:46:21 +0800
Message-ID: <87le2gj9b6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On Fri 05 Jul 2024 at 07:40pm +08, Po Lu wrote:

> Eli Zaretskii <eliz@HIDDEN> writes:
>
>> Can you suggest a GDB setup for Sean to use in order to try to find
>> this unknown code which causes this?
>
> I suggested compiling --enable-checking, as there is an assert which I
> expect to be activated in these situations.

Yeah, now running with this.  Probably I'll have a crash within a day.

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 5 Jul 2024 11:40:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 05 07:40:45 2024
Received: from localhost ([127.0.0.1]:43678 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPhIy-00048r-Oi
	for submit <at> debbugs.gnu.org; Fri, 05 Jul 2024 07:40:45 -0400
Received: from sonic306-20.consmr.mail.ne1.yahoo.com ([66.163.189.82]:35571)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sPhIw-00048d-Kh
 for 71929 <at> debbugs.gnu.org; Fri, 05 Jul 2024 07:40:43 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720179631; bh=5HM5K4XjszoYQ34IJukHlF5SjTa1uxjllBtU8sHI2K0=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=Dka87VSZfUg+Oq/f2uwXhmzgZdIlEY2EeJxNYjpVjS/LInePCWdgZUjQd7IAZWc4LHr1Kd1iOrrjwFI1r/UylC6du+AqkaBzvtng6Q1dHRtNP5r0Sx5t+VtV8FMi02Dve/X+tldnD9pO4tg2F+gjM8npoqCA8fAFQKZ8MdNhRV0xRL7WtNf8ZGUHsn+7RaxM6tkCHAFm98ImaIPp4x+v8eA68U4Fiv52vvDoSyQQS4WXKEISlUJdbKeGhOXs7DeNkBwhAkorIRiXc3uwBgHVJRzHV+pCm7hNGC5v+aCNK+sthuineef/Vsv6A+7tJt7ZCWOda97sKlB/yj4NDaoweQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720179631; bh=YAjxUIBYh4qwJ4n0EdoWm0Gkcr4qePcYNpDl6WmAte7=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=Oc802YpRzbZBOL0TixpCJEUjc5aJkiawASUrTfW6UIfVmMFt2DEsU+t4MXLB6j2EXe9idfCba+3vjDuLqB49lOSE5hwcK3S8OyPU2O+t9xAW2m3dHnhP6UT31TU5MTSXVO0OEbQQOjzMawWeTsa5fIL1cJaSQQkzdBidxvAh6vbR+ThR4JGXXTetVq9mteq6HnRR8agkao1r8+r+w9dhxNLSnawH8ZafPv3+JS1a2o5EHF2TAotkjl1b5C50zQJi7bTMoB/CGVahqigJ/Uicr0jD7+fbUf2iYqxa+m7ndwOE/S6TMy2hInh8qTi2vpfcPzxYKq7LlTspexO9ulbISA==
X-YMail-OSG: 5chHpgUVM1l821_o1BPBAmvoBMolH8L9_nIXtE9YobZNdE9ABy.NKjq9DoixYJ8
 qE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fx09UOVjItYyb8CAGXN
 tvsR9RrT7_IaHaWB85JIQOPIxX7TfP.Oej9t0S.H3qTa2OZp5mRerI5BOjG0qE8qrbeKondnPYwE
 fubLDJpFbHwnw1nfo8UzHpSFPJEe9BmlYHTVJqTL4pdqqYuhTBms-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: a7a70a21-082f-4456-a2e1-cd16c743af28
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic306.consmr.mail.ne1.yahoo.com with HTTP; Fri, 5 Jul 2024 11:40:31 +0000
Received: by hermes--production-sg3-7b469d9f6-k6vt4 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 70cc0c09f7a10cffac59f4554f808321; 
 Fri, 05 Jul 2024 11:40:23 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <867ce06qnf.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 05 Jul
 2024 14:10:12 +0300")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
 <867ce06qnf.fsf@HIDDEN>
Date: Fri, 05 Jul 2024 19:40:12 +0800
Message-ID: <87sewo2hk3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22464
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 665
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

> Can you suggest a GDB setup for Sean to use in order to try to find
> this unknown code which causes this?

I suggested compiling --enable-checking, as there is an assert which I
expect to be activated in these situations.

> Please note that this affects the release branch, and the changeset
> which seems to have caused it was installed a couple of days before
> the release branch was cut.  So if we cannot find and solve the
> problem soon enough, I'd revert that changeset and solve the original
> problem which it was supposed to solve on master, rather than leave
> such a serious problem on the release branch.

OK.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 5 Jul 2024 11:10:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 05 07:10:28 2024
Received: from localhost ([127.0.0.1]:43647 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPgpg-0000Tt-DH
	for submit <at> debbugs.gnu.org; Fri, 05 Jul 2024 07:10:28 -0400
Received: from eggs.gnu.org ([209.51.188.92]:57942)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sPgpd-0000TX-Ms
 for 71929 <at> debbugs.gnu.org; Fri, 05 Jul 2024 07:10:26 -0400
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 <eliz@HIDDEN>)
 id 1sPgpV-00051n-99; Fri, 05 Jul 2024 07:10:17 -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=0PIRtfdVOGzsYOUsbNe3+V1JHs5+JjB1l/WJI+kGOqE=; b=j/EjQY+kxOlK
 YDGJu42VOjYWZ7snKWSlZ9mLZXyKYw4QT91QnYa4+Q+hpeOaMrF80klSqwbN6z/nvr3ZyvFGZozwS
 ZgbSgaOa6KkwRjZ9I67RZUCiRHgOeBsWguwz5+NxJx8fuqo+MzezM16/e3u24XawysBmvJR7sd+6Q
 VKdfehgkJEd8M7kFerKrzVIah0uEY5xS5ZTCkj7/Eu8/hAUCYd6oTYwpv3Inj2Um3w/4rkdg9Kut/
 D7jnbCFLtuj0oX4v3hWh73p4wCFfT4aqHXZFLxfvsEt7VSQIhgDhQ4FlNlf6eAEUmuBx4++AilZKB
 4mPDg+4GcA5IpdIejfza1Q==;
Date: Fri, 05 Jul 2024 14:10:12 +0300
Message-Id: <867ce06qnf.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
In-Reply-To: <87wmm02n9q.fsf@HIDDEN> (message from Po Lu on Fri, 05 Jul
 2024 17:36:49 +0800)
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN> <87wmm02n9q.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Po Lu <luangruo@HIDDEN>
> Cc: spwhitton@HIDDEN,  71929 <at> debbugs.gnu.org
> Date: Fri, 05 Jul 2024 17:36:49 +0800
> 
> Eli Zaretskii <eliz@HIDDEN> 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.

Can you suggest a GDB setup for Sean to use in order to try to find
this unknown code which causes this?

Please note that this affects the release branch, and the changeset
which seems to have caused it was installed a couple of days before
the release branch was cut.  So if we cannot find and solve the
problem soon enough, I'd revert that changeset and solve the original
problem which it was supposed to solve on master, rather than leave
such a serious problem on the release branch.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 5 Jul 2024 09:37:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 05 05:37:37 2024
Received: from localhost ([127.0.0.1]:43611 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPfNp-0006Tq-Ey
	for submit <at> debbugs.gnu.org; Fri, 05 Jul 2024 05:37:37 -0400
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 <luangruo@HIDDEN>) id 1sPfNm-0006Tc-RV
 for 71929 <at> 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=SkgkjlBLzbKTnn3DlpNehYjJHqXhPQ4MzSmrsvlEogvtBUSN1OkPwh2pJWDXHHVdLm9PKnmLgaBa31fEHZusPvgV6htRS5uDy2WGVuwBKhyeZjVBMQCHLLmADaV9FPbSXyhGJ5HYs9iy/IKS0pebdoJQUDG7HoqDNHTpRq6LuJ6cKXaKpx2P/KvFqoYuaX/MDQ/Huyp3s+waHFdpBXkRYrurJN+16FHoty/EWlXvzpwQ/djHR89ac4V8R7+9XsHRnF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azj2gkTDRtXorh
 Qgbj5K5eTmAUKNSfC5tv5UvBMqeNScIYSy9OHZpvxQdC5IuDbkVXQhHV.6USngIwkebXlfZJ5uVk
 5rkEaWrlwqWerV2Ng4qXIzQC7yQjEq7LFg9MelJ82t9F_jOvIrDZGd9d5wK2kK4tS58UciZhaoYW
 TfFm1CS932cbYEeEaMLxF5ZIh682NJMfVNyfRsy74_D7i9GSO1XL_3ziD_.gh.bj8UUpjd5qFZRd
 CBWBWNjjysiXxZi6KrEP86OGLNii7euptfIJQ8TGBvqsJsVFiZu2SznLJRyDDS85wMQNUessjJGu
 RY1KmZw1OCnEYCd6XKbYHgy02lTmTn8T1AHRjB3lSjjhk4avChr4GC.qD4OT_27ygZ_K0JMmapEA
 9_v_KP2GxDDcp.GnXtwFQIZ8QPgFzqmv.us4OqL4h18HxgfhX2UIm1HA3x8OdSHm1UmEBkCoJ5zc
 yGyS22mUFvHwDioPvL2_h4Gk7KxHz9VswaHBrB4V0lCiL.XdsSjF9naOJlb1_yoWqpb175uBI15K
 VlHVVeMmziHOysAcO2BV7QNThTw1_wLT7_aBcg9kvHXkLAvmSWR2ICOAz3_r28TlT9raq61zMV4b
 jYozRer21efqph653UHn4dljnCXRIHGgPX3QHzg1jmv7dczqS7WB98Y5t9pZc1mMYiUZc8zEeVdn
 FWQMnnAnqHv6_4G9oWCQxmKXsU74DSgg6imWBKgtg99aEjx14wuKwgDmdYbYjMsYYQWHE82VELXM
 SUpOz7L9qRCqdAGcPrHTTGZgksCR9Tdh7qs4Bvf6ArDkZGgqf.EM-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: b688eeab-6a50-496c-8ccb-a9d341632805
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
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)
From: Po Lu <luangruo@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <86frso70i4.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 05 Jul
 2024 10:37:23 +0300")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
 <86frso70i4.fsf@HIDDEN>
Date: Fri, 05 Jul 2024 17:36:49 +0800
Message-ID: <87wmm02n9q.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22464
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 816
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 5 Jul 2024 07:52:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 05 03:52:53 2024
Received: from localhost ([127.0.0.1]:43531 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPdkT-0003eH-MT
	for submit <at> debbugs.gnu.org; Fri, 05 Jul 2024 03:52:53 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:49252)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sPdkR-0003dx-5r
 for 71929 <at> debbugs.gnu.org; Fri, 05 Jul 2024 03:52:52 -0400
DKIM-Signature: a=rsa-sha256;
 b=RRHSYWgRLvANcDEP9KppNy8ZZXr5R2YvxOAWjQmp+ruw4RjDoYPv/USiz2LTcI/MrFgAu2o9fuelPqmOLHRkTKkTILrvLz9WUoQmOy+5zFhXw4LLvCyPBN5vW3i1iduLK6kR4bmBJVRYBKMPiFPJw+E630A/CTvEB/l4+rJiHmjo7acNcQCDd3W208Iss7rlFq54TUhGLI053+oCRP9J4H00HgotNHFOui8yZvuqE3UhnGMacZzO/meY4HMhuKL20V4PyZLemGLmd31Gu8UdfjMewAoA/tD1fF7sjQN4SQV4eJZcRPKHn7mf69S7UoZuoGriWVpK48GejC9jNF4Hww==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=x0GtTOR/mdSgfBS2ZE0Hh4aC8RvdVO6/lxyULfiefoA=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=Ip5U4C8SUVDIWGYbpjR3zz5cZJXsSqaCmlh4Kvt/Ej6COIM4ip2w3ZiOQeecsFkHFsNhEqSOWsjZyyLPTQmvEzbPUTK/yiwfL44NuPGKCLrWpYO2Jr6XoRHYgscqrXL0g+7w+3WqmYRNnOfyRtDv8vJvpa0z81EGJX4/hNv+ZktW82pUu/CA7fB3P7jftqKtPT9Hb9jnM53sLWDhd2JRA7IoLMt7FhW7Oa015D1clbn+b8XOS9lOczgA7m9aL6whxjiY7k+PhZq1R9FnJArx/6qouSvUkhFjqIQ1xS2MyebDqGJe/B5cncVWZYndtQJkcMbeRjqaokeSWCMaP7YS2A==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=x0GtTOR/mdSgfBS2ZE0Hh4aC8RvdVO6/lxyULfiefoA=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -547797763; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Fri, 05 Jul 2024 07:52:40 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 26AF77F9EEC; Fri,  5 Jul 2024 15:52:38 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <87a5ix4a07.fsf@HIDDEN> (Po Lu's message of "Thu, 04 Jul 2024
 20:28:08 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87le2h4r64.fsf@HIDDEN>
 <87y16hy7ye.fsf@HIDDEN> <87h6d54p7r.fsf@HIDDEN>
 <87h6d5xyyz.fsf@HIDDEN> <87a5ix4a07.fsf@HIDDEN>
Date: Fri, 05 Jul 2024 15:52:38 +0800
Message-ID: <87cynsqnqx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On Thu 04 Jul 2024 at 08:28pm +08, Po Lu wrote:

> Thanks.  It may be of assistance if you were to run an Emacs configured
> `--enable-checking=yes,all' for a while and report whether any
> assertions fail.

Okay, rebuilding with that configuration option.

I tried removing my two custom functions from
window-size-change-functions.  This seems to mean that crashing is much
less frequent, but it still happens.

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 5 Jul 2024 07:37:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 05 03:37:35 2024
Received: from localhost ([127.0.0.1]:43479 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPdVf-0000Oq-0o
	for submit <at> debbugs.gnu.org; Fri, 05 Jul 2024 03:37:35 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42202)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sPdVd-0000Od-A9
 for 71929 <at> debbugs.gnu.org; Fri, 05 Jul 2024 03:37:33 -0400
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 <eliz@HIDDEN>)
 id 1sPdVV-0005JN-3f; Fri, 05 Jul 2024 03:37:25 -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=T/XO2u+nuh6+3exznJFMlzEKt4NtZpPTD0s/sfquYgI=; b=olKlrYOSlMhA
 CGpn/2DOqnn2PpQTb885KYkkdjCVUW+GPQoTQt5O14BerNEzl/oWvi69jGDMXEYlGxyiYATXlM3T7
 wCpSQDbx70gE9zuL5DjPalEMC2z/w1EFKWALKsjOZyNwjVEhOhmT4QFXNbiZc/QGJ6iJAgKDgHZIF
 VwQvYbZNfbKOL07PGHjue4geMHT8MiS+fe6hLVMP2U2X87iq252P0b7pztRXaOnJsxQlHuAIxvCJ0
 VyA3Q5FQTqEGK5/bQRVxETaRh0rKW6959j/dzTOCtAndgDyYtslr2SzeoEfhVRdJH/HURPHJcinLO
 B4bb26go++qtGOxwP2xuaw==;
Date: Fri, 05 Jul 2024 10:37:23 +0300
Message-Id: <86frso70i4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
In-Reply-To: <871q4849yc.fsf@HIDDEN> (message from Po Lu on Fri, 05 Jul
 2024 14:41:31 +0800)
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN> <871q4849yc.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Po Lu <luangruo@HIDDEN>
> Cc: Sean Whitton <spwhitton@HIDDEN>,  71929 <at> debbugs.gnu.org
> Date: Fri, 05 Jul 2024 14:41:31 +0800
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> From: Sean Whitton <spwhitton@HIDDEN>
> >> Cc: 71929 <at> 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?
> 
> There's only one caller of free_image_cache, free_frame_faces, which is
> only called once in a frame's existence.  Cache refcounts are also
> altered from gui_set_font, but this process never entails decrementing a
> refcount to zero, as the caches under consideration are always retained
> by one or more frames:
> 
>   iwidth = max (10, FRAME_COLUMN_WIDTH (f));
>   if (FRAME_IMAGE_CACHE (f)
>       && (iwidth != FRAME_IMAGE_CACHE (f)->scaling_col_width))
>     {
>       eassert (FRAME_IMAGE_CACHE (f)->refcount >= 1);
>       if (FRAME_IMAGE_CACHE (f)->refcount == 1)
> 	{
> 	  /* This frame is the only user of this image cache.  */
> 	  FRAME_IMAGE_CACHE (f)->scaling_col_width = iwidth;
> 	  /* Clean F's image cache of images whose values are derived
> 	     from the font width.  */
> 	  clear_image_cache (f, Qauto);
> 	}
>       else
> 	{
> 	  /* Release the current image cache, and reuse or allocate a
> 	     new image cache with IWIDTH.  */
> 	  FRAME_IMAGE_CACHE (f)->refcount--;
> 	  FRAME_IMAGE_CACHE (f) = share_image_cache (f);
> 	  FRAME_IMAGE_CACHE (f)->refcount++;
> 	}
>     }

How does this answer my question?

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?

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?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 5 Jul 2024 06:41:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 05 02:41:58 2024
Received: from localhost ([127.0.0.1]:43450 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPcdp-0007NL-L3
	for submit <at> debbugs.gnu.org; Fri, 05 Jul 2024 02:41:58 -0400
Received: from sonic315-22.consmr.mail.ne1.yahoo.com ([66.163.190.148]:42000)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sPcdn-0007N5-Gp
 for 71929 <at> debbugs.gnu.org; Fri, 05 Jul 2024 02:41:56 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720161705; bh=7dp+addgDSAN+JUBI68+t7DN4F4PBvBxvl5E1v3gE5w=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=Ym7WtINzRrTUifgEEPnRRp5GEaoqIr0ixR/YNPiyIH51FZrMHVogHN2tetO+JqGA8o6A41I+PuBFsnwTAOLJdmMJAqyL0kwx4xtLjzai1dqtsuxMeOnqWxashxrIVXO7rTQ5oqWTchzZMGwuwB+9KRPhKkUgxCr69RSlLL77+NTNhCgXkevPKiTgIh9HEFgUxeh2KBQl8nhbsAL9ptB9fJkza/jHOZpwfVxoMmrlptx9pUfoQ/z/LNFIb703RVWTSsh5Wqnnp3pX1A+uUzNjnsiRlXj2cGdDSjU6cwIyVXNT+8W+orTWYo30U27Od7tgdMqw9DvoR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hzhqatA_1Dy9hKKce7N
 1gIN5DSdpBDOzv8GDlE7NeH1QFfUw8yMt5siDXsrvvBs9FYHt54yb.zako4S0RN61wW1EubJgbKE
 b9rw.XtQIsbvNmaE1mOh6LfCLivnBM3MmcwtNOjSIDtOp0EsGiol2Dy92O2p91Ezd86wLjH9TTnG
 kChVSq6anoomCLXiB13zfVR.fJLQxZUHo.bftsI9sSjU1fJLFGv3YTg6xudPeF11Kpok_hP996Iy
 uqSpm.fxUQaBjXxwjbSYEuVTX7GZ6Qb9WQKh__1j4LAo3arPVcJCBkHoW.CluddabCFfVElqmxAc
 P4Y61JtDbZ0jxl9WqsLjSteen_xFX051XBCcY43w2sbkWIz76mq3n5_rc09AM1S5oaHUoKy9oL42
 yv3gEJntHMvx33pG52JpmFR4W_zbCG5orbAVdXYv.4GDiUjZx4A0Q8LB7Zivni1zq.cMO4FwEamZ
 MTx6KSydAeqQTyjxXmXLoXxaNUstpwlxxcI02lFD_7ttB37HQEhk7mTlPm5.sbwlxSUwhd6bCQpv
 Hg6e8H9RF674c.nV.28IB63W8IDXUxRVCwnxzBKWUkdIn4edF7Hm66Sj3gfI8qCk2AACoRCFpv7g
 aQQ2x574AryiExIg8lDCeA4wwi0tpIEagXsqDK5C2FeHIR0rbrkoq5Z8Kk7YMMwfvIihnJatRxh4
 C.K63rVbLJyonTnHAfLW3AO2Vqf2Ch0TwqwCg0qjFNrpsjyjMRWTXrQ--
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: baecd26f-3b3c-4291-b21b-c04d6c9068fb
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic315.consmr.mail.ne1.yahoo.com with HTTP; Fri, 5 Jul 2024 06:41:45 +0000
Received: by hermes--production-sg3-7b469d9f6-6hvhq (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 9762d0ad3c5a24a22c01a6b875e3fdc5; 
 Fri, 05 Jul 2024 06:41:38 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <86jzi073r8.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 05 Jul
 2024 09:27:07 +0300")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
 <86jzi073r8.fsf@HIDDEN>
Date: Fri, 05 Jul 2024 14:41:31 +0800
Message-ID: <871q4849yc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22464
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1877
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Sean Whitton <spwhitton@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Sean Whitton <spwhitton@HIDDEN>
>> Cc: 71929 <at> 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?

There's only one caller of free_image_cache, free_frame_faces, which is
only called once in a frame's existence.  Cache refcounts are also
altered from gui_set_font, but this process never entails decrementing a
refcount to zero, as the caches under consideration are always retained
by one or more frames:

  iwidth = max (10, FRAME_COLUMN_WIDTH (f));
  if (FRAME_IMAGE_CACHE (f)
      && (iwidth != FRAME_IMAGE_CACHE (f)->scaling_col_width))
    {
      eassert (FRAME_IMAGE_CACHE (f)->refcount >= 1);
      if (FRAME_IMAGE_CACHE (f)->refcount == 1)
	{
	  /* This frame is the only user of this image cache.  */
	  FRAME_IMAGE_CACHE (f)->scaling_col_width = iwidth;
	  /* Clean F's image cache of images whose values are derived
	     from the font width.  */
	  clear_image_cache (f, Qauto);
	}
      else
	{
	  /* Release the current image cache, and reuse or allocate a
	     new image cache with IWIDTH.  */
	  FRAME_IMAGE_CACHE (f)->refcount--;
	  FRAME_IMAGE_CACHE (f) = share_image_cache (f);
	  FRAME_IMAGE_CACHE (f)->refcount++;
	}
    }




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 5 Jul 2024 06:27:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 05 02:27:20 2024
Received: from localhost ([127.0.0.1]:43433 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPcPg-0006yd-8E
	for submit <at> debbugs.gnu.org; Fri, 05 Jul 2024 02:27:20 -0400
Received: from eggs.gnu.org ([209.51.188.92]:44456)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sPcPe-0006yR-MP
 for 71929 <at> debbugs.gnu.org; Fri, 05 Jul 2024 02:27:19 -0400
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 <eliz@HIDDEN>)
 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==;
Date: Fri, 05 Jul 2024 09:27:07 +0300
Message-Id: <86jzi073r8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87tth4ofvp.fsf@HIDDEN> (message from Sean
 Whitton on Fri, 05 Jul 2024 08:13:14 +0800)
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87tth4ofvp.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71929
Cc: luangruo@HIDDEN, 71929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Sean Whitton <spwhitton@HIDDEN>
> Cc: 71929 <at> 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?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 5 Jul 2024 00:13:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 04 20:13:30 2024
Received: from localhost ([127.0.0.1]:43286 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPWZu-0005Fy-Fw
	for submit <at> debbugs.gnu.org; Thu, 04 Jul 2024 20:13:30 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:57428)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sPWZs-0005Fj-NG
 for 71929 <at> debbugs.gnu.org; Thu, 04 Jul 2024 20:13:29 -0400
DKIM-Signature: a=rsa-sha256;
 b=WG6WlVxWNL2fn4jVmLz2cZfBB6WffPvfsB6n4cHukn54er+joxmkYgmgqHS5BJA4r2kVReAWP7tpSgIgwVs9uzJyIZIycmGVz/hVYsKNOaXzf0Qve9WfzcT93T8PzSYOCUFvTa7vNRyhBtIsolOixM9FVN47tkwPFKwlX6S8ie8XOh+qaS7tC+sZu5cM0tif7OWpqASCQrJOWwbX8e1/YC1Zdypg18MTu5p2AqaVHHMLyPzlqohLZWOuhNeCuavUIzneER0scSj/yATy8unvQ/phWajJyrpNXOtQZLlFHYDmVLQeZKtz9VfPcIl4NDfU3OvWPqAuW0LDyUBr2Q/qfQ==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=1yKSgJ7jF6ZuaeNx/BzCPKubUDAfGXws6erbx4f2f1s=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=b+p4MlXfB1hDNeQi4R9uCrtVN1+FThGzuEOvOphORoQ145ZF2MEtqaOQ2xGvjLE70mvjZUjL93I9QaUJlpw/OEV3o3f40DyCp1orRRy1r+U56K+hzqHm96tPHPnTVpbo9NPs9yQMvc5QkWWkDKhFok1DyPylGgOJc+Ifu9Ks2GkkzQSSArwf86KOpGqNVpVyI1g6Ehyh8mHsmjEok4Dr00aqoHpSOt+nTPjOvEcmIg+LcfyVjyWp8Tno70Z2kLbAJ7SD1awLQjgt2rLS27MxPGXCpapfghxHJqYiaVt3qeimW4l/+eH859IcCLm0fGXZ+09yXZc6ObsqAZ0bLfWMWg==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=1yKSgJ7jF6ZuaeNx/BzCPKubUDAfGXws6erbx4f2f1s=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 1857664931; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Fri, 05 Jul 2024 00:13:19 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 509477F9E4C; Fri,  5 Jul 2024 08:13:14 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Po Lu <luangruo@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <86ikxlae3p.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 04 Jul
 2024 09:03:06 +0300")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN>
Date: Fri, 05 Jul 2024 08:13:14 +0800
Message-ID: <87tth4ofvp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

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

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 4 Jul 2024 12:51:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 04 08:51:21 2024
Received: from localhost ([127.0.0.1]:41749 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPLvk-0008WI-O7
	for submit <at> debbugs.gnu.org; Thu, 04 Jul 2024 08:51:21 -0400
Received: from eggs.gnu.org ([209.51.188.92]:41134)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sPLvb-0008Vv-AU
 for 71929 <at> debbugs.gnu.org; Thu, 04 Jul 2024 08:51:19 -0400
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 <eliz@HIDDEN>)
 id 1sPLtK-0006OD-7e; Thu, 04 Jul 2024 08:48:51 -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=IkAyE3ElI135R3BLwhNpv/6C8kp8w/3EZFGIg6eW/fU=; b=kyzvmK9vW9Sx
 QeEkiZkk1ZIHovX6HgqnkGtI7WWR+FC2TjkPIWOTFChmoy709Hki1z3wgIwios9i5/Cd9QFQqzM5f
 as6iv6xqY1ncFU4kcVd1XP1KMOdopOz0Yb4j9fwPw5+0tig1yCdwY0lOtasRsedS4Vzegsu3YhQop
 gsGWnmuIeNWet47hM4LS1zttw/c9PmAcR8olWF6MqCJU4YyKF6nHK7B97k9YAWzUPNoylm58kIg1a
 Qnm85ElbBZUiOXSJ1u7VN+xk7qz+jzNc9ts1MGzx6KX7GYWiY//DohHYLm1JVwrgRupesUzQ2GOiN
 5wOCagK+n4d17fYezmbZ3Q==;
Date: Thu, 04 Jul 2024 15:48:24 +0300
Message-Id: <86wmm18grr.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87cyntxyw3.fsf@HIDDEN> (message from Sean
 Whitton on Thu, 04 Jul 2024 17:57:48 +0800)
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87le2h4r64.fsf@HIDDEN>
 <87y16hy7ye.fsf@HIDDEN> <865xtla9lr.fsf@HIDDEN>
 <87cyntxyw3.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71929
Cc: luangruo@HIDDEN, 71929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Sean Whitton <spwhitton@HIDDEN>
> Cc: luangruo@HIDDEN,  71929 <at> debbugs.gnu.org
> Date: Thu, 04 Jul 2024 17:57:48 +0800
> 
> > Do you mean GDB keeps crashing?
> >
> > If you run GDB from Emacs,
> 
> The latter.
> 
> > then try running it from the shell prompt instead.
> 
> I have running Emacs-under-GDB-under-Emacs all scripted and integrated
> into my desktop environment, but yes, if I have to, I can figure out
> running it from a terminal instead.

If Emacs keeps crashing, then running GDB from such an Emacs will
endanger your chances of collecting useful information.  If you have
older and more stable Emacs installed, try running GDB from that older
version.  Or from the shell prompt.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 4 Jul 2024 12:28:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 04 08:28:44 2024
Received: from localhost ([127.0.0.1]:41735 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPLZn-0007uQ-US
	for submit <at> debbugs.gnu.org; Thu, 04 Jul 2024 08:28:43 -0400
Received: from sonic309-20.consmr.mail.ne1.yahoo.com ([66.163.184.146]:33943)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sPLZi-0007u5-Ry
 for 71929 <at> debbugs.gnu.org; Thu, 04 Jul 2024 08:28:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720096105; bh=0bFxcL6Lm0K0qTos5yN52CqWMF9+n/1WVwl1YbKhTXA=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=ujdewHBy1Fm7IBiZwsFYssu/Ie80zrAQ1SrZeUT8UcopDgTLjuH3LiwVs2Ah9k5gaGhn63XffzwGsvMBoknxtNalJoMN5CSeefAnWbAqjxSZ1f7tfakPiJKkzj+T+SBT4EIa+f0j25Fp6Jqcmalwti0reZ4xhOwad04lo/bc7L5E11FPbn9Be8bqkmnPcMLydVBJrta4XM4pt78mbejspyZJ5xhkyvzkELN5zvYSufZ6+bzE690qGFUzJnxRseQHKVf6gXolxerIzykj7SSWWA+kZQ9UM6jhiEMyB5kZMOm28Ae/hM57SiovsptQgpKbug4YN5McxrIdl1KeG1by+Q==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720096105; bh=8XtcnnNzlWhg6McxCkvrokWUsM7ORVqWTo7Lpgn/v5Q=;
 h=X-Sonic-MF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_QD.5grBokn0Bvffo07Kwbx
 HVMUC8r96dQ0MbjMTO3jvTNcKGC8fKWH7wYf5ATM0Qd_91eZofKU2bKsr5U88gJeK7H9TSJr1IUy
 Y6snkN6EqDQoVtDd85H8Hp5eTzmhl3yMXR1Bz8Bhdcmm6dF.5Z9SWPT7uaR5BF87N_a7nG1bSbMV
 fVCQ8gGX1GNuWwVFymW.e6txk1cQGR89UusACi3tMAlArlHjQoJzCxjR2vLxhElq3wNKPM46jKBc
 MOGyoT1DMPPBs87GxWkKCS7MsRi17pqUCm5_SBirfpgUte24aDKxsb9tmWeKl.EHQ1q68bwGshWu
 .YzEBryxZrCNnOrd.CtS7ZauTV38TbbN.VjX169Hb6EPJSjpZV4vKBQ4pZP_ICenug.OnDPVv.J4
 7E2DGZr4oQ3Q7XIkzW9xdOsA.BVnYHya4aG8s9k888Aujv0KdoZ0ytfIQbkQPaO_i_ikvg2f0I9H
 VGPMZL56B4lmpojCTszh8tTpJFuJFVj8XMYhZMBxxO2U1FmgZ.HhrolKsNR_e_1CriXn35IKe4gP
 rDRDOH64E1O.0KajZxpDzosQwcWbcAPyLYxs6TPpcldRvd1jWW_M-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 88cf541f-261d-450b-8d18-b37944ff21f4
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic309.consmr.mail.ne1.yahoo.com with HTTP; Thu, 4 Jul 2024 12:28:25 +0000
Received: by hermes--production-sg3-7b469d9f6-w9xm6 (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID ec58ba1f5408e63f4aa73b96c045548f; 
 Thu, 04 Jul 2024 12:28:18 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <87h6d5xyyz.fsf@HIDDEN> (Sean Whitton's message
 of "Thu, 04 Jul 2024 17:56:04 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87le2h4r64.fsf@HIDDEN>
 <87y16hy7ye.fsf@HIDDEN> <87h6d54p7r.fsf@HIDDEN>
 <87h6d5xyyz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
Date: Thu, 04 Jul 2024 20:28:08 +0800
Message-ID: <87a5ix4a07.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22464
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 5353
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Sean Whitton <spwhitton@HIDDEN> writes:

> Hello,
>
> On Thu 04 Jul 2024 at 02:59pm +08, Po Lu wrote:
>
>> Sean Whitton <spwhitton@HIDDEN> writes:
>>
>>> I don't know, but I will see if I can get information about these next
>>> time I observe the crash.
>>>
>>> I struggle to keep the Emacs instance running gdb around very long
>>> because it keeps crashing too :)
>>
>> What packages have you installed, and do they frequently create new
>> frames or adjust the font size of existing frames?
>
> The packages I have installed don't do that, but I have tonnes of custom
> code in my init.el to create new frames and adjust font sizes.
> I normally have >=three frames open for each of two instances of Emacs.
>
> I have two entries in window-size-change-functions:
>
> (defun spw/maybe-scale-basic-faces (frame)
>   "Entry for `window-size-change-functions' to increase font sizes,
> relative to those set by the call to `custom-theme-set-faces' above, for
> frames on wide monitors, except where doing so would itself prevent fitting
> two 80-column windows side-by-side in the frame."
>   (when (display-graphic-p frame)
>    (let ((wide-monitor-p (> (cadddr (assoc 'geometry
> 					   (frame-monitor-attributes frame)))
> 			    1635)))
>      (when (or wide-monitor-p
> 	       ;; Check whether a previous call made any changes we might need
> 	       ;; to undo if FRAME has moved to a smaller display.
> 	       (not (eq scroll-bar-mode
> 			(frame-parameter frame 'vertical-scroll-bars)))
> 	       (= (face-attribute 'default :height frame) 120)
> 	       (= (face-attribute 'variable-pitch :height frame) 151))
>        (let* (;; Above 1635 you can scale up and still fit two 80-col windows.
> 	      ;; Below 1315 you can't fit the two windows even w/o scaling up.
> 	      (medium-p (> 1635 (frame-pixel-width frame) 1315))
> 	      (scale-up-p (and wide-monitor-p (not medium-p))))
> 	 (modify-frame-parameters
> 	  frame
> 	  `(;; Can fit two 80-col windows only if we disable scroll bars.
> 	    (vertical-scroll-bars . ,(and (not (and wide-monitor-p medium-p))
> 					  scroll-bar-mode))))
> 	 ;; Check Emacs found the relevant font on this window system, else
> 	 ;; our height values might be invalid.
> 	 (when (find-font (font-spec :foundry "SRC" :family "Hack") frame)
> 	   (set-face-attribute 'default frame
> 			       :height (if scale-up-p 120 105)))
> 	 (when (find-font (font-spec :foundry "bitstream"
> 				     :family "Bitstream Charter")
> 			  frame)
> 	   (set-face-attribute 'variable-pitch frame
> 			       :height (if scale-up-p 151 120))))))))
>
>
> and
>
> (defun spw/maybe-toggle-split-after-resize (frame)
>   (when (and (framep frame)
> 	     (frame-size-changed-p frame)
> 	     (= (count-windows nil frame) 2))
>     (with-selected-frame frame
>       (cl-labels ((toggleable-window-p (window)
> 		    (with-current-buffer (window-buffer window)
> 		      (not (derived-mode-p 'gnus-summary-mode))))
> 		  (window-info (window)
> 		    (and (toggleable-window-p window)
> 			 (cons (window-buffer window)
> 			       (cons (window-prev-buffers window)
> 				     (window-next-buffers window)))))
> 		  (set-window-info (window info)
> 		    (set-window-buffer window (car info))
> 		    (set-window-prev-buffers window (cadr info))
> 		    (set-window-next-buffers window (cddr info))))
> 	(when-let* ((this-info (window-info (selected-window)))
> 		    (next-info (window-info (next-window)))
> 		    (width (frame-width))
> 		    (this-edges (window-edges (selected-window)))
> 		    (next-edges (window-edges (next-window))))
> 	  (when (or (and (< width split-width-threshold)
> 			 (/= (car this-edges) (car next-edges)))
> 		    (and (>= width split-width-threshold)
> 			 (/= (cadr this-edges) (cadr next-edges))))
> 	    ;; Ensure we start with a fresh window.
> 	    (split-window)
> 	    (other-window 1)
> 	    (delete-other-windows)
>
> 	    (if (and (<= (car this-edges) (car next-edges))
> 		     (<= (cadr this-edges) (cadr next-edges)))
> 		;; Want to use `pop-to-buffer' for the second window s.t. my
> 		;; rule for REPLs in `display-buffer-alist' takes effect.
> 		(progn (set-window-info (selected-window) this-info)
> 		       (save-selected-window
> 			 (pop-to-buffer (car next-info))
> 			 (set-window-info (selected-window) next-info)))
> 	      (set-window-info (selected-window) next-info)
> 	      (pop-to-buffer (car this-info))
> 	      (set-window-info (selected-window) this-info))))))))
>
> For completeness, though I doubt it is relevant, packages (installed
> from Debian) are:
>
> elpa-bongo
> elpa-dash
> elpa-debian-el
> elpa-dpkg-dev-el
> elpa-esxml
> elpa-ggtags
> elpa-git-annex
> elpa-git-commit
> elpa-git-modes
> elpa-gitattributes-mode
> elpa-gitconfig-mode
> elpa-gitignore-mode
> elpa-haskell-tab-indent
> elpa-htmlize
> elpa-ledger
> elpa-magit
> elpa-magit-section
> elpa-mailscripts
> elpa-markdown-mode
> elpa-message-templ
> elpa-notmuch
> elpa-nov
> elpa-org
> elpa-org-contrib
> elpa-org-d20
> elpa-orgalist
> elpa-paredit
> elpa-pod-mode
> elpa-rainbow-mode
> elpa-s
> elpa-seq
> elpa-taxy
> elpa-volume
> elpa-with-editor
> elpa-ws-butler
> elpa-yasnippet
> elpa-yasnippet-snippets

Thanks.  It may be of assistance if you were to run an Emacs configured
`--enable-checking=yes,all' for a while and report whether any
assertions fail.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 4 Jul 2024 09:58:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 04 05:58:09 2024
Received: from localhost ([127.0.0.1]:41529 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPJE8-0000eE-E1
	for submit <at> debbugs.gnu.org; Thu, 04 Jul 2024 05:58:08 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:38322)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sPJDz-0000da-FH
 for 71929 <at> debbugs.gnu.org; Thu, 04 Jul 2024 05:58:07 -0400
DKIM-Signature: a=rsa-sha256;
 b=idQ4iMunl/pNDnveq4kd0/vYBkae01ZREfELhx7GYonoxzPmoXtnWUfc7J+fiivyuiYNKgGE8hwNBvw3Cj+HOE5JV3EuYlmELm5koKpCGdOLZYMb6LvwnQ8ZiKHTikRtG3kXObTDvq0upEzvRZbkqk1jrsG1G6H9zxweIlf14aaVRlnH8j//Q9ylcDTPApnQSrK187xTsw1w3ibSzYKdz6CdwE/oc2Wbl7fEFN6qOE3/+8QnHxcaoTvKsW7M21Q9chcON9i5f7c8mfqu9xVh2FfiEMHRIE0NDvX57CYfFuXS/s6OKfZhvfMlYzwJAIWfeYBOV+0JbXGuYCAeIet5JQ==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=Ea7wnpq/KhmexQYEEixIT4KYPTsa6cs5ZtmMaixWCmg=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=beTkfnV8tCjnNToDoyN+5xA8uuitLtw3y4vlx2KYrgXXsjcIBOOS2HTxQU1hcXaXwKro2n4t8F9pcJlafPZvIAtyKbRAVGXHH9FAi/kYtlSZktFgAsiBhCrdbFO4m43kPEYXOcdbvYCg3kkSjo5tACXoGr3pWswgHJ3+T4aZFF+z4FxeJCAkZpyvMxESn4mnbWu/S+9NapXmVFpg4qXIN144pH9g03R98GhCnPJt0PIk+Ogy5MCcEHMcHZhHvMYBxozO8+dj2DXej6sKg54KxTDSV6ksFcclGu9WEFhAW7Mi8ohXrMlqazryqPouQZ84rE4bebMD1dmfmMea5OUPTg==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=Ea7wnpq/KhmexQYEEixIT4KYPTsa6cs5ZtmMaixWCmg=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -820066935; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Thu, 04 Jul 2024 09:57:50 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 12DFF7F3BCB; Thu,  4 Jul 2024 17:57:48 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <865xtla9lr.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 04 Jul
 2024 10:40:16 +0300")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87le2h4r64.fsf@HIDDEN>
 <87y16hy7ye.fsf@HIDDEN> <865xtla9lr.fsf@HIDDEN>
Date: Thu, 04 Jul 2024 17:57:48 +0800
Message-ID: <87cyntxyw3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: luangruo@HIDDEN, 71929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On Thu 04 Jul 2024 at 10:40am +03, Eli Zaretskii wrote:

>> From: Sean Whitton <spwhitton@HIDDEN>
>> Cc: 71929 <at> debbugs.gnu.org
>> Date: Thu, 04 Jul 2024 14:42:01 +0800
>>
>> Hello,
>>
>> On Thu 04 Jul 2024 at 02:17pm +08, Po Lu wrote:
>>
>> >>> What is the value of c->images?  IOW, why did this line segfault?
>> >>
>> >> Also, what is the value of c->refcount?
>> >
>> > Please answer these questions, yes.
>>
>> I don't know, but I will see if I can get information about these next
>> time I observe the crash.
>>
>> I struggle to keep the Emacs instance running gdb around very long
>> because it keeps crashing too :)
>
> Do you mean GDB keeps crashing?
>
> If you run GDB from Emacs,

The latter.

> then try running it from the shell prompt instead.

I have running Emacs-under-GDB-under-Emacs all scripted and integrated
into my desktop environment, but yes, if I have to, I can figure out
running it from a terminal instead.

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 4 Jul 2024 09:56:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 04 05:56:44 2024
Received: from localhost ([127.0.0.1]:41523 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPJCk-0000bt-UA
	for submit <at> debbugs.gnu.org; Thu, 04 Jul 2024 05:56:44 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:57690)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sPJCT-0000bL-V9
 for 71929 <at> debbugs.gnu.org; Thu, 04 Jul 2024 05:56:41 -0400
DKIM-Signature: a=rsa-sha256;
 b=PPOD7EH7jTtMd2vwDO9c0gyU8BC0ntXYbIIEaRLV6+PV+mTahmdNn9//LUMLsIiSVp7MvxsYdkhLaDjC1B7fGY04NdbXXpJNfbq8+c+dJCc0esKRkheOjObS2wMKXygskHsI4XQvQLI+FmZq/a0gjebzWQa7/n4kgy0EqRVeVDtGkNNkVM8Ase6m/VfVFMH90auym9ZaKxCXusDeIoe7h3ITS94XK6P9uSO66nJ1MIRhamyaUwum+7IiRVxGd+04egtKXye7xdpgsw/d0FlmYXOyEyUiFWREKd1XB5raQiIHSDuV6dFK3YLqYaSh/PZf4LudXG+AXHVkAbAYY9DuKw==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=F+9tHG1zSqT53nD0TfPWh/o3e5SkcKKFBlNsVNR7myA=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=e56VdFjZ0c9Setlm0rpHWBiSjZ3NTtpLFwyXSMhhTLT3Ln1IX2kBZop1/N228Stc16TUyS+Aps6qXorF9ITxF7zHHPmreonBJGvQ37G8x1rYCC/NCOv9B14RVYKj84Dq81UzPLgwU2mYzckZWD471D/96w7PPHj/xKr1XgxbfEwuZ6YGpg+MAnA0qe4UeRyLlfEjfVg3UTTvcZHo+XDVHuRf/jX1EjoYZjnl6eZwDdI8xJCzURQSpYr39uBKwJuNPx2Gw6eppTfAUoeQduTWlE11e0Etb31VzvsHwCyRvM0SwGZasSN07uYjOThxEmC+TUe5eciyG0Ph+7jIYK6Ddg==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=F+9tHG1zSqT53nD0TfPWh/o3e5SkcKKFBlNsVNR7myA=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 766074110; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Thu, 04 Jul 2024 09:56:07 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 25D837F3BCB; Thu,  4 Jul 2024 17:56:04 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Po Lu <luangruo@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <87h6d54p7r.fsf@HIDDEN> (Po Lu's message of "Thu, 04 Jul 2024
 14:59:36 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87le2h4r64.fsf@HIDDEN>
 <87y16hy7ye.fsf@HIDDEN> <87h6d54p7r.fsf@HIDDEN>
Date: Thu, 04 Jul 2024 17:56:04 +0800
Message-ID: <87h6d5xyyz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On Thu 04 Jul 2024 at 02:59pm +08, Po Lu wrote:

> Sean Whitton <spwhitton@HIDDEN> writes:
>
>> I don't know, but I will see if I can get information about these next
>> time I observe the crash.
>>
>> I struggle to keep the Emacs instance running gdb around very long
>> because it keeps crashing too :)
>
> What packages have you installed, and do they frequently create new
> frames or adjust the font size of existing frames?

The packages I have installed don't do that, but I have tonnes of custom
code in my init.el to create new frames and adjust font sizes.
I normally have >=three frames open for each of two instances of Emacs.

I have two entries in window-size-change-functions:

--8<---------------cut here---------------start------------->8---
(defun spw/maybe-scale-basic-faces (frame)
  "Entry for `window-size-change-functions' to increase font sizes,
relative to those set by the call to `custom-theme-set-faces' above, for
frames on wide monitors, except where doing so would itself prevent fitting
two 80-column windows side-by-side in the frame."
  (when (display-graphic-p frame)
   (let ((wide-monitor-p (> (cadddr (assoc 'geometry
					   (frame-monitor-attributes frame)))
			    1635)))
     (when (or wide-monitor-p
	       ;; Check whether a previous call made any changes we might need
	       ;; to undo if FRAME has moved to a smaller display.
	       (not (eq scroll-bar-mode
			(frame-parameter frame 'vertical-scroll-bars)))
	       (= (face-attribute 'default :height frame) 120)
	       (= (face-attribute 'variable-pitch :height frame) 151))
       (let* (;; Above 1635 you can scale up and still fit two 80-col windows.
	      ;; Below 1315 you can't fit the two windows even w/o scaling up.
	      (medium-p (> 1635 (frame-pixel-width frame) 1315))
	      (scale-up-p (and wide-monitor-p (not medium-p))))
	 (modify-frame-parameters
	  frame
	  `(;; Can fit two 80-col windows only if we disable scroll bars.
	    (vertical-scroll-bars . ,(and (not (and wide-monitor-p medium-p))
					  scroll-bar-mode))))
	 ;; Check Emacs found the relevant font on this window system, else
	 ;; our height values might be invalid.
	 (when (find-font (font-spec :foundry "SRC" :family "Hack") frame)
	   (set-face-attribute 'default frame
			       :height (if scale-up-p 120 105)))
	 (when (find-font (font-spec :foundry "bitstream"
				     :family "Bitstream Charter")
			  frame)
	   (set-face-attribute 'variable-pitch frame
			       :height (if scale-up-p 151 120))))))))
--8<---------------cut here---------------end--------------->8---

and

--8<---------------cut here---------------start------------->8---
(defun spw/maybe-toggle-split-after-resize (frame)
  (when (and (framep frame)
	     (frame-size-changed-p frame)
	     (= (count-windows nil frame) 2))
    (with-selected-frame frame
      (cl-labels ((toggleable-window-p (window)
		    (with-current-buffer (window-buffer window)
		      (not (derived-mode-p 'gnus-summary-mode))))
		  (window-info (window)
		    (and (toggleable-window-p window)
			 (cons (window-buffer window)
			       (cons (window-prev-buffers window)
				     (window-next-buffers window)))))
		  (set-window-info (window info)
		    (set-window-buffer window (car info))
		    (set-window-prev-buffers window (cadr info))
		    (set-window-next-buffers window (cddr info))))
	(when-let* ((this-info (window-info (selected-window)))
		    (next-info (window-info (next-window)))
		    (width (frame-width))
		    (this-edges (window-edges (selected-window)))
		    (next-edges (window-edges (next-window))))
	  (when (or (and (< width split-width-threshold)
			 (/= (car this-edges) (car next-edges)))
		    (and (>= width split-width-threshold)
			 (/= (cadr this-edges) (cadr next-edges))))
	    ;; Ensure we start with a fresh window.
	    (split-window)
	    (other-window 1)
	    (delete-other-windows)

	    (if (and (<= (car this-edges) (car next-edges))
		     (<= (cadr this-edges) (cadr next-edges)))
		;; Want to use `pop-to-buffer' for the second window s.t. my
		;; rule for REPLs in `display-buffer-alist' takes effect.
		(progn (set-window-info (selected-window) this-info)
		       (save-selected-window
			 (pop-to-buffer (car next-info))
			 (set-window-info (selected-window) next-info)))
	      (set-window-info (selected-window) next-info)
	      (pop-to-buffer (car this-info))
	      (set-window-info (selected-window) this-info))))))))
--8<---------------cut here---------------end--------------->8---

For completeness, though I doubt it is relevant, packages (installed
from Debian) are:

elpa-bongo
elpa-dash
elpa-debian-el
elpa-dpkg-dev-el
elpa-esxml
elpa-ggtags
elpa-git-annex
elpa-git-commit
elpa-git-modes
elpa-gitattributes-mode
elpa-gitconfig-mode
elpa-gitignore-mode
elpa-haskell-tab-indent
elpa-htmlize
elpa-ledger
elpa-magit
elpa-magit-section
elpa-mailscripts
elpa-markdown-mode
elpa-message-templ
elpa-notmuch
elpa-nov
elpa-org
elpa-org-contrib
elpa-org-d20
elpa-orgalist
elpa-paredit
elpa-pod-mode
elpa-rainbow-mode
elpa-s
elpa-seq
elpa-taxy
elpa-volume
elpa-with-editor
elpa-ws-butler
elpa-yasnippet
elpa-yasnippet-snippets

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 4 Jul 2024 07:40:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 04 03:40:29 2024
Received: from localhost ([127.0.0.1]:41381 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPH4v-0005YV-4v
	for submit <at> debbugs.gnu.org; Thu, 04 Jul 2024 03:40:29 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53258)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sPH4s-0005YI-8p
 for 71929 <at> debbugs.gnu.org; Thu, 04 Jul 2024 03:40:27 -0400
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 <eliz@HIDDEN>)
 id 1sPH4k-0002qN-0t; Thu, 04 Jul 2024 03:40:18 -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=YsAuEx665b3sp4v7YVBjifUJrDNtuNiKaSErnltgE0Q=; b=VsWA4MBXXpLa
 yDfuE58RqZmv+OJIG7gQ31joyoB+7LCa5/6TMC4Wt7bew1PbNZDBRDWYHeOY/Z8bUmkEW9HDIPhCo
 Uwd6+tmZBnEZ57EiTV+PJUGOX4hVNa3u4jOmJomxx7dBFVz2wWMMWZTT1NAvkAJojYLoRlZdIp7Pu
 /UHZ4N1AWgZZpWcDEW4K94DGeqLwSEWjGTh5N+yRxaDYy3wqqR4LnDtF8r8EeFit4pBPTKEvVhR/p
 WYWN6yRDnhnFxEl8EiCMVXZOHqUgOuyE62CqKhg823Vh+xNNG4/NS/teg7xlKqJh0KwdIIMnJdI3T
 /Vl0vBCDGWQShAsz1b5TAw==;
Date: Thu, 04 Jul 2024 10:40:16 +0300
Message-Id: <865xtla9lr.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87y16hy7ye.fsf@HIDDEN> (message from Sean
 Whitton on Thu, 04 Jul 2024 14:42:01 +0800)
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87le2h4r64.fsf@HIDDEN>
 <87y16hy7ye.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71929
Cc: luangruo@HIDDEN, 71929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Sean Whitton <spwhitton@HIDDEN>
> Cc: 71929 <at> debbugs.gnu.org
> Date: Thu, 04 Jul 2024 14:42:01 +0800
> 
> Hello,
> 
> On Thu 04 Jul 2024 at 02:17pm +08, Po Lu wrote:
> 
> >>> What is the value of c->images?  IOW, why did this line segfault?
> >>
> >> Also, what is the value of c->refcount?
> >
> > Please answer these questions, yes.
> 
> I don't know, but I will see if I can get information about these next
> time I observe the crash.
> 
> I struggle to keep the Emacs instance running gdb around very long
> because it keeps crashing too :)

Do you mean GDB keeps crashing?

If you run GDB from Emacs, then try running it from the shell prompt
instead.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 4 Jul 2024 07:00:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 04 03:00:02 2024
Received: from localhost ([127.0.0.1]:41326 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPGRl-0004SB-U3
	for submit <at> debbugs.gnu.org; Thu, 04 Jul 2024 03:00:02 -0400
Received: from sonic310-23.consmr.mail.ne1.yahoo.com ([66.163.186.204]:36846)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sPGRi-0004RX-PP
 for 71929 <at> debbugs.gnu.org; Thu, 04 Jul 2024 02:59:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720076390; bh=XOKi/HM+UFHQfp8fOtKTGETBYSSmkSseHCjtaEWTfrg=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=hV7vfYkCW/JH3kO/TH7DngZvMzjuA5kdibHBPWWFBoYo6S9RYSkmY4EZ5QuAN3JdAkyCIQuR52YH3LW4tx3/r1p2klY9uMcwr2kNfdpI2oCQdGBkr8GjUvJJDFuH4m0DcT1eKAyTaYIH2RVyDxlDyhl3/es0KE56nzwUhVV7dWkPUdDcWUPGoTF3YTGAEBIGmx+fkpooX4eiLaNqPv2A+Rhks27vPU21v/U6w4Z65HYVAFQlgZs61w4+qU0zqg9LiOZ2DYeGklhMEgFkrZmEB1tqb3Ap0RKe+Ru7qFsbOB4j5JL4E/dodayh5v8res8+/IYPRLorO5i8Tl8+0PHwEw==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720076390; bh=2jFM1HeWHgx+ENs0g7wvy0Xxz7rqKFFPdQiRPX2vIJP=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject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9TChxRPIkEWIB9MN3wGv1Cu75bYAXjZggecZmRP.WU1rW2A4wL.AZYBI.xaSp
 WhG6io2IthQ.E8PVEJtlU5xRmDsNFgYz33A2LJGdEEyxjMmm2TjA0uY2bIdnKvItEvhH_goZiEnT
 jTIPp3egGgVSXeYHVKNSOFoNOyjnrbbG._QbFe_cLWN_kKi1QvvT1qk6V8nPKqBWHQwHzswS4zmY
 sqj.O.8.sFLroub2ik7.3DPnDcKakHHvM5Qvu5CsEzE3GcJAD_8qED6HdhEpH3vC0IUHIkZLoPnn
 w1rrprWcjrkHe5YwYsZvA_qqa86lyg7ReMtKno4pSma.MLZ2wc3Wm2WDDVm2.Elc0azT_kFxxmPC
 RukpHDSB9qC33xrmAVpbpk6Ct3BO9sLDyAFEjN.gYjUn_g9t5MmfLX8bTHjvItDn8HFiQRzPXtaw
 b2ZAF1UYx9g56Vxufx81xGBHPFKSA88bGROq5jpOk8sEJYrRomXCTgILZ95Wnx.MpwdXM2LqFfVa
 7JekswvLpmN_Q1noyvzXma.lJFT_s2l5AYM7k_DVLrQ0cHbHWT9k-
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: a8c203bb-0993-4858-ac41-c65557c8d075
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic310.consmr.mail.ne1.yahoo.com with HTTP; Thu, 4 Jul 2024 06:59:50 +0000
Received: by hermes--production-sg3-7b469d9f6-dqpkp (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 08b64391da46d497e2501e2d336ecdd5; 
 Thu, 04 Jul 2024 06:59:44 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <87y16hy7ye.fsf@HIDDEN> (Sean Whitton's message
 of "Thu, 04 Jul 2024 14:42:01 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87le2h4r64.fsf@HIDDEN>
 <87y16hy7ye.fsf@HIDDEN>
Date: Thu, 04 Jul 2024 14:59:36 +0800
Message-ID: <87h6d54p7r.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22464
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 376
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Sean Whitton <spwhitton@HIDDEN> writes:

> I don't know, but I will see if I can get information about these next
> time I observe the crash.
>
> I struggle to keep the Emacs instance running gdb around very long
> because it keeps crashing too :)

What packages have you installed, and do they frequently create new
frames or adjust the font size of existing frames?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 4 Jul 2024 06:42:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 04 02:42:18 2024
Received: from localhost ([127.0.0.1]:41308 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPGAc-0003zy-2p
	for submit <at> debbugs.gnu.org; Thu, 04 Jul 2024 02:42:18 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:55460)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sPGAa-0003zf-9H
 for 71929 <at> debbugs.gnu.org; Thu, 04 Jul 2024 02:42:17 -0400
DKIM-Signature: a=rsa-sha256;
 b=QIm5oM0Yfo0Vp006Zrn/yFJ3Mjqvo+DDTutUxGbEfsQSHsrSPLFHaj365ZyZmGMBVtEOYFxmGAsYKGMquc8s+XKYDpx9JFoJxF26/FVvWu4reeRpMqw8n06O0H1m/0QkBfRb1EztItP2dFGpqgNJlveoBaSdirAcSyGIoN7LriYQ++GBLRgkVI6Vj71i+fmgxs2mcveYrW1sH1tlkwLbXw8SkV6dhUAFlZVFLqLhII2IJD2ahLNE1CpIqnMsjd3VAETxIhtY2PjPXvi03y1tPY4e3Gvbl7DSc3Qkg7ePfCc2Ysf56JaX4+t8/EvObGq4XFkChPHktjEBUc0zejKcpw==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=KGnhdD1hegz89B8PGqYoX8up0+7ArChILm5TZeAfmqQ=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=hJ/KoirhvtWtpnUPA31Jg9wqIZHygqcD9HeqBIQ2bJZk3Tw4R6FLWEzfTNVpXOEjSYy+7sbHvlS1rv/9tlQa4tuvoq9wV9Sbdz16vxDa1sm0OsTI1xuE4yiQDscIVDza3zif+p6/XPwe/lmnBp4QVsLl5781v7Ggxr86k6+rzKDS2Jcxfpco+HXvcyFDyo/bd/MuQ52W2k8tbDDaJpgkH/h3XEVO7t+bxT22EPyQsfFvxLTTXW07BUKYM/Sl+qrhqmwFjdmxdA4I34r3a/UdE+Tn4QkVh2fHTNotkHmql0OH9uPeI1Kxe0MlwC2CrK2QNrqFbJKdJCfzGtF70R/dCg==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=KGnhdD1hegz89B8PGqYoX8up0+7ArChILm5TZeAfmqQ=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -2120608506; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Thu, 04 Jul 2024 06:42:05 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 32B517F9CA6; Thu,  4 Jul 2024 14:42:01 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Po Lu <luangruo@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <87le2h4r64.fsf@HIDDEN> (Po Lu's message of "Thu, 04 Jul 2024
 14:17:23 +0800")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN> <87le2h4r64.fsf@HIDDEN>
Date: Thu, 04 Jul 2024 14:42:01 +0800
Message-ID: <87y16hy7ye.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On Thu 04 Jul 2024 at 02:17pm +08, Po Lu wrote:

>>> What is the value of c->images?  IOW, why did this line segfault?
>>
>> Also, what is the value of c->refcount?
>
> Please answer these questions, yes.

I don't know, but I will see if I can get information about these next
time I observe the crash.

I struggle to keep the Emacs instance running gdb around very long
because it keeps crashing too :)

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 4 Jul 2024 06:17:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 04 02:17:56 2024
Received: from localhost ([127.0.0.1]:41280 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPFn1-0003MN-PV
	for submit <at> debbugs.gnu.org; Thu, 04 Jul 2024 02:17:56 -0400
Received: from sonic312-25.consmr.mail.ne1.yahoo.com ([66.163.191.206]:37460)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sPFmz-0003M7-Du
 for 71929 <at> debbugs.gnu.org; Thu, 04 Jul 2024 02:17:54 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720073864; bh=Fym/JU5tbkmgMk2nbFd+ys9KSCZ2l5hHaCmFsxqSkpA=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=q/f6fyu3FkMM6tjFo7jHH5kaTY30UEZB2ZMoyiRaFKEjiZhKETW0NNF92X7k60kBsZZM/zQ0SiTBk2xxP0frqAfT1d607gyKZk5gYgw94/EWEN3SXHvxG3VW+mUXUGvWVMH5bOYe1ZrjBSD4R6n0KR65fMX/Rajnkbb7cvx+apSE6JUzlfU5vZjwH+ms+/PsmsgQJOEvtf9o5cMxLJQ7Q+tQ5TbnOPgHdgSTSZJwB9MDx0Dbpnct6lke4GV41fpifa1//AgD7QDf0RARlW0Tvu8g4Lsg0u1QDPAg8ZvFNaYF3dRXR6Pw86xd9aFI7/yBUSE1uQ3XxPY0qbYad81lFg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1720073864; bh=FPR4w8Me2JHhXopmBao3CLQ9T2BHntc9Eh+4or+Fs8b=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=D0DaaVZM6dW2PUJrACMmkBIFPrhRIsUHVYggZyGm5g5tr8DYmlFMcjaqWV52R5EBctEbLjKHmHpdwf3nOiccZD9HKZhqiz0wRJ7LArr2wm8C35WHZnnhqK3Wo8a4/6iZJiDRDNYe1jEseH9rJsBwsrAe2csQEUQhE3Ubr4kUiEGEbJC71mLSc5awuYUuV/PVHfyEm30LYAdsQGGpbvQWVNw1sPmv0qRvC3h9PeXDnrlw8bYiNfgltJnkJhMdqSeF5eJoxmrlPvGcEXz7UvdMzhgroUCfqiSsafpQbrDlw6xsO3wy/oPMHwSe2tWC2DaPEdL1SRsYvQmXvB1wqE2zEw==
X-YMail-OSG: abD.kpgVM1mWFT_S0ZXpiCkGpvyx3kQ9PSJzxqLxGEsbBmzoHMpXr4bckuxRaC6
 wQJcYF_C2Ie98wumUP9mZV.61DP2GikmQ66v4O2A_4CxW7oUpysrYHz9S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b7GSdDydc8vKkyndqtYM0hwSRaTfO8IlioR1BNaIdOG.4
 vj553tDtPWXVMtP69LYCyY9.45AleC2khD0WpRsFhOKUdhqj8ZA--
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 3d14fc6f-66b3-4c60-92ee-2315fa1b6b01
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic312.consmr.mail.ne1.yahoo.com with HTTP; Thu, 4 Jul 2024 06:17:44 +0000
Received: by hermes--production-sg3-7b469d9f6-ct6gp (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID d36c3009e2434642fcf309a2f820a383; 
 Thu, 04 Jul 2024 06:17:39 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
In-Reply-To: <86ikxlae3p.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 04 Jul
 2024 09:03:06 +0300")
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
 <86ikxlae3p.fsf@HIDDEN>
Date: Thu, 04 Jul 2024 14:17:23 +0800
Message-ID: <87le2h4r64.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Mailer: WebService/1.1.22464
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 1011
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org, spwhitton@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> Cc: 71929 <at> debbugs.gnu.org
>> Date: Thu, 04 Jul 2024 08:53:41 +0300
>> From: Eli Zaretskii <eliz@HIDDEN>
>> 
>> > From: Sean Whitton <spwhitton@HIDDEN>
>> > Date: Thu, 04 Jul 2024 10:44:04 +0800
>> > 
>> > Hello,
>> > 
>> > On Thu 04 Jul 2024 at 10:33am +08, Sean Whitton wrote:
>> > 
>> > > My pgtk Emacs keeps crashing.  This time I think I caught it.
>> > > I see there was a recent commit to code around here; if this backtrace
>> > > is not sufficient, I can try bisecting, but I cannot currently reproduce
>> > > the crash reliably.
>> > >
>> > > Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
>> > > 0x00005555557a2c51 in mark_image_cache (c=0x55555729fc70) at image.c:3775
>> > > 3775		if (c->images[i])
>> > > (gdb)
>> > 
>> > ... and i was 0, i.e. it crashes on the first iteration.
>> 
>> What is the value of c->images?  IOW, why did this line segfault?
>
> Also, what is the value of c->refcount?

Please answer these questions, yes.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 4 Jul 2024 06:03:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 04 02:03:21 2024
Received: from localhost ([127.0.0.1]:41268 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPFYu-0002zC-Ro
	for submit <at> debbugs.gnu.org; Thu, 04 Jul 2024 02:03:21 -0400
Received: from eggs.gnu.org ([209.51.188.92]:58426)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sPFYs-0002yr-7t
 for 71929 <at> debbugs.gnu.org; Thu, 04 Jul 2024 02:03:19 -0400
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 <eliz@HIDDEN>)
 id 1sPFYi-0003RC-TA; Thu, 04 Jul 2024 02:03:08 -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=8huyjfjAgspZ6AR4jgdvmhckpCzmpLwN+H17VNUUS2s=; b=pxuGX7wLUqeE
 oMLCZSYMiNz/XwdheyrBkrexx/C5t/C7lTd+dctbMs4J9ebVB2FFMsaA2paBbTfNf+v3uRtsKVJkV
 cSkwDKsYyYxBlC0D+gKsiKRq4c7MIVi45zo4au3/aVtX3dAAbDcGeezmvradFOHFK5jP2NoeeweLF
 OSZF0H907uiMO1VajL3bV4F+JhiMLcTtJbB0AqA/5wE4MDezc3WVktmFbQh4lBLPN6ptVVySbqJ+Y
 Ryvml/JT5ZQkWqFQzeZKyLp7RSdtquJfC43uab5WEiLmU9DdeddjdFoG68UQAp5U1qOgm5CqFYfP2
 6hEQopOxd2E8zxe5qnb9fQ==;
Date: Thu, 04 Jul 2024 09:03:06 +0300
Message-Id: <86ikxlae3p.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: spwhitton@HIDDEN
In-Reply-To: <86jzi1aeje.fsf@HIDDEN> (message from Eli Zaretskii on Thu, 04
 Jul 2024 08:53:41 +0300)
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN> <86jzi1aeje.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71929
Cc: Po Lu <luangruo@HIDDEN>, 71929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 71929 <at> debbugs.gnu.org
> Date: Thu, 04 Jul 2024 08:53:41 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> > From: Sean Whitton <spwhitton@HIDDEN>
> > Date: Thu, 04 Jul 2024 10:44:04 +0800
> > 
> > Hello,
> > 
> > On Thu 04 Jul 2024 at 10:33am +08, Sean Whitton wrote:
> > 
> > > My pgtk Emacs keeps crashing.  This time I think I caught it.
> > > I see there was a recent commit to code around here; if this backtrace
> > > is not sufficient, I can try bisecting, but I cannot currently reproduce
> > > the crash reliably.
> > >
> > > Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
> > > 0x00005555557a2c51 in mark_image_cache (c=0x55555729fc70) at image.c:3775
> > > 3775		if (c->images[i])
> > > (gdb)
> > 
> > ... and i was 0, i.e. it crashes on the first iteration.
> 
> What is the value of c->images?  IOW, why did this line segfault?

Also, what is the value of c->refcount?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 4 Jul 2024 05:53:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 04 01:53:53 2024
Received: from localhost ([127.0.0.1]:41259 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPFPk-0002hF-PF
	for submit <at> debbugs.gnu.org; Thu, 04 Jul 2024 01:53:53 -0400
Received: from eggs.gnu.org ([209.51.188.92]:55248)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sPFPi-0002gy-VY
 for 71929 <at> debbugs.gnu.org; Thu, 04 Jul 2024 01:53:51 -0400
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 <eliz@HIDDEN>)
 id 1sPFPb-00080E-0Q; Thu, 04 Jul 2024 01:53:43 -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=u7yEvJt59Vo8bRQQ32G+hW/ALMfR06SMeZBjKicWnGo=; b=VP/C0ezoOKpf
 9Q9qoyPw218kHRWHDotoRM2whYz7gDDiSvWPZIzGmz3aNVzNZpsIHy5WzzQdHXsTc6OFS2D7hQkq+
 tYFGHwMLdcSGALTGfP5u353jgkEYQAJb92xGaLlX+UxQm7SsvYQsrrXNxvRM+6Iaq/5cul6dJqjM5
 YWWeW28Wnxwz686r9tek1zW2pkmYviqJNYVyM1F19+7bABZW0jM67h+6U/GJ0ThzNH+0MwTaU4dv3
 TKpXK3+tdjHacUEtoU0WTaReIiqOF0uzhnomMVOGAsINcJE9vEozV9gwPH4pKtmUl9gSDLz+CLYcd
 7/xCW4kqn1v+Cflhw5dLbQ==;
Date: Thu, 04 Jul 2024 08:53:41 +0300
Message-Id: <86jzi1aeje.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87y16h6fm3.fsf@HIDDEN> (message from Sean
 Whitton on Thu, 04 Jul 2024 10:44:04 +0800)
Subject: Re: bug#71929: 30.0.60; crash in mark_image_cache
References: <87jzi17uot.fsf@HIDDEN>
 <87y16h6fm3.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71929
Cc: 71929 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Sean Whitton <spwhitton@HIDDEN>
> Date: Thu, 04 Jul 2024 10:44:04 +0800
> 
> Hello,
> 
> On Thu 04 Jul 2024 at 10:33am +08, Sean Whitton wrote:
> 
> > My pgtk Emacs keeps crashing.  This time I think I caught it.
> > I see there was a recent commit to code around here; if this backtrace
> > is not sufficient, I can try bisecting, but I cannot currently reproduce
> > the crash reliably.
> >
> > Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
> > 0x00005555557a2c51 in mark_image_cache (c=0x55555729fc70) at image.c:3775
> > 3775		if (c->images[i])
> > (gdb)
> 
> ... and i was 0, i.e. it crashes on the first iteration.

What is the value of c->images?  IOW, why did this line segfault?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at 71929 <at> debbugs.gnu.org:


Received: (at 71929) by debbugs.gnu.org; 4 Jul 2024 02:44:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 03 22:44:22 2024
Received: from localhost ([127.0.0.1]:41118 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPCSL-0005kM-VS
	for submit <at> debbugs.gnu.org; Wed, 03 Jul 2024 22:44:22 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:58478)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sPCSH-0005k0-Ad
 for 71929 <at> debbugs.gnu.org; Wed, 03 Jul 2024 22:44:20 -0400
DKIM-Signature: a=rsa-sha256;
 b=RIZHajUCmMeXAb6NU/41jxLR5OaOJACqt9d8SvWvsLptuAEXVgEKsPG5R3kL50EU5IDcKXqyVczN3/KUoxtjH5A32M22IQfUym4MM9jS2cFTsRqFHTmSiPMTMEgvuEHsjL1Oks0IU028IKwP1THLwCiJkxFXIjkL8+oOCXrH+nXyAjWMtMd0RMwfSWsiNA1Couiw/ff99avwAJXQTAtYBW2ve66T+8lJaspPRpuLkuIkraGrZ2ynellvuu21vLeUiV3PutMrPfOn8s/N7yu5NuouAl1mCxnCm5L2URg0JGfrYdn1m6w1TyczLfVs07ZJy6eAb72gBr3MIIYROg9T4w==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=ZeEvQXyysmerW3+iQxqG70EllM0HpFihe+CiTehJaSo=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=Yo0d5KSh86QUXZk1HEMoQbsJBA4oMd8SauEIGTfGd964dQYlusXvHgUnkwRHx/15Y/FpJOXpxX7wRTTsV7TGKJDTGfXvt+epxEDRJVruEQWAB6qGz3hDRRsif1gbjoI+26ECNpRPz/tvRvEO7uvjbs80sTNScTC1mjVc+EPqH3KT6qEO4SBlqRXNXTG5DmfLF6p6rKEKbx0ou9WIjxmorILpvCnB+jN51vxeQxjwItWgYhxB+qcfuoX3gF0DHXHrbmW5Qa1JjL294qjZRseAmaYEyUi4d3KcfaF+f7/JIkD+H3jcG43yfDTTkRcmg6aELWwYNpUhFJgYdxjnD20dyg==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=ZeEvQXyysmerW3+iQxqG70EllM0HpFihe+CiTehJaSo=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 71929 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 2080160227
 for <71929 <at> debbugs.gnu.org>
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Thu, 04 Jul 2024 02:44:06 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 1E5127F9B1F; Thu,  4 Jul 2024 10:44:04 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: 71929 <at> debbugs.gnu.org
Subject: Re: 30.0.60; crash in mark_image_cache
In-Reply-To: <87jzi17uot.fsf@HIDDEN> (Sean Whitton's message
 of "Thu, 04 Jul 2024 10:33:06 +0800")
References: <87jzi17uot.fsf@HIDDEN>
Date: Thu, 04 Jul 2024 10:44:04 +0800
Message-ID: <87y16h6fm3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 71929
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello,

On Thu 04 Jul 2024 at 10:33am +08, Sean Whitton wrote:

> My pgtk Emacs keeps crashing.  This time I think I caught it.
> I see there was a recent commit to code around here; if this backtrace
> is not sufficient, I can try bisecting, but I cannot currently reproduce
> the crash reliably.
>
> Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
> 0x00005555557a2c51 in mark_image_cache (c=0x55555729fc70) at image.c:3775
> 3775		if (c->images[i])
> (gdb)

... and i was 0, i.e. it crashes on the first iteration.

-- 
Sean Whitton




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Jul 2024 02:33:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 03 22:33:30 2024
Received: from localhost ([127.0.0.1]:41103 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sPCHp-0005TY-Aj
	for submit <at> debbugs.gnu.org; Wed, 03 Jul 2024 22:33:29 -0400
Received: from lists.gnu.org ([209.51.188.17]:41252)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <spwhitton@HIDDEN>) id 1sPCHn-0005TQ-73
 for submit <at> debbugs.gnu.org; Wed, 03 Jul 2024 22:33:28 -0400
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 <spwhitton@HIDDEN>)
 id 1sPCHd-0006ay-Tv
 for bug-gnu-emacs@HIDDEN; Wed, 03 Jul 2024 22:33:20 -0400
Received: from sendmail.purelymail.com ([34.202.193.197])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <spwhitton@HIDDEN>)
 id 1sPCHb-0007Le-TV
 for bug-gnu-emacs@HIDDEN; Wed, 03 Jul 2024 22:33:17 -0400
DKIM-Signature: a=rsa-sha256;
 b=uWfL701Jz3fo4P36w4a5IeE1O9s/dYtIakH4zxUQwvQ387ozynOGR+iI6Ey6fkyTAnMmgclE3RtwHs4GkjfC2tdOomW6fGHnsNI2cqYCZYDEAwVctONsoqX1oVAQZLbuOwbsv4YLBCvS904f1mXKSSPhKd+TKgi0wMKguVHoALbp9io2xX/DYrGjeOzl1+TR/w9+7N/tGFIrF9AvD5BrBRN3KIBKMZ8Hhhgrozr0j6s3C5VdW+POuAwPPEl/hLzxfmh+o+vg1YOCsFiD4vZ1rtUBQHjDENsznkgOoG0O3D/TdO/hGynHGwuv+OC/tXmU7OSHbPPwr9DuwbVXLBWxHw==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=E6dtBCPki2toIcViB7SqD35SiRu7Sva3FlbG52dxy3E=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=pYoGjMWI3+nimWzE8fJKKlxh1oRz4yVOyc4vOpnmpxccm5wSmG0Z+fEVGdsyBaWgStgzZI2AEUxJ6Hu64cx/RzuSIj49jgezLclC+xN6y14jV9RKkYyD7g9H+WFOB18D28I+XfgnELu2FvgFEMtEj3FfpRYNRUC+BI3+2UVvoOIExuk/gDUEEUQRU8iaBYjCDSa9TwTSiuAxwm8ayrjsE+3qJ018iqjPNdKtKC0dGjPxdvhLNWQjuQiPGxVRFtPj2YoTwiIsFft4wNY0QHyatnpHY03b6UvUGcwvQJOeIg4j6Mv7ozAA1AUbuIUWVbkbthj3w+7g7HcTqQtnAXKsZw==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=E6dtBCPki2toIcViB7SqD35SiRu7Sva3FlbG52dxy3E=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: bug-gnu-emacs@HIDDEN
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 690647510
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Thu, 04 Jul 2024 02:33:10 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id E5F4D7E0D01; Thu,  4 Jul 2024 10:33:06 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.60; crash in mark_image_cache
Date: Thu, 04 Jul 2024 10:33:06 +0800
Message-ID: <87jzi17uot.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=34.202.193.197;
 envelope-from=spwhitton@HIDDEN; helo=sendmail.purelymail.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

My pgtk Emacs keeps crashing.  This time I think I caught it.
I see there was a recent commit to code around here; if this backtrace
is not sufficient, I can try bisecting, but I cannot currently reproduce
the crash reliably.

Thread 1 "emacs" received signal SIGSEGV, Segmentation fault.
0x00005555557a2c51 in mark_image_cache (c=0x55555729fc70) at image.c:3775
3775		if (c->images[i])
(gdb)

  0 in mark_image_cache of image.c:3775
  1 in mark_frame of alloc.c:7063
  2 in process_mark_stack of alloc.c:7303
  3 in mark_object of alloc.c:7504
  4 in mark_char_table of alloc.c:6920
  5 in mark_char_table of alloc.c:6917
  6 in process_mark_stack of alloc.c:7341
  7 in mark_object of alloc.c:7504
  8 in mark_char_table of alloc.c:6920
  9 in mark_char_table of alloc.c:6917
 10 in process_mark_stack of alloc.c:7341
 11 in mark_object of alloc.c:7504
 12 in mark_char_table of alloc.c:6920
 13 in mark_char_table of alloc.c:6917
 14 in process_mark_stack of alloc.c:7341
 15 in mark_object of alloc.c:7504
 16 in mark_interval_tree_1 of alloc.c:1529
 17 in traverse_intervals_noorder of intervals.c:243
 18 in mark_interval_tree of alloc.c:1538
 19 in process_mark_stack of alloc.c:7264
 20 in mark_object of alloc.c:7504
 21 in mark_interval_tree_1 of alloc.c:1529
 22 in traverse_intervals_noorder of intervals.c:243
 23 in traverse_intervals_noorder of intervals.c:248
 24 in traverse_intervals_noorder of intervals.c:248
 25 in traverse_intervals_noorder of intervals.c:248
 26 in traverse_intervals_noorder of intervals.c:248
 27 in mark_interval_tree of alloc.c:1538
 28 in mark_buffer of alloc.c:6958
 29 in process_mark_stack of alloc.c:7299
 30 in mark_object of alloc.c:7504
 31 in mark_interval_tree_1 of alloc.c:1529
 32 in traverse_intervals_noorder of intervals.c:243
 33 in mark_interval_tree of alloc.c:1538
 34 in process_mark_stack of alloc.c:7264
 35 in mark_objects of alloc.c:7512
 36 in mark_vectorlike of alloc.c:6891
 37 in mark_buffer of alloc.c:6954
 38 in process_mark_stack of alloc.c:7299
 39 in mark_object of alloc.c:7504
 40 in mark_discard_killed_buffers of alloc.c:7020
 41 in mark_window of alloc.c:7087
 42 in process_mark_stack of alloc.c:7307
 43 in mark_objects of alloc.c:7512
 44 in mark_vectorlike of alloc.c:6891
 45 in mark_window of alloc.c:7072
 46 in process_mark_stack of alloc.c:7307
 47 in mark_objects of alloc.c:7512
 48 in mark_vectorlike of alloc.c:6891
 49 in mark_frame of alloc.c:7037
 50 in process_mark_stack of alloc.c:7303
 51 in mark_objects of alloc.c:7512
 52 in mark_vectorlike of alloc.c:6891
 53 in mark_window of alloc.c:7072
 54 in process_mark_stack of alloc.c:7307
 55 in mark_object of alloc.c:7504
 56 in mark_char_table of alloc.c:6920
 57 in mark_char_table of alloc.c:6917
 58 in process_mark_stack of alloc.c:7341
 59 in mark_objects of alloc.c:7512
 60 in mark_vectorlike of alloc.c:6891
 61 in mark_buffer of alloc.c:6954
 62 in process_mark_stack of alloc.c:7299
 63 in mark_objects of alloc.c:7512
 64 in mark_vectorlike of alloc.c:6891
 65 in mark_buffer of alloc.c:6954
 66 in process_mark_stack of alloc.c:7299
 67 in mark_objects of alloc.c:7512
 68 in mark_vectorlike of alloc.c:6891
 69 in mark_buffer of alloc.c:6954
 70 in process_mark_stack of alloc.c:7299
 71 in mark_objects of alloc.c:7512
 72 in mark_vectorlike of alloc.c:6891
 73 in mark_buffer of alloc.c:6954
 74 in process_mark_stack of alloc.c:7299
 75 in mark_object of alloc.c:7504
 76 in mark_char_table of alloc.c:6920
 77 in mark_char_table of alloc.c:6917
 78 in process_mark_stack of alloc.c:7341
 79 in mark_object of alloc.c:7504
 80 in mark_char_table of alloc.c:6920
 81 in mark_char_table of alloc.c:6917
 82 in process_mark_stack of alloc.c:7341
 83 in mark_objects of alloc.c:7512
 84 in mark_vectorlike of alloc.c:6891
 85 in mark_buffer of alloc.c:6954
 86 in process_mark_stack of alloc.c:7299
 87 in mark_object of alloc.c:7504
 88 in mark_char_table of alloc.c:6920
 89 in mark_char_table of alloc.c:6917
 90 in process_mark_stack of alloc.c:7341
 91 in mark_objects of alloc.c:7512
 92 in mark_vectorlike of alloc.c:6891
 93 in mark_buffer of alloc.c:6954
 94 in process_mark_stack of alloc.c:7299
 95 in mark_objects of alloc.c:7512
 96 in mark_vectorlike of alloc.c:6891
 97 in mark_buffer of alloc.c:6954
 98 in process_mark_stack of alloc.c:7299
 99 in mark_objects of alloc.c:7512
100 in mark_vectorlike of alloc.c:6891
101 in mark_buffer of alloc.c:6954
102 in process_mark_stack of alloc.c:7299
103 in mark_objects of alloc.c:7512
104 in mark_vectorlike of alloc.c:6891
105 in mark_buffer of alloc.c:6954
106 in process_mark_stack of alloc.c:7299
107 in mark_object of alloc.c:7504
108 in mark_char_table of alloc.c:6920
109 in process_mark_stack of alloc.c:7341
110 in mark_object of alloc.c:7504
111 in mark_char_table of alloc.c:6920
112 in process_mark_stack of alloc.c:7341
113 in mark_object of alloc.c:7504
114 in mark_char_table of alloc.c:6920
115 in process_mark_stack of alloc.c:7341
116 in mark_object of alloc.c:7504
117 in mark_char_table of alloc.c:6920
118 in process_mark_stack of alloc.c:7341
119 in mark_objects of alloc.c:7512
120 in mark_vectorlike of alloc.c:6891
121 in mark_buffer of alloc.c:6954
122 in process_mark_stack of alloc.c:7299
123 in mark_objects of alloc.c:7512
124 in mark_vectorlike of alloc.c:6891
125 in mark_buffer of alloc.c:6954
126 in process_mark_stack of alloc.c:7299
127 in mark_objects of alloc.c:7512
128 in mark_vectorlike of alloc.c:6891
129 in mark_buffer of alloc.c:6954
130 in process_mark_stack of alloc.c:7299
131 in mark_objects of alloc.c:7512
132 in mark_vectorlike of alloc.c:6891
133 in mark_buffer of alloc.c:6954
134 in process_mark_stack of alloc.c:7299
135 in mark_objects of alloc.c:7512
136 in mark_vectorlike of alloc.c:6891
137 in mark_buffer of alloc.c:6954
138 in process_mark_stack of alloc.c:7299
139 in mark_objects of alloc.c:7512
140 in mark_vectorlike of alloc.c:6891
141 in mark_buffer of alloc.c:6954
142 in process_mark_stack of alloc.c:7299
143 in mark_objects of alloc.c:7512
144 in mark_vectorlike of alloc.c:6891
145 in mark_buffer of alloc.c:6954
146 in process_mark_stack of alloc.c:7299
147 in mark_objects of alloc.c:7512
148 in mark_vectorlike of alloc.c:6891
149 in mark_buffer of alloc.c:6954
150 in process_mark_stack of alloc.c:7299
151 in mark_object of alloc.c:7504
152 in mark_object_root_visitor of alloc.c:6396
153 in visit_vectorlike_root of alloc.c:6348
154 in visit_buffer_root of alloc.c:6362
155 in visit_static_gc_roots of alloc.c:6374
156 in garbage_collect of alloc.c:6598
157 in maybe_garbage_collect of alloc.c:6507
158 in maybe_gc of /home/spwhitton/src/emacs/primary/src/lisp.h:5929
159 in Ffuncall of eval.c:3088
160 in read_char of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
161 in read_key_sequence of keyboard.c:10743
162 in command_loop_1 of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
163 in internal_condition_case of eval.c:1613
164 in command_loop_2 of keyboard.c:1168
165 in internal_catch of eval.c:1292
166 in command_loop of /home/spwhitton/src/emacs/primary/src/lisp.h:1178
167 in recursive_edit_1 of keyboard.c:754
168 in Frecursive_edit of keyboard.c:837
169 in main of emacs.c:2631

-- 
Sean Whitton




Acknowledgement sent to Sean Whitton <spwhitton@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#71929; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 9 Jul 2024 15:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.