-
Notifications
You must be signed in to change notification settings - Fork 88
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
Segmentation fault when files are deleted #404
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(Reposting report that was submitted via email.)
I have experienced a 'Segmentation fault' in less 633 when 3 or more of the files being viewed are deleted by other process and I try to view one of the deleted files with the command ':p'. For example:
less foo a b c
:n (shows a)
:n (shows b)
:n (shows c)
(here somebody else deletes files a, b, and c)
:p (b: No such file or directory (press RETURN))
(I press RETURN)
:p (c: No such file or directory (press RETURN))
(I press RETURN)
:p (a: No such file or directory (press RETURN))
(I press RETURN)
Segmentation fault
I attach a valgrind log. It seems that del_ifile (ifile.c:146) does not remove all the references to the IFILE it frees, and some stale pointer is used later to access and free again the same IFILE. The next and prev pointers saved in reedit_ifile (edit.c:872) might be the cause, I'm not sure.
The text was updated successfully, but these errors were encountered: