-
Notifications
You must be signed in to change notification settings - Fork 27
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
invalid continuation byte during reduction #167
Comments
Did cvise generate a folder containing information related to the bug? |
No. I did see such directories when I left cvise running and put the laptop to sleep (which generated timeouts when awaken, and those did create I can still progress though, so the reduction takes less time and they are arriving more frequently now. Is there a way to fix a random seed to obtain a completely deterministic process? I just compiled the master branch of cvise and tried using it instead ( The code (both the tool used by my reduction script and the analyzed code) are both open source, but installing them is non-trivial. I can try to produce a Dockerfile so it can be reproduced by others. Or I can try to add some debugging flags and see if I can provide you more details directly. By the way, here's the message I had with the latest crash, which is slightly different from the 2.9 version:
|
By the way, I just noticed, the very likely cause for this, are non-ASCII characters present in C comments, namely ℤ, ∀, ≡, ∧, ⇒, etc. ℤ in particular is composed of bytes 0xe2 0x84 0xa4. So I think that cvise is splitting the comments in a way that is breaking these characters. Here's an example of a comment present in the code I'm reducing: /*@ axiomatic MemCmp {
logic ℤ memcmp{L1, L2}
(char *s1, char *s2, ℤ n) reads \at(*(s1 + (0 .. n - 1)),L1), \at(*(s2 + (0 .. n - 1)),L2);
}
*/ |
I managed to get a similar (not entirely identical, but possibly related) issue with the following command:
And the following files: In
In
The main difference is that, while I do have Python error messages related to UnicodeDecodeError, cvise keeps running, while in my original case the process stopped due to an AssertionError. |
While trying to reduce a C file, I'm periodically getting some crashes, such as:
I'm using the Fedora 40 package (
cvise 2.9.0 (cc76e98d)
). Would it be useful to update to the latest release here from Github before retrying and seeing if they still occur?They're fairly infrequent (about once every 30 minutes), so I'm not entirely sure how to quickly reproduce them. But if the issue is not already known and/or fixed, I'll try getting more data about it.
The text was updated successfully, but these errors were encountered: