Analyzing the impact of change in multi-threaded programs

  • Authors:
  • Krishnendu Chatterjee;Luca de Alfaro;Vishwanath Raman;César Sánchez

  • Affiliations:
  • Institute of Science and Technology, Vienna, Austria;Computer Science Department, University of California, Santa Cruz;Computer Science Department, University of California, Santa Cruz;IMDEA-Software, Madrid, Spain

  • Venue:
  • FASE'10 Proceedings of the 13th international conference on Fundamental Approaches to Software Engineering
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

We introduce a technique for debugging multi-threaded C programs and analyzing the impact of source code changes, and its implementation in the prototype tool DIRECT. Our approach uses a combination of source code instrumentation and runtime management. The source code along with a test harness is instrumented to monitor Operating System (OS) and user defined function calls. DIRECT tracks all concurrency control primitives and, optionally, data from the program. DIRECT maintains an abstract global state that combines information from every thread, including the sequence of function calls and concurrency primitives executed. The runtime manager can insert delays, provoking thread interleavings that may exhibit bugs that are difficult to reach otherwise. The runtime manager collects an approximation of the reachable state space and uses this approximation to assess the impact of change in a new version of the program.