From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59183: 29.0.50; emacs_abort () at sysdep.c:2313 Date: Sat, 12 Nov 2022 21:26:14 +0800 Message-ID: <87bkpcmhhl.fsf@yahoo.com> References: <87zgcyabck.fsf@no.workgroup> <834jv6r42m.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10387"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gregor Zattler , Stefan Monnier , 59183@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 12 14:27:27 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 1otqXf-0002Ws-22 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Nov 2022 14:27:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otqXR-0004GR-EU; Sat, 12 Nov 2022 08:27:13 -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 1otqXI-0004FX-4E for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 08:27:05 -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 1otqXG-0000x5-ER for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 08:27:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1otqXG-00081L-A1 for bug-gnu-emacs@gnu.org; Sat, 12 Nov 2022 08:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Nov 2022 13:27:02 +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.166825959630797 (code B ref 59183); Sat, 12 Nov 2022 13:27:02 +0000 Original-Received: (at 59183) by debbugs.gnu.org; 12 Nov 2022 13:26:36 +0000 Original-Received: from localhost ([127.0.0.1]:47527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otqWq-00080f-AL for submit@debbugs.gnu.org; Sat, 12 Nov 2022 08:26:36 -0500 Original-Received: from sonic315-20.consmr.mail.ne1.yahoo.com ([66.163.190.146]:37814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otqWl-00080N-7h for 59183@debbugs.gnu.org; Sat, 12 Nov 2022 08:26:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668259585; bh=azLgxWZlw/uXLBvUYHjNc0xUYO+RKzc6oqjFRROSyrM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=VSJ3smVAGVvBnSnp77twdnC4FrJEs9RiGlAd4uXGq0aLByL7UZgSZ6PFUJoFcmPoiUpA0KWpjJ9Q/ZHthgD5dL3gm7h4SgonxuJ5QK3FwCkKwpxzri4xiKashagj5SWaufDlOUGdkG/QLQa6Wpahx372cHy2eeEPsCRutkaWgKsYfth6S3TFX06bfVdzqTfAJHFXv8OYTnujIatWAAemZpJJ+9WJKahDAXy+xCKTPyL9vN+eKsysAG7nnPvMv31yQNOU7UkQuZx5y8oQZj/Skjp17qyONhniHIz0njOlSf0+2riMwHd9RS1Vdw1e7ZYwKXRv2EhLji9Y42UcQyyY5A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1668259585; bh=Ax8xnpdZ9+waET+Ozfz7GuMdJ2qF+vzHXcQE4sq1if2=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=IeygMdSyqiAJjOudc+G4av7/J8+sxNuiw3+xuoxGqgG7bN/nQyIEb2a3+I4SzT0UBZ1velmLbrhRp7AePnjbJYOQ1s2ZqSPJBJYU+QQQxVGcaW4tfe+oOaDxeeuaCb+m2w/I418a/G7MHl26YO5UoZwaThxtCiErUIQB+tqzYdR6wTUqSPPqgV9xGRLQIkDObbLpq4ou9WyaaOXwuVjtJE31lHtTr+YQI94Xuexy5EXYSJHreh8p8URpE/EUkIn4AsYesg8DELG0eTeutHHkkio5DgwH1MiLfLAq5U/Pdph1OOAoP3sc59vB858JtfmWZsNtJLDuKx/t9AXMV2wrvw== X-YMail-OSG: sXRc93AVM1m0aqxsnh8vevP8XRZuX0VSVPIXsY65eJg0lzf6P4ywS47y9A4xMp. UKpg9WUW3aaQHTlt5hQhw4ozN_HA9c.ziWtKNtsVgTat3.mDKLkc79F6yazJPxVdiT8eD0OXYQFr cTi6GK6ZuIhTB_VDFesVwov.Akdu0dl6eyjh2eAAtm9aDrCaHsF1sW4iFGtqUaoYdjt33NnpZjAG ebz04ehHKh7L8h4.qJvvn.v.CybRs2V99InqPYX2e2d4sGBa_MP18jOts4tMgPr5ilgArWZSIteB .Xtv2GcduHb4CtBejeRIJcY.QFlr0PzXFFVXtdxgqDwbrjhXApIF0Bj3Iz1slQG7V2Cs.yXprV8J lS_nDuPF2QJgOjK6b0rK1Dz_IYINQos9eMGRr31VW8aMQ7d2WVKf1YfMnyCGRjilNYKXQG2gFprD oBozyswK4QvluGNeDkQWTC21iGbWDKexqN.23Ov8tIf736uaizbyaA56bYj7y9ZP3JxLBDrjODva aka3U3Vig7mEHfweeoYw_lcABd7vb._M.GXkx.7.507TPnYIMd6Zo0itPD_G2WYZnvvMaXkcAeWz SQgyU9GqC0Pb6cUQGvEwSmaZ3OZoUSWGPEdvGjLx46V.1C4Jb7bVg6Q2lZ_1xb489VcsV9iG9lMZ N65d0SL5FlNOaGtL_3H7AbjZmeNsdA90TXL1IAo1U2yZ7Jo1IBaLVCObPJS5gIU7nMLy25qhSRkr XndY0Wz6SgANQiEg1LM99.ZXx0vIcxtckLnfnDgCQSC4Zb457T.oFb9HUSnPwHQ_cmTUKm2pycmK kFoJ7CfImZRouIp.EQtIfqrgi7g4v5XgRwqWAb0DGf X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Sat, 12 Nov 2022 13:26:25 +0000 Original-Received: by hermes--production-sg3-6c8895b545-xbfp8 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID f71fd87675e58e18e1add58408a28635; Sat, 12 Nov 2022 13:26:20 +0000 (UTC) In-Reply-To: <834jv6r42m.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 10 Nov 2022 21:40:17 +0200") X-Mailer: WebService/1.1.20826 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:247663 Archived-At: Eli Zaretskii writes: >> #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. +1. I just hit this bug as well. Would someone please sum up why itree iteration is not reentrant right now? TIA.