New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hard crash entering ctrl-^
then .
then enter
into blink>
prompt
#1994
Comments
That's an interesting one. Will take a look at what may be provoking the crash. |
Well I did not really input it intentionally, it just happened ;-). Still would be good if that didn't cause a hard crash |
No worries. I didn't mean to be harsh about this. I hold the same opinion that a crash or freeze should not happen. This crash happens inside ios_system and I can reproduce it in a-shell too. I'm having a hard time getting Address Sanitizer to work inside ios_system, but there is some progress. |
@carloscabanero I have a patch for it. It's very unfortunate that ios_system uses diff --git a/ios_system.m b/ios_system.m
index 21e9eeb..87a498b 100644
--- a/ios_system.m
+++ b/ios_system.m
@@ -2459,6 +2459,7 @@ static char* getLastCharacterOfArgument(const char* argument) {
return NULL;
} else if (argument[0] == recordSeparator) {
char* endquote = strchr(argument + 1, recordSeparator);
+ if (endquote == NULL) return NULL; // be safe
return endquote + 1;
}
// TODO: the last character of the argument could also be '<' or '>' (vim does that, with no space after file name) |
To exit a hanging
mosh
session, one should enterctrl-^ .
On my keyboard that isctrl-shift-6
then.
-- for various reasons I am in the habit of pressingenter
after this, then repeating this 1-2 times (to deal with various lag issues etc.).That lead me to discover that if I am on the
blink>
prompt and do this there (ctrl-^
then.
thenenter
) it crashes Blink hard -- it just is dead, and reopening it afterwards various sessions I had closed magically re-appear (broken). In fact it seems all my connections are broken after this hard crash.Actually I just tried, and just
ctrl-6
followed byenter
(orreturn
) also triggers the crash.This is with v17.2.2.868 on iOS 17.4 on an iPad Pro (11 inch, 3rd gen)
The text was updated successfully, but these errors were encountered: