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#43589: 27.1.50; Crash in Org mode buffer when moving point after using outline-hide-other when visual-line-mode and visual line numbers are enabled Date: Thu, 24 Sep 2020 18:03:40 +0300 Message-ID: <83r1qrtdwz.fsf@gnu.org> References: <878scz2v85.fsf@polaris64.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3743"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43589@debbugs.gnu.org To: Simon Pugnet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 24 17:10:11 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 1kLSst-0000qy-5d for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Sep 2020 17:10:11 +0200 Original-Received: from localhost ([::1]:33778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLSss-0002Xm-72 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 24 Sep 2020 11:10:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLSmx-00061a-4D for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 11:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57929) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLSmw-0001CC-9g for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 11:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLSmw-00056d-6Q for bug-gnu-emacs@gnu.org; Thu, 24 Sep 2020 11:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Sep 2020 15:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43589 X-GNU-PR-Package: emacs Original-Received: via spool by 43589-submit@debbugs.gnu.org id=B43589.160095982819591 (code B ref 43589); Thu, 24 Sep 2020 15:04:02 +0000 Original-Received: (at 43589) by debbugs.gnu.org; 24 Sep 2020 15:03:48 +0000 Original-Received: from localhost ([127.0.0.1]:41240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLSmh-00055v-UB for submit@debbugs.gnu.org; Thu, 24 Sep 2020 11:03:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLSmd-00055Y-W3 for 43589@debbugs.gnu.org; Thu, 24 Sep 2020 11:03:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34522) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLSmW-00015V-2P; Thu, 24 Sep 2020 11:03:38 -0400 Original-Received: from [176.228.60.248] (port=4174 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kLSmR-0002Rz-RK; Thu, 24 Sep 2020 11:03:34 -0400 In-Reply-To: <878scz2v85.fsf@polaris64.net> (message from Simon Pugnet on Thu, 24 Sep 2020 13:51:54 +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" Xref: news.gmane.io gmane.emacs.bugs:188867 Archived-At: > From: Simon Pugnet > Date: Thu, 24 Sep 2020 13:51:54 +0100 > > 1. Launch ~emacs -Q~ > 2. Enable "visual" line numbers (~(setq display-line-numbers-type > 'visual)~) > 3. Create an Org mode buffer with the following content: - > * Heading 1 > ** Heading 1a > ** Heading 1b > 4. Enable ~display-line-numbers-mode~ > 5. Enable ~visual-line-mode~ > 6. Move the point anywhere on the line with "Heading 1b" > 7. Call ~outline-hide-other~ > 8. Call ~previous-line~ (via keybinding or directly) > > Emacs then crashes with SIGSEGV. I couldn't reproduce this on my system. > Debugging emacs in GDB while doing this seems to show a loop as > follows: - > > Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. > 0x00005555555d1b39 in move_it_in_display_line_to > (it=it@entry=0x7fffff6734e0, to_charpos=to_charpos@entry=171, > to_x=to_x@entry=-1, op=op@entry=MOVE_TO_POS) at xdisp.c:9009 > 9009 { This sounds like infinite recursion that causes stack overflow. Not sure why it happens in your case but not in mine. Are you trying this on a GUI frame or a TTY frame? (I tried both, but couldn't reproduce on either.)