NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Starc: static analysis for efficient repair of complex data

Bassem Elkarablieh, Sarfraz Khurshid, Duy Vu, Kathryn S. McKinleyOopsla 2007

TL;DR

This paper introduces STARC, a novel framework that uses static analysis to significantly improve the efficiency and scalability of automatically repairing complex data structures. By identifying "recurrent fields" and local constraints, STARC guides a search-based repair process, enabling it to fix structures orders of magnitude larger than previous methods.

What Problem Does This Paper Address?

Software systems are increasingly complex, and data structure corruption bugs can severely impact reliability. While constraint-based repair techniques exist to fix these issues, they have been limited to relatively small data structures (hundreds of nodes) due to their computational cost. This paper addresses the challenge of scaling data structure repair to handle much larger, more complex structures (tens of thousands of nodes) that are common in deployed systems, where downtime is unacceptable.

Methods

STARC builds upon existing assertion-based repair techniques by incorporating a static analysis phase. This analysis identifies two key characteristics of the data structure and its integrity constraints (expressed as a Java predicate method):

  • Recurrent Fields: Fields that are primarily used to traverse the data structure.
  • Local Field Constraints: Relationships between an object's field and its neighbors.

This static analysis information is then used to guide the dynamic repair process. STARC employs a systematic search to mutate object fields to satisfy the integrity constraints. The static analysis prioritizes repair actions, focusing on recurrent fields first and leveraging local constraints to prune the search space more effectively. For primitive data constraints, STARC integrates symbolic execution and a dedicated constraint solver.

Datasets

The paper evaluates STARC on a variety of subject data structures, including:

  • Singly linked list
  • Sorted linked list
  • N-ary tree
  • Binary search tree
  • Doubly linked list
  • Disjoint sets
  • AVL tree
  • Red-black tree
  • Fibonacci heap
  • Software cache

These subjects vary in the complexity of their structural and data constraints. The authors generated faulty structures by injecting faults into valid structures.

Key Insights and Ideas

  • Static Analysis as a Scalability Enabler: The core insight is that static analysis can dramatically improve the efficiency of search-based repair. By understanding the structure's traversal patterns (recurrent fields) and inter-field relationships, STARC can make more informed repair decisions.
  • Prioritizing Repair Actions: Focusing repair efforts on recurrent fields first, and then on non-recurrent fields, is a key strategy. This aligns with how data structures are typically traversed and manipulated.
  • Efficient Constraint Solving: Integrating a dedicated constraint solver for primitive data types, rather than relying solely on general-purpose theorem provers, provides a significant performance boost, especially for larger structures.
  • Repairing Structures vs. Data: STARC can be configured to repair only structural integrity violations or to also address data value constraints, offering flexibility to users.

Key Results

STARC demonstrates a significant improvement in repair performance and scalability compared to prior work (specifically, the Juzi tool).

  • Scalability: STARC can repair data structures with tens of thousands of nodes, up to 100 times larger than what previous methods could handle.
  • Efficiency: For a doubly linked list with 100,000 nodes and 10 faults, STARC repaired it in less than a minute, while Juzi was unable to complete the repair within a 10-minute threshold.
  • Reduced Repair Actions: STARC often requires significantly fewer repair actions (mutations) to fix a structure. For instance, in one doubly linked list example, STARC took 9 actions compared to Juzi's 21,656 actions.
  • Performance Gains: The use of a dedicated constraint solver for primitive data provided up to an order of magnitude improvement.

Limitations and Future Work

  • Constraint Specification: The current approach requires users to manually write predicate methods (e.g., repok) to describe integrity constraints. This can be error-prone for complex structures. The authors suggest using constraint synthesis tools like Daikon or their own Deryaft tool to aid in this process.
  • Triggering Repair: The paper discusses the open question of when to trigger the repair routine. While exceptions can be used, it's not always feasible. Periodic checks or JVM integration are suggested as future directions.
  • Stateful vs. Stateless Search: The current stateless search is efficient for smaller structures but less so for very large ones. Exploring stateful search (similar to JPF) or hybrid approaches could be beneficial.
  • Completeness: While STARC's repair algorithm is complete (guaranteed to find a solution if one exists), the efficiency gains come from prioritizing search paths, not from skipping valid ones.
  • User Intervention for Complex Constraints: For highly complex constraints, user intervention might still be required to select the appropriate solving algorithm.

Summary updated

BibTeX
@inproceedings{elkarablieh2007starc,
  author = {Bassem Elkarablieh and Sarfraz Khurshid and Duy Vu and Kathryn S. McKinley},
  title = {{Starc: static analysis for efficient repair of complex data}},
  booktitle = {Oopsla},
  year = {2007},
  doi = {10.1145/1297027.1297056},
}

Loading related content...

Figure