A Concurrency-Agnostic Protocol for Multi-Paradigm Concurrent Debugging Tools

Stefan Marr, Carmen Torres Lopez, Dominik Aumayr, Elisa Gonzalez Boix, Hanspeter Mössenböck
6/1/2017
14 citations
cs.PL

Official code: smarr/SOMns (70 stars, Java, MIT, last commit 2025-02-22).

Abstract

Today's complex software systems combine high-level concurrency models. Each model is used to solve a specific set of problems.

Show full abstract

Unfortunately, debuggers support only the low-level notions of threads and shared memory, forcing developers to reason about these notions instead of the high-level concurrency models they chose. This paper proposes a concurrency-agnostic debugger protocol that decouples the debugger from the concurrency models employed by the target application. As a result, the underlying language runtime can define custom breakpoints, stepping operations, and execution events for each concurrency model it supports, and a debugger can expose them without having to be specifically adapted. We evaluated the generality of the protocol by applying it to SOMns, a Newspeak implementation, which supports a diversity of concurrency models including communicating sequential processes, communicating event loops, threads and locks, fork/join parallelism, and software transactional memory. We implemented 21 breakpoints and 20 stepping operations for these concurrency models. For none of these, the debugger needed to be changed. Furthermore, we visualize all concurrent interactions independently of a specific concurrency model. To show that tooling for a specific concurrency model is possible, we visualize actor turns and message sends separately.

View on arXivView PDF

Code Implementations(1)

smarr/SOMnsOfficial100%
MIT

SOMns: A Newspeak for Concurrency Research

7032Java, TypeScriptMay 12, 20151 years agoMIT
actorsconcurrencycspdebugginginterpreter+8 more

Similar Papers

Cite this paper

@article{marr2017concurrencyagnostic,
  title  = {A Concurrency-Agnostic Protocol for Multi-Paradigm Concurrent Debugging Tools},
  author = {Stefan Marr and Carmen Torres Lopez and Dominik Aumayr and Elisa Gonzalez Boix and Hanspeter Mössenböck},
  year   = {2017},
  eprint = {1706.00363},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1706.00363}
}

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/1706.00363.svg)](https://codeofpaper.com/paper/1706.00363)

Discussion