You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prompt parsing crash in split_static_span_by_cwd while recording bug #915
I was recording a heredoc bug demo with EVP when Flyline crashed, and I have it on tape!
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. 😁
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:
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.
Activity
HalFrgrd commentedon Aug 13, 2026
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.
RVC2020 commentedon Aug 13, 2026
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.
Safe threads only (#918)