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#73838: 31.0.50; Problems in note_mouse_highlight if -nw Date: Wed, 16 Oct 2024 18:27:39 +0300 Message-ID: <86seswoyok.fsf@gnu.org> References: 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="29422"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73838@debbugs.gnu.org To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 16 17:31:20 2024 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 1t15zb-0007S7-Vf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Oct 2024 17:31:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t15z4-0007OQ-PW; Wed, 16 Oct 2024 11:30:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t15z0-0007OB-W8 for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2024 11:30:43 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t15z0-00012J-O1 for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2024 11:30:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=HPkzJQvp7DA/5VPYVrPfxTaIreEC4tlwq5NOS0uD75Q=; b=QrK4S7jmRxmsUY3D06cDbddH39KI+1x40946XPWjSn5KgP3kpDugu12z456D2sCVJJgxMzvlKV1V4J6OIDr9EPG5lXLAFJY9p94/AQjU7gRmY2S0KV9OujX2m0RLBzGY1MkUZpcGss1Lq1S/khhboL27AJjJgJlpQTrcgaO5O3QJ3/QrnH9Fp0XS8uRidy4N7v5754hQDHtKOqqF28ak5czAMRLbL10UDFZW9kL3R6eZhB/aopj1ux2X5OVi3VF6l+w3xJXab6OGACNmfqJHuOXgWGbsaghpVgwAwjTPUhxVt8hsQ5AVo2jfJR8wRr1FtqDrxCw/axiiS/fMZ9CbqA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t15zK-00077H-Aw for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2024 11: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: Wed, 16 Oct 2024 15:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73838 X-GNU-PR-Package: emacs Original-Received: via spool by 73838-submit@debbugs.gnu.org id=B73838.172909262026935 (code B ref 73838); Wed, 16 Oct 2024 15:31:02 +0000 Original-Received: (at 73838) by debbugs.gnu.org; 16 Oct 2024 15:30:20 +0000 Original-Received: from localhost ([127.0.0.1]:60121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t15yd-00070M-KD for submit@debbugs.gnu.org; Wed, 16 Oct 2024 11:30:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t15ya-000708-P3 for 73838@debbugs.gnu.org; Wed, 16 Oct 2024 11:30:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t15w5-0000Rw-Id; Wed, 16 Oct 2024 11:27:41 -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=HPkzJQvp7DA/5VPYVrPfxTaIreEC4tlwq5NOS0uD75Q=; b=ixMmmxGYnpsjx8cMZrte iwUmZN60cyrV0FaTpLeKHays2q/COaQ/b4L5M8IPtryhMAMTbI/EaPnbPyrmDufrY888a/eWCepdj Di0nFFOHiVWEjBR79s0ZywFbjiGzvrbhXqZ03AY9ibHPezVfdLRAjc0NOUgK1hDNEoH8ycJ7zx2+0 nQ1QtB8CqBbgc7jm+o7zaiNLrORUvnxknx2MTF1vb3uJLizgW4K738P85ArkanhZVBM4XDUVMqzIi BNnWmGvACKyMbC9aVxqoiIpiOQgBKxZYkjzjrqjoPIT5q8GSyqsYfSPk9mwPtDDDq2zIAQE9MUrFw rh3/GSR/Pk0CZg==; In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Wed, 16 Oct 2024 12:47:13 +0200) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293678 Archived-At: > From: Gerd Möllmann > Date: Wed, 16 Oct 2024 12:47:13 +0200 > > This is with master fdac10b216f7b47e2eea129d2a96807a0c2055f3 on > macOS, built with ASAN. > > $ /Users/gerd/emacs/savannah/master/configure --cache-file /var/folders/1d/k_6t25f94sl83szqbf8gpkrh0000gn/T//config.cache.master --without-tree-sitter --with-native-compilation=no CC=clang 'LDFLAGS=-fsanitize=address -fno-omit-frame-pointer' 'CFLAGS=-Wgnu-imaginary-constant -Wunused-result -g -fno-omit-frame-pointer -g -O0 -fsanitize=address -fno-omit-frame-pointer' > > Recipe: > > - emacs -nw -q > - M-x xterm-mouse-mode RET > - M-x make TAB > - Move the move over the completion candidates > > => ASAN abort in note_mouse_highlight, xdisp.c:36108 > > The line number may vary. Looking at that in the debugger, I see > > default: > /* This should not happen. */ > if (cursor != FRAME_OUTPUT_DATA (f)->nontext_cursor) > cursor = FRAME_OUTPUT_DATA (f)->nontext_cursor; > > nsterm.h defines FRAME_OUTPUT_DATA(f) as > > #define FRAME_OUTPUT_DATA(f) ((f)->output_data.ns) > > and since we are not in a GUI frame, this is no good. Analogous defines > are in xterm.h etc., so the problem is not limited to macOS. How come you got to that code on a TTY frame, when the condition for it is if (FRAME_INTERNAL_BORDER_WIDTH (f) > 0 && !NILP (get_frame_param (f, Qdrag_internal_border))) FRAME_INTERNAL_BORDER_WIDTH is supposed to be zero on TTY frames. Why isn't it?