Subject: bug#71929: 30.0.60; crash in mark_image_cache

From: Sean Whitton <[email-masked]>
Date: Sun, 07 Jul 2024 10:43:13 +0800

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