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#59183: 29.0.50; emacs_abort () at sysdep.c:2313 Date: Thu, 10 Nov 2022 21:40:17 +0200 Message-ID: <834jv6r42m.fsf@gnu.org> References: <87zgcyabck.fsf@no.workgroup> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5453"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59183@debbugs.gnu.org To: Gregor Zattler , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 10 20:41:31 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 1otDQY-0001JH-Ux for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 10 Nov 2022 20:41:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otDQB-0000xj-9u; Thu, 10 Nov 2022 14:41:07 -0500 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 1otDQ7-0000xT-Ik for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2022 14:41:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otDQ6-0002of-KI for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2022 14:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1otDQ5-0001q7-Rd for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2022 14:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Nov 2022 19:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59183 X-GNU-PR-Package: emacs Original-Received: via spool by 59183-submit@debbugs.gnu.org id=B59183.16681092287020 (code B ref 59183); Thu, 10 Nov 2022 19:41:01 +0000 Original-Received: (at 59183) by debbugs.gnu.org; 10 Nov 2022 19:40:28 +0000 Original-Received: from localhost ([127.0.0.1]:44434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otDPX-0001pA-VQ for submit@debbugs.gnu.org; Thu, 10 Nov 2022 14:40:28 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otDPU-0001ou-GN for 59183@debbugs.gnu.org; Thu, 10 Nov 2022 14:40:26 -0500 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 1otDPN-0002g2-P5; Thu, 10 Nov 2022 14:40:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=oj1IFPJExsi92W6uCW4T1PYQhWy3xr4SjTg14NY7tAk=; b=cWG5F5BWQxBc EaZCbM7E06spSV/PbFXUV7A8P6B5nxdi2JWTK0OrFTGfI2TCkwuXZtY1RaTkwtYXyMVWTeBO83/t3 5hBzeL559DIngODnIAnt5Jog5W1QncDjoUSVDx6KSfUwANsWtcxeZNKhpCyXqVx/o6XkQtemHdOpS F0cEEPyFdwJctiZeE9i1uPIR3/bpWb4f8bSym7pe/6aQs36nVGDmuC14LkM+B8ZQcEFGWFN5aJw58 Ad+BeehL7Nx2hRLLJcTw/DvapHB7wtThfSSjOlXxhWFXYi5ZtRkU1wtXx2r7HBq1xfMkE938G55E/ RxCdb3aDuPmyDXkLGmM9nA==; Original-Received: from [87.69.77.57] (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 1otDPM-0006j7-T5; Thu, 10 Nov 2022 14:40:17 -0500 In-Reply-To: <87zgcyabck.fsf@no.workgroup> (message from Gregor Zattler on Thu, 10 Nov 2022 19:55:07 +0100) 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:247543 Archived-At: > From: Gregor Zattler > Date: Thu, 10 Nov 2022 19:55:07 +0100 > > Dear Emacs developers, Emacs aborted, just while selected > some text with the mouse: > > > Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:421 > 421 { > #0 terminate_due_to_signal (sig=6, backtrace_limit=40) at emacs.c:421 > #1 0x000055555579def5 in emacs_abort () at sysdep.c:2313 > #2 0x00005555559324d6 in itree_iterator_start (tree=0x555556e65850, begin=359683, end=592913, order=ITREE_ASCENDING, file=0x5555559eca4f "buffer.c", line=2982) at itree.c:1161 > #3 0x00005555557ae9ef in overlays_in (beg=359683, end=359684, extend=false, vec_ptr=0x7fffffff18c0, len_ptr=0x7fffffff1910, empty=false, trailing=true, next_ptr=0x0) at buffer.c:2982 > #4 0x00005555557aebed in overlays_at (pos=359683, extend=false, vec_ptr=0x7fffffff18c0, len_ptr=0x7fffffff1910, next_ptr=0x0) at buffer.c:3035 > #5 0x0000555555646226 in note_mouse_highlight (f=0x5555590388f0, x=181, y=321) at xdisp.c:35144 > #6 0x000055555570b846 in x_note_mouse_movement (frame=0x5555590388f0, event=0x7fffffff1f20, device=XIL(0x5555563b5cd4)) at xterm.c:14137 > #7 0x000055555571ab35 in handle_one_xevent (dpyinfo=0x55555a326240, event=0x7fffffff2380, finish=0x7fffffff2370, hold_quit=0x7fffffff24a0) at xterm.c:22381 > #8 0x000055555571f577 in XTread_socket (terminal=0x5555572511a0, hold_quit=0x7fffffff24a0) at xterm.c:24551 > #9 0x000055555577d39a in gobble_input () at keyboard.c:7368 > #10 0x000055555577d997 in handle_async_input () at keyboard.c:7599 > #11 0x000055555577d9b6 in process_pending_signals () at keyboard.c:7613 > #12 0x00005555558580cb in probably_quit () at eval.c:1661 > #13 0x000055555586383d in maybe_quit () at lisp.h:3684 > #14 0x000055555586ac7c in Fassq (key=XIL(0x5d00), alist=XIL(0x5555594ef1f3)) at fns.c:1931 > #15 0x000055555590c41d in lookup_char_property (plist=XIL(0x555560375da3), prop=XIL(0x5d00), textprop=false) at intervals.c:1735 > #16 0x00005555557b1dc8 in Foverlay_get (overlay=XIL(0x555560371dcd), prop=XIL(0x5d00)) at buffer.c:3934 > #17 0x0000555555911dc1 in get_char_property_and_overlay (position=make_fixnum(359631), prop=XIL(0x5d00), object=XIL(0x55555e02d465), overlay=0x7fffffff2768) at textprop.c:649 Stefan, I think we must lift the restriction of "only one itree iteration at a time", otherwise we will keep bumping into situations like this one. It isn't hard to imagine other cases where some code wants to look up overlays while some of the callers is in the middle of something similar; handling the mouse-highlight is just one such example. We never had restrictions in Emacs on simultaneous multiple read-only access to overlays, and it makes no sense to introduce such restrictions now. This has to be fixed before Emacs 29.