Two-Phase Dynamic Analysis of Message-Passing Go Programs based on Vector Clocks

Martin Sulzmann, Kai Stadtmueller
7/10/2018
cs.PL

Official code: KaiSta/gopherlyzer-GoScout (7 stars, Go, last commit 2018-04-24).

Abstract

Understanding the run-time behavior of concurrent programs is a challenging task. A popular approach is to establish a happens- before relation via vector clocks.

Show full abstract

Thus, we can identify bugs and per- formance bottlenecks, for example, by checking if two con icting events may happen concurrently. We employ a two-phase method to derive vector clock information for a wide range of concurrency features that includes all of the message-passing features in Go. The rst phase (instrumentation and tracing) yields a run-time trace that records all events related to message-passing concurrency that took place. The second phase (trace replay) is carried out o ine and replays the recorded traces to infer vector clock information. Trace replay operates on thread-local traces. Thus, we can observe behav- ior that might result from some alternative schedule. Our approach is not tied to any speci c language. We have built a prototype for the Go programming language and provide empirical evidence of the usefulness of our method.

View on arXivView PDF

Code Implementations(1)

Trace-Based Run-time Analysis of Message-Passing Go Programs

70Go, BatchfileJul 27, 20178 years ago

Similar Papers

Cite this paper

@article{sulzmann2018twophase,
  title  = {Two-Phase Dynamic Analysis of Message-Passing Go Programs based on Vector Clocks},
  author = {Martin Sulzmann and Kai Stadtmueller},
  year   = {2018},
  eprint = {1807.03585},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1807.03585}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1807.03585.svg)](https://codeofpaper.com/paper/1807.03585)

Discussion