-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Micro crashes with a custom keybind that executes 2 terminal commands #2931
Comments
That's a tricky one, since the actual command, term and pane constellation isn't designed to handle two term commands at the same time so far. But even then it shouldn't crash: The actual buffer splits the commands correctly and performs the first by creating and activating a new tab ( Solving this isn't that simple any longer...at least from my current knowledge about the involved function chains. We could prevent the crash by checking for chained term commands, but this will involve additional checks to validate the user input and trying to workaround the real root cause. I wouldn't prefer that... @zyedidia |
I have a very similar crash with just running the term command normally (ctrl-e, term right after starting micro). My case gets a SIGSEGV and wrecks my terminal (takes several 'reset' commands to make it work again). Can't cut-and-paste the error because of the terminal issue but it starts out: termpanic: runtime error: invalid memory address or null pointer dereference OS is Debian 12 and I am using the static build: Version: 2.0.12 |
My issue my have already been fixed. I just compiled from master and the issue is gone. $ git clone https://github.com/zyedidia/micro.git Version: 2.0.13-dev.8 |
I don't think so, because I reproduced it with the latest HEAD at the master and my code analysis was based on that too. |
Just to be clear, my issue was crashing just from running "term" once. Sorry for the confusion. |
Description of the problem or steps to reproduce
add a keybind that looks like this (any keybind that runs 2
command:term ...
commands should work):When you run the keybind (in this case, pressing
Ctrl-w
), micro crashes with the following output:Specifications
Commit hash: 2.0.11
OS: Debian 12
Terminal: bash
The text was updated successfully, but these errors were encountered: