-
-
Notifications
You must be signed in to change notification settings - Fork 747
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
malloc: error pointer being freed was not allocated #1877
Comments
I am unable to reproduce on Ubuntu. Can you please debug further to figure out which pointer is being freed without allocation? |
Can we write directly to |
Please confirm that the fix works. |
Making a syscall for each and every byte seems unnecessary waste of resources to me. IMO be6988d should be reverted since the bug was already fixed. OP was using |
I reproduced this one master (using fastmac) before attempting the fix. As for a syscall overhead, I will add a new version to use dprintf. |
Interesting. I don't know how that's possible. The help string is 1832 bytes and the buffer is 2048 bytes. It has more than enough space.
You'd need to use a |
Please raise the PR. |
Environment details (Put
x
in the checkbox along with the information)-adexoiUH -Te -Pp
export NNN_PLUG='p:preview-tui;o:fzopen;c:fzcd;z:autojump;x:!chmod +x $nnn*;'
nnn
masterExact steps to reproduce the issue
nnn 4.9 installed from brew, after pressing n to enter nnn, directly enter ? for help, then enter q to exit help, and then press q again to exit nnn, and then an exception will occur.
Exception log:
The text was updated successfully, but these errors were encountered: