-
Notifications
You must be signed in to change notification settings - Fork 54
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
More descriptive error traces #202
Comments
I started to look into the first issue so that we use the linked location info in the traces: MO71[16] allocated at main(): %9 = call noalias i8* @malloc(i64 16) #3, !dbg !18 and there is a problem if the instruction is an |
Not a one that is implemented, but there is a way: we may set |
We usually want them in the sliced code. Part of a fix for staticafi/symbiotic#202
We usually want them in the sliced code. Part of a fix for staticafi/symbiotic#202
We usually want them in the sliced code. Part of a fix for staticafi/symbiotic#202
We usually want them in the sliced code. Part of a fix for staticafi/symbiotic#202
We usually want them in the sliced code. Part of a fix for staticafi/symbiotic#202
We usually want them in the sliced code. Part of a fix for staticafi/symbiotic#202
We usually want them in the sliced code. Part of a fix for staticafi/symbiotic#202
We usually want them in the sliced code. Part of a fix for staticafi/symbiotic#202
We usually want them in the sliced code. Part of a fix for staticafi/symbiotic#202
We usually want them in the sliced code. Part of a fix for staticafi/symbiotic#202
The unfinished work for allocation origins in a form of a patch is here: https://gist.github.com/lzaoral/b2d90972e651d14286c10b744b12e912 |
I've following suggestions for rewording of current error traces emitted by
klee
.free
ing stack memory is reported asfree of alloca
which suggests that the memory was explicitly allocated byalloca(3)
which is generally not true. I suggest something likememory error: free of address on stack
if thealloca(3)
wasn't involved.free
ing invalid memory is reported asmemory error: invalid pointer: free
which suggests that there's something wrong with an invalid pointer namedfree
.memory error: invalid pointer passed to free
would be better.memory error: out of bound pointer
-> something likememory error: dereference of out-of-bound pointer
as "just" having a pointer to invalid memory is not generally UB.__VERIFIER_error
could say what was the actual assertion that failed (the integer overflow above is just one example) as the current trace itself is not sufficient:The text was updated successfully, but these errors were encountered: