I then compiled it with all optimizations off, and stepped through it with GDB. I was able to debug this issue by writing a C program that ran PRAGMA integrity_check on my DB. When you write to a closed file descriptor, you’re playing Russian Roulette with the files you currently have open, and there’s a chance you’ll write unspecified data to an unspecified place in your SQLite DB, instead of writing to the file you wanted to write to. The root cause of the corruption was that unrelated code in HHVM was sometimes writing to a closed file descriptor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |