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

Previous Next

Package: emacs;

Reported by: Sean Whitton <spwhitton <at> spwhitton.name>

Date: Thu, 4 Jul 2024 02:34:02 UTC

Severity: normal

Found in version 30.0.60

Done: Po Lu <luangruo <at> yahoo.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: luangruo <at> yahoo.com, Sean Whitton <spwhitton <at> spwhitton.name>
Cc: 71929 <at> debbugs.gnu.org
Subject: bug#71929: 30.0.60; crash in mark_image_cache
Date: Sun, 07 Jul 2024 10:08:01 +0300
> From: Sean Whitton <spwhitton <at> spwhitton.name>
> Cc: 71929 <at> debbugs.gnu.org,  Eli Zaretskii <eliz <at> gnu.org>
> 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?




This bug report was last modified 301 days ago.

Previous Next


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