From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Pieter van Oostrum Newsgroups: gmane.emacs.bugs Subject: bug#39962: 27.0.90; Crash in Emacs 27.0.90 Date: Thu, 19 Mar 2020 22:30:03 +0100 Message-ID: References: <24162.58107.725366.668639@cochabamba.vanoostrum.org> <83zhck6obg.fsf@gnu.org> <83r1xv73ze.fsf@gnu.org> <83imj5bdct.fsf@gnu.org> <83zhcff131.fsf@gnu.org> <2b2fc990-2917-7970-d88b-7708dbaa48be@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="86865"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (darwin) Cc: Robert Pluim , Paul Eggert , 39962@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 19 22:32:44 2020 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 1jF2mR-000MSV-Q1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Mar 2020 22:32:43 +0100 Original-Received: from localhost ([::1]:43432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jF2mQ-0007G9-Sx for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Mar 2020 17:32:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50797) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jF2ks-0006DE-DT for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2020 17:31:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jF2kr-0002US-0Q for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2020 17:31:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37712) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jF2kn-0002T1-Sr for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2020 17:31:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jF2kn-0004TZ-Op for bug-gnu-emacs@gnu.org; Thu, 19 Mar 2020 17:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pieter van Oostrum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Mar 2020 21:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39962 X-GNU-PR-Package: emacs Original-Received: via spool by 39962-submit@debbugs.gnu.org id=B39962.158465341417150 (code B ref 39962); Thu, 19 Mar 2020 21:31:01 +0000 Original-Received: (at 39962) by debbugs.gnu.org; 19 Mar 2020 21:30:14 +0000 Original-Received: from localhost ([127.0.0.1]:43685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jF2k2-0004SX-01 for submit@debbugs.gnu.org; Thu, 19 Mar 2020 17:30:14 -0400 Original-Received: from smarthost-b.hosting2go.nl ([185.135.240.51]:60386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jF2jz-0004RG-KK for 39962@debbugs.gnu.org; Thu, 19 Mar 2020 17:30:12 -0400 X-ASG-Debug-ID: 1584653405-0a9db454e627ca0001-PyL51Z Original-Received: from server24.hosting2go.nl (server24.hosting2go.nl [185.135.241.24]) by smarthost-b.hosting2go.nl with ESMTP id pBnD0TTqPxWg0BBm (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <39962@debbugs.gnu.org>; Thu, 19 Mar 2020 22:30:05 +0100 (CET) X-Barracuda-Envelope-From: pieter-l@vanoostrum.org X-Barracuda-Effective-Source-IP: server24.hosting2go.nl[185.135.241.24] X-Barracuda-Apparent-Source-IP: 185.135.241.24 Original-Received: (qmail 31737 invoked from network); 19 Mar 2020 21:30:05 -0000 Original-Received: from static-145.132.212.31.ip.telfort.nl (HELO cochabamba.vanoostrum.org) (145.132.212.31) by server24.hosting2go.nl with SMTP; 19 Mar 2020 21:30:05 -0000 Received-SPF: unknown (server24.hosting2go.nl: domain at 83.137.194.9 does not designate permitted sender hosts) Original-Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 4663BABEB344; Thu, 19 Mar 2020 22:30:04 +0100 (CET) X-ASG-Orig-Subj: Re: bug#39962: 27.0.90; Crash in Emacs 27.0.90 In-Reply-To: (Pip Cet's message of "Thu, 19 Mar 2020 19:31:44 +0000") X-Barracuda-Connect: server24.hosting2go.nl[185.135.241.24] X-Barracuda-Start-Time: 1584653405 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://185.135.240.51:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hosting2go.nl X-Barracuda-Scan-Msg-Size: 2189 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests=BSF_SC0_MISMATCH_TO B-X-Hosting2GO-Smarthost: Clean X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.80712 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" Xref: news.gmane.io gmane.emacs.bugs:177551 Archived-At: Pip Cet writes: > On Thu, Mar 19, 2020 at 7:17 PM Pieter van Oostrum > wrote: >> I had my keyboard macro translated to an Elisp function and then >> called this a 100 times with dotimes. However, there was no crash, >> even though I had the smaller stack size. >> >> In total I had the macro run some 300+ times without any crash. I just >> had it run automatically (put it in a .el file, and used emacs -Q -l >> testfile.el), so no keyboard/mouse interaction. > > Did you use emacs -Q to produce the original crash, or just emacs? I > ask because it's possible something in your mode line specification > caused or exacerbated the problem. The original crash was without -Q, i.e. my normal production Emacs. I have quite an elaborate init.el file, so it could be almost anything. With the test described above, I used -Q -l testfile.el I also redid that test with most of my init.el copied into the test,el, and that still did not cause a crash. >> > If I'm right, it should be possible to trigger the bug by creating a >> > reasonably large session, running (garbage-collect) in an infinite >> > loop, and interacting with the mouse and keyboard while that is >> > happening. Or running your keyboard macro in a similar loop, of >> > course. >> >> But if I do it in a loop it will not react to the keyboard/mouse. Do >> you think the asynchronous processing of these events will be >> sufficient, even though no action is taken on these events? > > I think so, but I'm not sure. I've been looking at this code for a > while, and I think the likeliest culprit is the mouse-over > highlighting code, possibly for the mode line. On GNU/Linux, the > behavior is quite odd: for the first second or so after starting a > loop, the mode line elements react to mouseover events, but not > afterwards. On the other hand, a millisecond delay ought to be enough > to catch it during the first second. > OK, with the next test I will try to trigger that. Right now I am compiling with the new 0001-more-debugging.patch. -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4]