Open alexey-milovidov opened 1 year ago
@llvm/issue-subscribers-clang-frontend
This problem has haunted me for many years, but I did not have enough confidence to report it.
But the symptom is very clear: every time I save a file during compilation, it crashes.
Unfortunately, this is probably a pretty low priority for us. This will be difficult to reproduce, test and verify we don't regress. Also dealing with this across a variety of file systems will likely not be trivial.
The main work-around here is to not save files while compiling them.
It reproduces with clang-19 (master).
Still relevant - always reproducing.
Maybe duplicate of: https://github.com/llvm/llvm-project/issues/12110
Yes, almost certainly a duplicate. That task didn't mention that it complains about ASCII NUL in the file. I thought that it means probably LLVM opens the file and does mmap and another program opens the file for writing with truncation.
It looks like this:
I noticed it many years ago - I've changed one IDE (KDevelop -> CLion), multiple Clang versions, many development machines, and Ubuntu versions, but the problem remains.
I didn't report this problem earlier because I thought it is not important enough, plus it didn't worth registering in your bug tracker (although I registered on it multiple times). But since you migrated to GitHub (good choice!), submitting bug reports has started to be more accessible to me.