Skip to main content
QUICK REVIEW

[Paper Review] Harvesting Fix Hints in the History of Bugs

Tegawendé F. Bissyandé|arXiv (Cornell University)|Jul 21, 2015
Hemiptera Insect StudiesAgricultural and Biological Sciences20 references7 citations
TL;DR

This paper proposes RECOMMEND, a fix recommendation system that leverages historical bug reports and their fixes to suggest actionable fix hints for new bugs. By combining information retrieval, bug linking, and semantic patch inference, it achieves 83% precision and 74% recall in classifying bug reports using SVM with LDA topics, demonstrating feasibility for accelerating software debugging.

ABSTRACT

In software development, fixing bugs is an important task that is time consuming and cost-sensitive. While many approaches have been proposed to automatically detect and patch software code, the strategies are limited to a set of identified bugs that were thoroughly studied to define their properties. They thus manage to cover a niche of faults such as infinite loops. We build on the assumption that bugs, and the associated user bug reports, are repetitive and propose a new approach of fix recommendations based on the history of bugs and their associated fixes. In our approach, once a bug is reported, it is automatically compared to all previously fixed bugs using information retrieval techniques and machine learning classification. Based on this comparison, we recommend top-{\em k} fix actions, identified from past fix examples, that may be suitable as hints for software developers to address the new bug.

Motivation & Objective

  • To reduce time-to-fix and improve software maintenance by recommending actionable fix hints based on past bug fixes.
  • To address the challenge of high developer workload in triaging and fixing thousands of reported bugs annually.
  • To improve fix rate by reusing patterns from previously resolved bugs, especially in projects with limited test coverage.
  • To provide developers with generic, semantically meaningful fix hints that highlight critical code changes and reusable patterns.
  • To explore the feasibility of using bug report history as a knowledge base for automated fix recommendation.

Proposed method

  • Employing information retrieval techniques to compare new bug reports with historical ones using LDA-based topic modeling.
  • Using heuristic-based bug linking (e.g., 'Bug #' in commit logs) to associate past bug reports with their corresponding fixes.
  • Applying semantic patch inference via the spdiff tool to extract recurring fix patterns from concrete code patches.
  • Training an SVM classifier on LDA-encoded bug report features to predict bug categories and recommend similar past fixes.
  • Summarizing fix actions into generic hints that separate reusable logic (e.g., checking kmalloc return values) from context-specific elements.
  • Integrating fix recommendations into a prototype system (RECOMMEND) for evaluation on real-world projects.

Experimental results

Research questions

  • RQ1Can historical bug reports and their fixes be effectively used to recommend actionable fix hints for new bugs?
  • RQ2How accurately can bug report similarity be modeled using LDA and SVM to predict relevant past fixes?
  • RQ3What is the recurrence rate of specific fix actions (e.g., null pointer checks) across different bug fixes?
  • RQ4How do the quality and structure of bug reports affect the performance of fix recommendation systems?
  • RQ5Can generic fix hints derived from past fixes improve developer efficiency in debugging?

Key findings

  • The proposed approach achieved 83% precision and 74% recall in classifying bug reports using 10-fold cross-validation with SVM and LDA features.
  • Over 50% of patches analyzed shared the same fix action—checking the return value of kmalloc—indicating strong recurrence of common patterns.
  • Topic modeling on full bug reports and comments yielded poor results due to noise from code snippets and execution outputs, limiting LDA effectiveness.
  • Simple heuristics like 'Bug #' in commit logs recovered around 400 bug-fix pairs, but more advanced linking strategies are needed for completeness.
  • The current implementation relies on explicit bug links, highlighting the need for better generic bug linking techniques to scale the system.
  • Semantic patch inference via spdiff is scalable only with performance optimizations, as pruning dissimilar patch parts remains computationally expensive.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.