Looks like my node is also suffering from a third kind of problem that I haven't noticed before... I have in my name_list, some names I've been able to update and some that I've firstupdate'd without problem but now belong to other people (this is the old issue).
The new thing I noticed is, while these erroneous entries stay in the list, some of the names I've successfully updated disappeared between restarts (there were some crashes too). Now, the names carry my values, but I can't update them anymore:
error: {"code":-1,"message":"could not find a coin with this name"}
So, what does it mean? Is there a way I can get back the names? I was really planning to start using one of them right away.
EDIT: I restored a backup from 5 days ago. I could see the names there. I know I shouldn't have, but things were already screwed up, so in the spirit of testing, I tried updating one of the names from there. Successfully updated the name. But the fantastic thing is, when I got back to to my current version of .namecoin directory, I got the name back!? It's not only in name_scan but actually in my name_list. I don't know how this might have happened (so the coin was there but was locked/hidden somehow?). Anyway, I think I'll now try to transfer the money I lost through missed names and see what happens...
EDIT2: I restored all names and saw them in my name_list for a while. After some blocks, I thought it would be safe and tried a restart, and some names vanished again (including one that was there before I tried this "restore from backup" endeavor). Didn't have time to get to transferring the money, so that's not the cause. I think it's the same bug or db corruption. At least I now know that they're not lost because of a namecoind crash.