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#61940: 29.0.60; Occasional crash when moving point continously with visual line numbers Date: Fri, 03 Mar 2023 18:32:03 +0200 Message-ID: <83ttz1bxto.fsf@gnu.org> References: <87y1odbzgj.fsf@polaris64.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21773"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61940@debbugs.gnu.org To: Simon Pugnet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 03 17:33:17 2023 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 1pY8LM-0005Tn-K0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Mar 2023 17:33:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pY8LA-0008W1-Je; Fri, 03 Mar 2023 11:33:05 -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 1pY8L8-0008Va-Lg for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 11:33:02 -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 1pY8L8-0005JJ-DS for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 11:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pY8L7-0005DY-VT for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 11:33: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: Fri, 03 Mar 2023 16:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61940 X-GNU-PR-Package: emacs Original-Received: via spool by 61940-submit@debbugs.gnu.org id=B61940.167786114720001 (code B ref 61940); Fri, 03 Mar 2023 16:33:01 +0000 Original-Received: (at 61940) by debbugs.gnu.org; 3 Mar 2023 16:32:27 +0000 Original-Received: from localhost ([127.0.0.1]:33800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY8KY-0005CW-U2 for submit@debbugs.gnu.org; Fri, 03 Mar 2023 11:32:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY8KX-0005CJ-4r for 61940@debbugs.gnu.org; Fri, 03 Mar 2023 11:32: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 1pY8KR-0004vR-3J; Fri, 03 Mar 2023 11:32:19 -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=qB6tHZkSYJCxugo6UwnJqui+jhhyTdPAao/l6M79I5c=; b=eeOYw0EyYpzE WnaOq+nojQgJWeQ4hglrG2y7zh+hqRiFDhAmaskS5Jc6R95IhjNDjEGZIohw2az4c+aVKgr/vBM48 cjfjek0Uo9uRnFih5n/aTfq3oC5w/5NJ6C5ca/DH8tNx75GubjysC/aqTHV28HV3buhTs94Cwm4RN lBqokW0RvCY9Bpm3See02/sIJLeOhTSn1l12MkvPUYNgFcS+1O/95RIhd/UB21o9zM/P58WhppzuP GJ0Lw5RyB9dBlK05hsgDb9avOD3MyljyE7P/BxiR7IShOiHWKTXN5RzuFne3/iCKE9yol+jInUKl/ 4ZtIb8AQwmF8bSeRdOrjmQ==; 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 1pY8KQ-0007jy-4h; Fri, 03 Mar 2023 11:32:18 -0500 In-Reply-To: <87y1odbzgj.fsf@polaris64.net> (message from Simon Pugnet on Fri, 03 Mar 2023 13:08:42 +0000 (2 hours, 47 minutes, 40 seconds ago)) 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:257222 Archived-At: > Resent-To: bug-gnu-emacs@gnu.org > From: Simon Pugnet > Date: Fri, 03 Mar 2023 13:08:42 +0000 (2 hours, 47 minutes, 40 seconds ago) > > I've recently (within the last week) noticed that Emacs will crash > when I'm scrolling, specifically when scrolling through a fairly large > PHP source file using either `php-mode' or `web-mode'. I'm not sure > however if this is related to those modes or not. > > By "scrolling" I mean holding down a key to move the point up or down. > I am using Evil so this is done by holding "j" or "k". > > I'm aware that this isn't very helpful for reproducing the problem > considering that I have so many packages loaded. I've yet to be able > to reproduce this with a simpler configuration, but I'll be sure to > send an update if I do. I am having trouble narrowing down the > packages to find a culprit, but it could also be that my loaded > packages exacerbate the core issue enough to cause a crash. > > In addition to this I recently noticed that key presses would > occasionally become out of order. I would start typing something like > "hello world" and I'd notice Emacs pause briefly, then I'd see > something like "llohe world". This was particularly evident when using > Evil as normal state commands like "i" (insert state) would come out > of order, meaning that "ihello" (insert, enter "hello") might become > "lloihe" (move right, move right, new line below and enter insert, > enter "ihe"). I'm not sure if this is related to the crashing bug but > it also started happening at the same time. > > The reason that I think it has something to do with visual line > numbers is that the backtrace (below) seems to be within > `display_count_lines_visually'. Also, I've changed the line numbering > mode to relative and I haven't experienced the crash since (although > it's still early days). > > I got the following backtrace when attaching to a running instance of > Emacs which crashed. I'm not sure I understand what you mean by "attaching to a running instance of Emacs which crashed". If Emacs crashed, then it no longer is running, so what exactly happens when Emacs "crashes", and how do you attach GDB to such a "crashed" session? > Continuing from this point seems to return to `XIfEvent' which then > ends up back in `poll' (a loop). This backtrace just says Emacs is reading input, and that you have an X input method enabled. I'm not sure it tells us anything about the crash itself. Please run Emacs under GDB to begin with, and then try to reproduce the crash. When it does crash, please type at the GDB prompt: thread apply all bt and post here the output. Let me know if you need more detailed instructions for doing the above, or if something is unclear. Thanks.