From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71929: 30.0.60; crash in mark_image_cache Date: Thu, 04 Jul 2024 09:03:06 +0300 Message-ID: <86ikxlae3p.fsf@gnu.org> References: <87jzi17uot.fsf@melete.silentflame.com> <87y16h6fm3.fsf@melete.silentflame.com> <86jzi1aeje.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26510"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , 71929@debbugs.gnu.org To: spwhitton@spwhitton.name Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 04 08:04:27 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sPFZz-0006gw-4a for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 04 Jul 2024 08:04:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPFZf-00087v-5Z; Thu, 04 Jul 2024 02:04:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPFZZ-00083Y-Ea for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2024 02:04:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPFZY-0003br-4Y for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2024 02:04:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sPFZa-00030O-4S for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2024 02:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Jul 2024 06:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71929 X-GNU-PR-Package: emacs Original-Received: via spool by 71929-submit@debbugs.gnu.org id=B71929.172007300111487 (code B ref 71929); Thu, 04 Jul 2024 06:04:02 +0000 Original-Received: (at 71929) by debbugs.gnu.org; 4 Jul 2024 06:03:21 +0000 Original-Received: from localhost ([127.0.0.1]:41268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPFYu-0002zC-Ro for submit@debbugs.gnu.org; Thu, 04 Jul 2024 02:03:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPFYs-0002yr-7t for 71929@debbugs.gnu.org; Thu, 04 Jul 2024 02:03:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 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==; In-Reply-To: <86jzi1aeje.fsf@gnu.org> (message from Eli Zaretskii on Thu, 04 Jul 2024 08:53:41 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288347 Archived-At: > Cc: 71929@debbugs.gnu.org > Date: Thu, 04 Jul 2024 08:53:41 +0300 > From: Eli Zaretskii > > > From: Sean Whitton > > 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?