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

From: समीर सिंह Sameer Singh <[email-masked]>
Date: Tue, 14 Jun 2022 23:18:42 +0530

This was the output

Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=6,
backtrace_limit=40) at emacs.c:420
420     {
(gdb) frame 2
#2  0x000055555571ba26 in make_lispy_event (event=0x555555e25300
<kbd_buffer+256>) at keyboard.c:6140
6140              emacs_abort ();
(gdb) p *event
$1 = {
 kind = SCROLL_BAR_CLICK_EVENT,
 part = scroll_bar_handle,
 code = 0,
 modifiers = 0,
 x = make_fixnum(17531),
 y = make_fixnum(1244637),
 timestamp = 0,
 frame_or_window = XIL(0x5555560794a5),
 arg = XIL(0),
 device = XIL(0x30)
}

On Tue, Jun 14, 2022 at 11:14 PM Eli Zaretskii <[email-masked]> wrote:

> > 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.
>