Back to search

University of Saskatchewan

Analyzing Software Bugs in Code Clones

Abstract

dc:description.abstract

An extensive area of research in Software Engineering for the last two decades has been finding duplicate source code in the code base. The act of duplicating source code or copy-pasting source code in software systems is known as code cloning. Reusing source code or code cloning is a very common practice in software development. Code cloning can save time and cost. On the other hand, if a code fragment contains a bug then duplicating that source code will also duplicate the bug. Thus, in the literature there is a common belief that code cloning is responsible for spreading bugs in software systems. The primary goal of our study is to validate this common belief. To achieve this goal, we performed four major studies and analyzed the characteristics of bug-proneness of code clones. First, we aimed to understand bug-proneness between clone and non-clone code. Afterwards, we explored bug-proneness of micro-clones which are smaller in size (from 1 line of code to 4 lines of code) in our second study. Later, we focused on bug-replication of regular code clones and micro-clones in our third and fourth studies. Our result supports the intuition from the literature and we found that code clones are more bug-prone than non-clone code. Moreover, we found that it is important to emphasize bug-prone code clones so that it will help us in clone management and better maintenance of software systems. We also proposed a possible solution to identify and manage these bug-prone code clones and showed some future paths of this research.

Degree

thesis:*
Name thesis:degree_name
Doctor of Philosophy (Ph.D.)
Level thesis:degree_level
Doctoral
Discipline thesis:degree_discipline
Computer Science
Department thesis:degree_department
Computer Science
Grantor
University of Saskatchewan
Year dc:date.issued
2021

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Islam, Judith
Advisor dc:contributor.advisor
  • Roy, Chanchal
Committee members dc:contributor.committeemember
  • Jin, Lingling
  • Keil, Mark
  • McQuillan, Ian
  • Schneider, Kevin
  • Wahid, Khan
  • Conn, Kristen

Subjects

dc:subject × 2

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10388/13248

Chain of custody

source
Harvested from
University of Saskatchewan
Base URL
harvest.usask.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Islam, Judith. Analyzing Software Bugs in Code Clones. Doctoral thesis, University of Saskatchewan, 2021. https://hdl.handle.net/10388/13248