Skip to content

Prompt parsing crash in split_static_span_by_cwd while recording bug #915

Closed

Description

@RVC2020

I was recording a heredoc bug demo with EVP when Flyline crashed, and I have it on tape!
Image
NOTE: I did not end the recording; it just crashed on its own.

Unlike the previous crashes in the other thread, this one doesn't seem to involve bash internals at all. The crash appears to be inside Flyline's own prompt parsing code, possibly triggered by the unusual terminal state from the heredoc cursor bug.

Looking at the log, it seems to crash while trying to locate the current working directory inside the prompt string - though interestingly, my PS1 doesn't actually contain \w.
heredoc-crash.log

P.S. An option for EVP to --no-loop would be kind of cool. 😁

Activity

  1. HalFrgrd commented on Aug 13, 2026

    @HalFrgrd
    Owner

    Thanks! I like to see evp in use!

    I think this is related to #891, a thread creation / deletion uses the non thread safe allocator.

  2. RVC2020 commented on Aug 13, 2026

    @RVC2020
    Author

    I can see why it looks related to #891, but the main thread (46578) looks different to me. Unlike the previous crashes where the main thread always died in bash internals, this one crashes entirely inside Flyline's own prompt parsing, no bash at all:

    split_static_span_by_cwd -> StrSearcher::new -> crash

    My PS1 doesn't contain \w, I'm not sure why Flyline is searching for the cwd in the prompt string in the first place. Could that function be receiving unexpected input from the heredoc?

    Happy to be wrong, though. Just wanted to flag it in case it's a separate issue.

  3. added a commit that references this issue on Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions