Automatic solution summarization for crash bugs

Haoye Wang, Xin Xia, David Lo, John Grundy, Xinyu Wang

Research output: Chapter in Book/Report/Conference proceedingConference PaperResearchpeer-review

9 Citations (Scopus)


The causes of software crashes can be hidden anywhere in the source code and development environment. When encountering software crashes, recurring bugs that are discussed on Q&A sites could provide developers with solutions to their crashing problems. However, it is difficult for developers to accurately search for relevant content on search engines, and developers have to spend a lot of manual effort to find the right solution from the returned results. In this paper, we present CRASOLVER, an approach that takes into account both the structural information of crash traces and the knowledge of crash-causing bugs to automatically summarize solutions from crash traces. Given a crash trace, CRASOLVER retrieves relevant questions from Q&A sites by combining a proposed position dependent similarity - based on the structural information of the crash trace - with an extra knowledge similarity, based on the knowledge from official documentation sites. After obtaining the answers to these questions from the Q&A site, CRASOLVER summarizes the final solution based on a multi-factor scoring mechanism. To evaluate our approach, we built two repositories of Java and Android exception-related questions from Stack Overflow with size of 69,478 and 33,566 questions respectively. Our user study results using 50 selected Java crash traces and 50 selected Android crash traces show that our approach significantly outperforms four baselines in terms of relevance, usefulness, and diversity. The evaluation also confirms the effectiveness of the relevant question retrieval component in our approach for crash traces.

Original languageEnglish
Title of host publicationProceedings - 2021 IEEE/ACM 43rd International Conference on Software Engineering, ICSE 2021
EditorsArie van Deursen, Tao Xie
Place of PublicationPiscataway NJ USA
PublisherIEEE, Institute of Electrical and Electronics Engineers
Number of pages12
ISBN (Electronic)9780738113197
ISBN (Print)9781665402965
Publication statusPublished - 2021
EventInternational Conference on Software Engineering 2021 - Online, Madrid, Spain
Duration: 25 May 202128 May 2021
Conference number: 43rd (Proceedings)

Publication series

NameProceedings - International Conference on Software Engineering
PublisherThe Institute of Electrical and Electronics Engineers, Inc.
ISSN (Print)0270-5257
ISSN (Electronic)1558-1225


ConferenceInternational Conference on Software Engineering 2021
Abbreviated titleICSE 2021
Internet address

Cite this