Subject: bug#55970: 29.0.50; Emacs crashes when dragging the scroll bar with "--with-pgtk" and "--without-toolkit-scroll-bars" configure flags

From: Eli Zaretskii <[email-masked]>
Date: Tue, 14 Jun 2022 20:44:04 +0300

> From: समीर सिंह Sameer Singh
>  <[email-masked]>
> Date: Tue, 14 Jun 2022 19:38:32 +0530
> 
> Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:420
> 420     {
> (gdb) bt full
> #0  terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:420
> #1  0x0000555555740e5e in emacs_abort () at sysdep.c:2310
> #2  0x000055555571ba26 in make_lispy_event (event=0x555555e25300 <kbd_buffer+256>) at keyboard.c:6140
>         button = 0
>         start_pos = XIL(0)
>         is_double = false
>         position = XIL(0x5555567fd423)
>         start_pos_ptr = 0x7ffff1e414c0
>         i = -493962752

Please show the result of the following:

  (gdb) frame 2
  (gdb) p *event

(This assumes that "frame 2 gets you to the frame in make_lispy_event
above; if not adjust the frame number accordingly.)

Thanks.