Title
Finding non-terminating executions in distributed asynchronous programs
Abstract
Programming distributed and reactive asynchronous systems is complex due to the lack of synchronization between concurrently executing tasks, and arbitrary delay of message-based communication. As even simple programming mistakes have the capability to introduce divergent behavior, a key liveness property is eventual quiescence: for any finite number of external stimuli (e.g., client-generated events), only a finite number of internal messages are ever created. In this work we propose a practical three-step reduction-based approach for detecting divergent executions in asynchronous programs. As a first step, we give a code-to-code translation reducing divergence of an asynchronous program P to completed state-reachability--i.e., reachability to a given state with no pending asynchronous tasks--of a polynomially-sized asynchronous program P′. In the second step, we give a code-to-code translation under-approximating completed state-reachability of P′ by state-reachability of a polynomially-sized recursive sequential program P′′(K), for the given analysis parameter K∈ℕ. Following [8]'s delay-bounding approach, P′′(K) encodes a subset of P′'s, and thus of P's, behaviors by limiting scheduling nondeterminism. As K is increased, more possibly divergent behaviors of P are considered, and in the limit as K approaches infinity, our reduction is complete for programs with finite data domains. As the final step we give the resulting state-reachability query to an off-the-shelf SMT-based sequential program verification tool. We demonstrate the feasibility of our approach by implementing a prototype analysis tool called Alive, which detects divergent executions in several hand-coded variations of textbook distributed algorithms. As far as we are aware, our easy-to-implement prototype is the first tool which automatically detects divergence for distributed and reactive asynchronous programs.
Year
DOI
Venue
2012
10.1007/978-3-642-33125-1_29
SAS
Keywords
Field
DocType
polynomially-sized asynchronous program,non-terminating execution,asynchronous program,finite number,asynchronous program p,code-to-code translation,divergent execution,divergent behavior,reactive asynchronous program,asynchronous task,reactive asynchronous system,distributed algorithm,asynchronous system
Asynchronous communication,Synchronization,Concurrency,Computer science,Real-time computing,Theoretical computer science,Reachability,Distributed algorithm,Asynchronous method invocation,Message passing,Liveness
Conference
Volume
ISSN
Citations 
7460
0302-9743
3
PageRank 
References 
Authors
0.41
15
2
Name
Order
Citations
PageRank
Michael Emmi136521.76
Akash Lal253732.12