From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#73838: 31.0.50; Problems in note_mouse_highlight if -nw Date: Wed, 16 Oct 2024 12:47:13 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6147"; mail-complaints-to="usenet@ciao.gmane.io" To: 73838@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 16 12:48:05 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 1t11ZU-0001Qf-P7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Oct 2024 12:48:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t11ZC-0003a1-FU; Wed, 16 Oct 2024 06:47: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 1t11ZA-0003Sl-7o for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2024 06:47:44 -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 1t11Z9-0006gC-Tf for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2024 06:47:43 -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:Date:From:To:Subject; bh=aThivxToF9CFzG4HDgk7anrLr6npQ7MKfES6girQWZo=; b=RTCqCOEwXE/AwvD8bQhQ7abvoiEOlKkT83m7ZrFZcgNCQcoXixD2MwNxqtXdcCZpPjI2JajAv3y4dCGHqSaoLyCav0zaVFWLfJQRSbBSpAREYmJ0S81mbhgAM16zNBatmT6Y3MCyiSE+P11EDaI8mZi8eB7oxDJp2uLhNaOdG87+wcL1DuvOaqEwxreqhsPAXw/Av8B+whAPCZwmIAU7FmD6rhS4mGwp3rgUDPKVRAV/jkEBMJ0g5FAwrCB4Bg2gSl097qYlEEcqyWfB+E7I5qWIsUiHeSEZqp2CxLeD0a1wANq1i0H1HphkObo7V+sIcXeM2vBORtzbszKZJeOwVA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t11ZS-0001yU-AJ for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2024 06:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Oct 2024 10:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73838 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17290756697568 (code B ref -1); Wed, 16 Oct 2024 10:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Oct 2024 10:47:49 +0000 Original-Received: from localhost ([127.0.0.1]:58715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t11ZF-0001xy-DU for submit@debbugs.gnu.org; Wed, 16 Oct 2024 06:47:49 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t11ZB-0001xm-Kd for submit@debbugs.gnu.org; Wed, 16 Oct 2024 06:47:47 -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 1t11Yo-0003Cd-Kz for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2024 06:47:22 -0400 Original-Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t11Ym-0006fG-FD for bug-gnu-emacs@gnu.org; Wed, 16 Oct 2024 06:47:22 -0400 Original-Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5c95a962c2bso5565046a12.2 for ; Wed, 16 Oct 2024 03:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729075638; x=1729680438; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=aThivxToF9CFzG4HDgk7anrLr6npQ7MKfES6girQWZo=; b=TYyJIFec0Xy4VQF1oNkhFu49q+jEu9hoz+3s/Z+MmBJ76zDONnvRdWZz/OKk2W/Swj ikq2+X73meqYj7C/dRNNZmgnK/gdqa3abVqkDEnrCH30588XEU4H+wASMRQRVI18oakd dVpH4uZ6D6rqoAmf+l012ES8tGaTHTpdXdk1QOjdM2y1jkGeUG3a8s7bnaBdgg75R6ZC o9lZc5pq9QZXXk5hs5ByU9aeQR87aD9V78TYmlCknv73nYLg9hl/uMWWv63h8kvwugzJ jvEZIA/Hi0ssU6S/Pk/Ut0H51bXGWJut4WOAINTB2xDa9cG+evE3rtafsk9IP/4GU/AD RuRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729075638; x=1729680438; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=aThivxToF9CFzG4HDgk7anrLr6npQ7MKfES6girQWZo=; b=AB6bA0tFkWhymB9UZgINiUCpfL3SQNfl/xXqcy/gJe+p1a/0it0X0NAyqyRiJNd33u EhOttpoK2QqdhFrVLDhiBbB6IpfThBiBZSL+DVADdJscH5/8oSeZrtrhIySlNaJ4yLe+ eB94nusOxgJtS2cMOL6JulLC4a8gs3bFZruhyxafdZXd8gDSq6yqkJyUSdkC2SvqmtUD BRCFDYNYTCnFMRPqvpObxKRLdMEBKzrIIFXEcZy63j19vs96+JwDF0VWv8M5Cq+h8DME cxAR+ApJ/AbRZ6jTqVktEChEkpLs4qh8xO1eM6Vgn78d0EsKTWQARBiVZL2Z1tSM1fOE CoxA== X-Gm-Message-State: AOJu0Yw+UcOsQPVj+Yswc3FYzUz16//GCmNR00B6vZQreZxI0AR4LlBG yIn9Z55XnEKRv1V9LkHjO9PGqI8vsoYwhhZkGiPyJ62R0KMYBkUid4dvJw== X-Google-Smtp-Source: AGHT+IEH3K5oBgoNpLj5Z3ZphOG4WFxVQmH2zAvLTlBAwAjf3RgtyYQosFU4tttsvB7HHFZHgcpo3w== X-Received: by 2002:a05:6402:4347:b0:5c9:5665:8df5 with SMTP id 4fb4d7f45d1cf-5c95665905amr11568075a12.34.1729075637226; Wed, 16 Oct 2024 03:47:17 -0700 (PDT) Original-Received: from pro2 (pd9e36c48.dip0.t-ipconnect.de. [217.227.108.72]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c98d77995esm1589338a12.65.2024.10.16.03.47.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2024 03:47:15 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x532.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:293669 Archived-At: 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. (I built with ASAN because I observe weird things with mouse stuff in conjunction with tty child frames, and wanted to check what's up with that in master.)