Subject: bug#44506: 28.0.50; Segfault on opening a particular message in Gnus in terminal/tty

From: Eli Zaretskii <[email-masked]>
Date: Sun, 08 Nov 2020 20:54:48 +0200

> From: Amin Bandali <[email-masked]>
> Cc: Eric Abrahamsen <[email-masked]>,  [email-masked]
> Date: Sun, 08 Nov 2020 13:27:04 -0500
> 
> Please find attached the result of `bt full' from an unoptimized build.

Thanks.

> #0  0x00005555556be41e in encode_terminal_code (src=0x7ffff7f59400, src_len=1, coding=0x55555615e330) at term.c:564
>         cmp = 0x0
>         gstring = XIL(0)
>         i = 0
>         src_end = 0x7ffff7f59430
>         buf = 0x555556241720 ' ' <repeats 78 times>, "John ،متسود یسر", '-' <repeats 55 times>, "\377\377\377"
>         nchars = 0
>         nbytes = 0
>         required = 5
>         tlen = 0
>         tbase = 0x0
>         charset_list = XIL(0x7fffea1f684b)
> #1  0x00005555556beef1 in tty_write_glyphs (f=0x555556113798, string=0x7ffff7f59400, len=94) at term.c:773
>         face_id = 11
>         conversion_buffer = 0x555556241b10 ' ' <repeats 78 times>, "John ،متسود یسر", '-' <repeats 55 times>
>         coding = 0x55555615e330
>         n = 1
>         stringlen = 1
>         tty = 0x55555615e5a0
> #2  0x00005555556c8ca3 in write_glyphs (f=0x555556113798, string=0x7ffff7f58290, len=94) at terminal.c:163
> #3  0x00005555555a000c in update_frame_line (f=0x555556113798, vpos=24, updating_menu_p=false) at dispnew.c:5089

Please show the output of these GDB commands:

  (gdb) source /path/to/emacs/src/.gdbinit
  (gdb) frame 0
  (gdb) print *src
  (gdb) frame 3
  (gdb) pgrowx desired_row

(replace "/path/to/emacs/src" with the actual directory name of the
Emacs's src directory).