Skip to content

Emacs hangs with some content #406

@DougHaber

Description

@DougHaber

Expected Behavior

In this case, the expected behavior is to not cause Emacs to hang and not use 100% of the CPU.

Actual Behavior

When adding a certain type of content into a markdown document, Emacs hangs and uses 100% of the CPU. I did attempt to wait it out, but after a few minutes it was still hung. Emacs needed to be SIGTERM'd.

Steps to Reproduce

  1. Create a test.md file with this single line in it:

    --tag-specifications ResourceType=string,Tags=[{Key=foo,Value=bar}, {Key=foo,Value=bar},{Key=foo,Value=bar},{Key=foo,Value=bar},{Key=foo,Value=bar},{Key=foo,Value=bar}]

    (Note, the behavior is the same regardless of whether that line is in a markdown code block.
    When I originally encountered this, it was.)

  2. Open the test.md file:

    emacs -Q --load markdown-mode.el test.md

Software Versions

  • Markdown Mode: markdown-mode, version 2.3
  • Emacs: GNU Emacs 24.5.1 (x86_64-pc-linux-gnu) of 2017-09-12 on hullmann, modified by Debian
  • OS: tried Debian Stretch and macOS Mojave with same results

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions