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: Sat, 19 Oct 2024 05:50:11 +0200 Message-ID: References: <86r08goy76.fsf@gnu.org> <86msj3q4t0.fsf@gnu.org> <86iktrpe46.fsf@gnu.org> <86cyjzp9dj.fsf@gnu.org> <865xprovli.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34143"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 73838@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 19 05:51:55 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 1t20VO-0008kt-QM for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Oct 2024 05:51:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t20VA-0005ap-L4; Fri, 18 Oct 2024 23:51:40 -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 1t20V8-0005ag-Rs for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2024 23:51:38 -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 1t20V8-0004sF-JP for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2024 23:51:38 -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:References:In-Reply-To:From:To:Subject; bh=Lw2Lm5b/P5oV0Q2/J68/xitCogakwA5ZYuiHwWJZY5o=; b=BoxIvOSjqKFXMThD+8U+b/IQM0ODeptZoVTuU1IsVyfmQk33+QwCfeyHwjpHqhsLUZbkK6zDkS14bwMUn9KN6FHrYiaZPO5LHVwRwagjtYlgCJufxAce2ZGCOeC7tRecyfI8ZExSeX7FDGXs2DV0wjSCXrqqN0C1+oUitfM/dSiboRqloVXpXbmbqHeEHYLhxV2TfTZ03M5OBeGq7mnxjWPoEynu8xrQ+SSpItZlQ6jLVbHmFZQDOuw+fzCVB2YSFw6aDCfdbK22exj/9xaUjSRBfZ1kPFgfw+CxYF+5Z89NOM2fD16VbI6LBlDzDXJ6vo6OaCBwKFK89cXYex1kyw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t20VV-0006K3-Op for bug-gnu-emacs@gnu.org; Fri, 18 Oct 2024 23:52:01 -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: Sat, 19 Oct 2024 03:52:01 +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.172930990824275 (code B ref 73838); Sat, 19 Oct 2024 03:52:01 +0000 Original-Received: (at 73838) by debbugs.gnu.org; 19 Oct 2024 03:51:48 +0000 Original-Received: from localhost ([127.0.0.1]:40782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t20VH-0006JS-Lg for submit@debbugs.gnu.org; Fri, 18 Oct 2024 23:51:48 -0400 Original-Received: from mail-wm1-f46.google.com ([209.85.128.46]:43360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t20VF-0006J9-Dn for 73838@debbugs.gnu.org; Fri, 18 Oct 2024 23:51:46 -0400 Original-Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-43155afca99so20700955e9.1 for <73838@debbugs.gnu.org>; Fri, 18 Oct 2024 20:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729309815; x=1729914615; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Lw2Lm5b/P5oV0Q2/J68/xitCogakwA5ZYuiHwWJZY5o=; b=MoErWz1iSxjpeU0rx5Ui2kjAem/5QYiwh+EO3PDA7NZn0UZJNA2lDoGUnEVlDk3EAd rRls9R8NQJ00RZTYZmIcOSN64UMXNie8fT9jjAdsA2C3v03bplUFWT49yfDNoAxnZ9u9 OhOPwjedzootQr8pwIROH3DCpZGiQAWIhWwNv8FtdG3ReOgSCoH+ub7ps7+TyQCaAr8r 1Nr4rY4+zR92qdAxzUDgSmC5NyFGoLi1BQNTumM3yvtz28Vh7cj05bKZR9LiLHLGACEk +ra5BtqdPlKjrLQcf6sJ3z1l4f5UqSgv/cBQAJ3wsb4hg+jSTKrsXc2Wi8h93KwCfLQP 1IDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729309815; x=1729914615; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Lw2Lm5b/P5oV0Q2/J68/xitCogakwA5ZYuiHwWJZY5o=; b=iFoCFn1mRh8O2CClRq3JL+JgfiLifuOP20GM/wpJcARg6p2gNXJg8AT3cbyIibChmb C3SyM7BvJztkPBTOjfAKopFdwjGuhdKhBzVRPo4gxCPxuq917C0CHqE0TXcjXh0JwDeD Zssd3/Y6GB6w6Our8J3D2XbslL11FSHYEfmpp6cYjEzIV4ae8h+BXodnOrc0XWfBaRmo sMc5lBRFQ+SvUzN6BXY//zYKi0vaTKk4xTcBs1FUFajkvRpFmtCOevUul7AyOdRkp5UR 5buChxKdSBlvFHG6QcQc0Val0d4nSW6Iys9qFe/WpMgeowsnF572b+xOxScEJvQn3j9W YMPw== X-Gm-Message-State: AOJu0YxY8uR50PuZHjKCxJO8rBEdHNchN6zSZ3U1eA9SHahkfeAhT4pZ u8kxf1YNNpH6DuCxJZuRA/4SPhuFSBVUbyql2CD2XGcWtn2DYszTrNxUag== X-Google-Smtp-Source: AGHT+IHPIbONCJHiTbgsW9RqUD1IxBLwS8lxvv+hYtGPGHerEqUfmtO9aKxX2uT4hgusv0kgPUDCCw== X-Received: by 2002:a5d:4ac9:0:b0:37c:fbb7:5082 with SMTP id ffacd0b85a97d-37ecf0662demr2758865f8f.25.1729309815180; Fri, 18 Oct 2024 20:50:15 -0700 (PDT) Original-Received: from pro2 (pd9e36926.dip0.t-ipconnect.de. [217.227.105.38]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37ecf0469acsm3378397f8f.25.2024.10.18.20.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2024 20:50:13 -0700 (PDT) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Thu, 17 Oct 2024 14:39:58 +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:293828 Archived-At: Gerd M=C3=B6llmann writes: > Eli Zaretskii writes: > >>> From: Gerd M=C3=B6llmann >>> Cc: 73838@debbugs.gnu.org >>> Date: Thu, 17 Oct 2024 09:03:13 +0200 >>>=20 >>> The immediate problem I'm facing is with tty child frames and >>> xterm-mouse: I'm opening a buffer selection child frame (consult-buffer) >>> and choose a candidate with a mouse click. The candidates are >>> mouse-highlighted. Result is eventually an endless loop in >>> process_mark_stack in the non-MPS GC. (Not using the mouse works just >>> fine.) >> >> If you can show the details of that, i.e. step through the loop one >> time until it gets to the same point, maybe someone could have an >> idea. > > It's probably something pretty strange: > > I built with ASAN, no MPS but my workaround for the hightlighting, and > get an error: GC marks char-code-property-alist (staticpro), and hits a > char-table object that is somehow broken. pdumper-object-p says yes for > it, but when checking the mark bit of that char-table with > pdumper_marked_p_impl, ASAN complains about an access outside of the > bitset being used for the pdumper mark bits. > > (Not sure if that's already the loop I see without ASAN.) > > Didn't get further than that today. LLDB decided to crash as well at > some point. > > I'm a bit out of ideas how to find out what's up with that char-table. > Maybe I'll wait a bit until I have an idea how I could find that out. FWIW, this is also reproducible in scratch/igc by building it without MPS and with ASAN. '../src/emacs' -batch --no-site-file --no-site-lisp --eval "(setq load-pref= er-newer t byte-compile-warnings 'all)" --eval "(setq org--inhibit-version-= check t)" -f batch-byte-compile gnus/spam.el emacs(33650,0x1f4c0f240) malloc: nano zone abandoned due to inability to re= serve vm space. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ERROR: AddressSanitizer: heap-buffer-overflow on address 0x00010408f87c at = pc 0x000100bc9e54 bp 0x00016f8d11b0 sp 0x00016f8d11a8 READ of size 4 at 0x00010408f87c thread T0 #0 0x100bc9e50 in dump_bitset_bit_set_p pdumper.c:5401 #1 0x100bca4ac in pdumper_marked_p_impl pdumper.c:5604 #2 0x100bb6d70 in pdumper_marked_p pdumper.h:239 #3 0x100bb239c in vector_marked_p alloc.c:4436 #4 0x100bb0fec in process_mark_stack alloc.c:7555 #5 0x100baf538 in mark_object alloc.c:7785 #6 0x100bbc0e4 in mark_char_table alloc.c:7234 #7 0x100bb1348 in process_mark_stack alloc.c:7621 #8 0x100baf538 in mark_object alloc.c:7785 #9 0x100bae71c in mark_object_root_visitor alloc.c:6682 #10 0x100bac47c in visit_static_gc_roots alloc.c:6672 #11 0x100bad420 in garbage_collect alloc.c:6895 ... 0x00010408f87c is located 452 bytes after 372408-byte region [0x00010403480= 0,0x00010408f6b8) [1m[0m[1m[35mallocated by thread T0 here:[1m[0m #0 0x1032a0fd0 in calloc+0x9c (libclang_rt.asan_osx_dynamic.dylib:arm64= e+0x54fd0) #1 0x100bcc2b8 in dump_bitsets_init pdumper.c:5376 #2 0x100bcb79c in pdumper_load pdumper.c:6106 #3 0x1009c10b0 in load_pdump emacs.c:980 #4 0x1009bbe50 in main emacs.c:1436 #5 0x19014c270 ()