Where academic tradition
meets the exciting future

Modular Verification of Finite Blocking in Non-terminating Programs

Pontus Boström, Peter Müller, Modular Verification of Finite Blocking in Non-terminating Programs. In: John Boyland (Ed.), 29th European Conference on Object-Oriented Programming (ECOOP 2015), LIPICS 37, 639–663, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, 2015.

http://dx.doi.org/10.4230/LIPIcs.ECOOP.2015.639

Abstract:

Most multi-threaded programs synchronize threads via blocking operations such as acquiring locks or joining other threads. An important correctness property of such programs is for each thread to make progress, that is, not to be blocked forever. For programs in which all threads terminate, progress essentially follows from deadlock freedom. However, for the common case that a program contains non-terminating threads such as servers or actors, deadlock freedom is not sufficient. For instance, a thread may be blocked forever by a non-terminating thread if it attempts to join that thread or to acquire a lock held by that thread.
In this paper, we present a verification technique for finite blocking in non-terminating programs. The key idea is to track explicitly whether a thread has an obligation to perform an operation that unblocks another thread, for instance, an obligation to release a lock or to terminate. Each obligation is associated with a measure to ensure that it is fulfilled within finitely many steps. Obligations may be used in specifications, which makes verification modular. We formalize our technique via an encoding into Boogie, which treats different kinds of obligations uniformly. It subsumes termination checking as a special case.

BibTeX entry:

@INPROCEEDINGS{inpBoMx15a,
  title = {Modular Verification of Finite Blocking in Non-terminating Programs},
  booktitle = {29th European Conference on Object-Oriented Programming (ECOOP 2015)},
  author = {Boström, Pontus and Müller, Peter},
  volume = {37},
  series = {LIPICS},
  editor = {Boyland, John},
  publisher = {Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing},
  pages = {639–663},
  year = {2015},
  keywords = {Program verification, concurrency, liveness, progress, obligations},
  ISSN = {1868-8969},
}

Belongs to TUCS Research Unit(s): Distributed Systems Laboratory (DS Lab)

Publication Forum rating of this publication: level 1

Edit publication