On Fri, 25 Oct 2019 22:26:32 -0700, Alfred Morgan wrote: > I did a vi -r on a file and then tried to save after my system lost power > and I got a segfault when I tried to save the file. I tried ZZ and :w and > :w blah.txt and it would segfault every time. I couldn't get it to save. > I'm on OpenBSD potato.lan 6.6 GENERIC.MP#372 amd64 and I recently did a > sysupgrade last week.
This happens when the database file vi uses get corrupted, as it can when there is an unclean shutdown. The db functions don't handle corrupted database files well. - todd
