From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#55970: 29.0.50; Emacs crashes when dragging the scroll bar with "--with-pgtk" and "--without-toolkit-scroll-bars" configure flags Date: Tue, 14 Jun 2022 21:30:19 +0300 Message-ID: <83sfo7rtc4.fsf@gnu.org> References: <83v8t3rvh7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39191"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55970@debbugs.gnu.org To: =?UTF-8?Q?=E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0_?= =?UTF-8?Q?=E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9?= Sameer Singh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 14 20:32:15 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o1BKp-000A0b-40 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Jun 2022 20:32:15 +0200 Original-Received: from localhost ([::1]:55498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1BKm-0000en-Sb for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 14 Jun 2022 14:32:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42076) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1BJh-0000d3-8u for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2022 14:31:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41828) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1BJe-0000tn-Cc for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2022 14:31:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1BJe-0004jF-8H for bug-gnu-emacs@gnu.org; Tue, 14 Jun 2022 14:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 14 Jun 2022 18:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55970 X-GNU-PR-Package: emacs Original-Received: via spool by 55970-submit@debbugs.gnu.org id=B55970.165523143918145 (code B ref 55970); Tue, 14 Jun 2022 18:31:02 +0000 Original-Received: (at 55970) by debbugs.gnu.org; 14 Jun 2022 18:30:39 +0000 Original-Received: from localhost ([127.0.0.1]:35725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1BJH-0004ib-0i for submit@debbugs.gnu.org; Tue, 14 Jun 2022 14:30:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1BJD-0004iK-FR for 55970@debbugs.gnu.org; Tue, 14 Jun 2022 14:30:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41960) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1BJ8-0000pg-7A; Tue, 14 Jun 2022 14:30:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=jZZjE5CqO8e2dVMjlHoVGYgVB3gT2equbcvQIsCRIhE=; b=QA7h+XzhPa6uK6FpLboe a3a68205nX1BXXMhrWjZYDyx7Ze/JNIT8N0Hb7993ZMK1Zt7+Cp6O/1hSmOc2If8fzooVP5PckLks /dm/S3R7F9UxJWkB/spCWxaXMuL6T8VaRs1CA97x1Hv8fYN9VZs9vU9N2S+lA++KSHd87ScRkxODt 1TZ0nl7vmrIAeeyC4qvy7C4mGvPTCtgj3oDhMu0qgLEi9JB3xuD/O+8r7a4a6GlMBhepndrhHCIs7 sT7ioDaklByfeYpc8RJMkOPr8JQXyeyqFhFN5scdmth2gMjKP/4hHmEs6cKvc/O/ssUfX19c15BJb KfyR/AON6R/nxg==; Original-Received: from [87.69.77.57] (port=1693 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1BJ7-00030B-Bg; Tue, 14 Jun 2022 14:30:30 -0400 In-Reply-To: (message from =?UTF-8?Q?=E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0_?= =?UTF-8?Q?=E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9?= Sameer Singh on Tue, 14 Jun 2022 23:18:42 +0530) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:234528 Archived-At: > From: समीर सिंह Sameer Singh > Date: Tue, 14 Jun 2022 23:18:42 +0530 > Cc: 55970@debbugs.gnu.org > > 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 ) 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) > } Thanks. I think the problem is here: static void pgtk_send_scroll_bar_event (Lisp_Object window, enum scroll_bar_part part, int portion, int whole, bool horizontal) { union buffered_input_event inev; EVENT_INIT (inev.ie); inev.ie.kind = (horizontal ? HORIZONTAL_SCROLL_BAR_CLICK_EVENT : SCROLL_BAR_CLICK_EVENT); inev.ie.frame_or_window = window; inev.ie.arg = Qnil; inev.ie.timestamp = 0; inev.ie.code = 0; inev.ie.part = part; inev.ie.x = make_fixnum (portion); inev.ie.y = make_fixnum (whole); inev.ie.modifiers = 0; evq_enqueue (&inev); } This sets the modifiers to zero, which causes the abort. Instead, I suggest to do this: inev.ie.modifiers = part == scroll_bar_end_scroll ? up_modifier : down_modifier; Can you try this?