From: Eli Zaretskii <eliz@gnu.org>
To: Simon Pugnet <simon@polaris64.net>
Cc: 43589@debbugs.gnu.org
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 [thread overview]
Message-ID: <83r1qrtdwz.fsf@gnu.org> (raw)
In-Reply-To: <878scz2v85.fsf@polaris64.net> (message from Simon Pugnet on Thu, 24 Sep 2020 13:51:54 +0100)
> From: Simon Pugnet <simon@polaris64.net>
> 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.)
next prev parent reply other threads:[~2020-09-24 15:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-24 12:51 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 Simon Pugnet
2020-09-24 15:03 ` Eli Zaretskii [this message]
2020-09-24 15:35 ` Simon Pugnet
2020-09-24 16:14 ` Eli Zaretskii
2020-09-24 18:11 ` Unknown
2020-09-24 20:17 ` Simon Pugnet
2020-09-24 22:43 ` Andy Moreton
2020-09-25 8:57 ` Eli Zaretskii
2020-09-25 10:00 ` Simon Pugnet
2020-09-25 11:01 ` Eli Zaretskii
2020-09-24 15:48 ` Simon Pugnet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83r1qrtdwz.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=43589@debbugs.gnu.org \
--cc=simon@polaris64.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).