sv-benchmarks icon indicating copy to clipboard operation
sv-benchmarks copied to clipboard

Potential issue with munmap model in busy box

Open zvonimir opened this issue 8 years ago • 4 comments

Here is the current model:

int munmap(void *addr, size_t length)
{
  if(__VERIFIER_nondet_int())
    return -1;
  (void)length;
  free(addr);
  return 0;
}

It might nondeterministally not free memory, which causes memory leaks in at least cat_true-no-overflow_true-valid-memsafety.i. Now, if the model is correct, than cat_true-no-overflow_true-valid-memsafety.i should be relabeled since it contains a memory leak.

zvonimir avatar Jan 07 '17 22:01 zvonimir

What do you think @tautschnig?

zvonimir avatar Jan 07 '17 22:01 zvonimir

You are of course right that this approach has introduced possible memory leaks. Would you suggest to make the munmap model less general, or should we rather relabel the benchmark?

tautschnig avatar Jan 08 '17 08:01 tautschnig

Given that the deadline has passed, I am of the opinion that all benchmarks with open issues should be moved into the todo folder and discussed after the competition. Otherwise, after reading the specification for munmap, your model makes sense to me, and I think that this benchmarks should be relabeled.

zvonimir avatar Jan 08 '17 15:01 zvonimir

Hi @zvonimir , could you please identify all falsely labeled benchmarks due to the munmap model in /c/busybox-1.22.0-todo so that they can be returned to the competition?

ondrik avatar Oct 06 '17 07:10 ondrik