Context-based detection of clone-related bugs

Studies show that programs contain much similar code, commonly known as clones. One of the main reasons for introducing clones is programmers' tendency to copy and paste code to quickly duplicate functionality. We commonly believe that clones can make programs difficult to maintain and introduc...

Full description

Saved in:
Bibliographic Details
Main Authors: JIANG, Lingxiao, SU, Zhendong, CHIU, Edwin
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2007
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/942
https://ink.library.smu.edu.sg/context/sis_research/article/1941/viewcontent/ContextBasedDetectionCloneBugs_2007.pdf
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Singapore Management University
Language: English
id sg-smu-ink.sis_research-1941
record_format dspace
spelling sg-smu-ink.sis_research-19412017-02-05T02:20:06Z Context-based detection of clone-related bugs JIANG, Lingxiao SU, Zhendong CHIU, Edwin Studies show that programs contain much similar code, commonly known as clones. One of the main reasons for introducing clones is programmers' tendency to copy and paste code to quickly duplicate functionality. We commonly believe that clones can make programs difficult to maintain and introduce subtle bugs. Although much research has proposed techniques for detecting and removing clones to improve software maintainability, little has considered how to detect latent bugs introduced by clones. In this paper, we introduce a general notion of context-based inconsistencies among clones and develop an efficient algorithm to detect such inconsistencies for locating bugs. We have implemented our algorithm and evaluated it on large open source projects including the latest versions of the Linux kernel and Eclipse. We have discovered many previously unknown bugs and programming style issues in both projects (with 57 for the Linux kernel and 38 for Eclipse). We have also categorized the bugs and style issues and noticed that they exhibit diverse characteristics and are difficult to detect with any single existing bug detection technique. We believe that our approach complements well these existing techniques. 2007-09-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/942 info:doi/10.1145/1287624.1287634 https://ink.library.smu.edu.sg/context/sis_research/article/1941/viewcontent/ContextBasedDetectionCloneBugs_2007.pdf http://creativecommons.org/licenses/by-nc-nd/4.0/ Research Collection School Of Computing and Information Systems eng Institutional Knowledge at Singapore Management University code clone-related bugs inconsistencies code clone detection context-based bug detection Software Engineering
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic code clone-related bugs
inconsistencies
code clone detection
context-based bug detection
Software Engineering
spellingShingle code clone-related bugs
inconsistencies
code clone detection
context-based bug detection
Software Engineering
JIANG, Lingxiao
SU, Zhendong
CHIU, Edwin
Context-based detection of clone-related bugs
description Studies show that programs contain much similar code, commonly known as clones. One of the main reasons for introducing clones is programmers' tendency to copy and paste code to quickly duplicate functionality. We commonly believe that clones can make programs difficult to maintain and introduce subtle bugs. Although much research has proposed techniques for detecting and removing clones to improve software maintainability, little has considered how to detect latent bugs introduced by clones. In this paper, we introduce a general notion of context-based inconsistencies among clones and develop an efficient algorithm to detect such inconsistencies for locating bugs. We have implemented our algorithm and evaluated it on large open source projects including the latest versions of the Linux kernel and Eclipse. We have discovered many previously unknown bugs and programming style issues in both projects (with 57 for the Linux kernel and 38 for Eclipse). We have also categorized the bugs and style issues and noticed that they exhibit diverse characteristics and are difficult to detect with any single existing bug detection technique. We believe that our approach complements well these existing techniques.
format text
author JIANG, Lingxiao
SU, Zhendong
CHIU, Edwin
author_facet JIANG, Lingxiao
SU, Zhendong
CHIU, Edwin
author_sort JIANG, Lingxiao
title Context-based detection of clone-related bugs
title_short Context-based detection of clone-related bugs
title_full Context-based detection of clone-related bugs
title_fullStr Context-based detection of clone-related bugs
title_full_unstemmed Context-based detection of clone-related bugs
title_sort context-based detection of clone-related bugs
publisher Institutional Knowledge at Singapore Management University
publishDate 2007
url https://ink.library.smu.edu.sg/sis_research/942
https://ink.library.smu.edu.sg/context/sis_research/article/1941/viewcontent/ContextBasedDetectionCloneBugs_2007.pdf
_version_ 1770570778613383168