An automated approach for finding variable-constant pairing bugs

Named constants are used heavily in operating systems code, both as internal flags and in interactions with devices. Decision making within an operating system thus critically depends on the correct usage of these values. Nevertheless, compilers for the languages typically used in implementing opera...

Full description

Saved in:
Bibliographic Details
Main Authors: LAWALL, Julia, LO, David
Format: text
Language:English
Published: Institutional Knowledge at Singapore Management University 2010
Subjects:
Online Access:https://ink.library.smu.edu.sg/sis_research/1347
https://ink.library.smu.edu.sg/context/sis_research/article/2346/viewcontent/ase10_bugs.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-2346
record_format dspace
spelling sg-smu-ink.sis_research-23462019-06-07T05:17:27Z An automated approach for finding variable-constant pairing bugs LAWALL, Julia LO, David Named constants are used heavily in operating systems code, both as internal flags and in interactions with devices. Decision making within an operating system thus critically depends on the correct usage of these values. Nevertheless, compilers for the languages typically used in implementing operating systems provide little support for checking the usage of named constants. This affects correctness, when a constant is used in a context where its value is meaningless, and software maintenance, when a constant has the right value for its usage context but the wrong name. We propose a hybrid program-analysis and data-mining based approach to identify the uses of named constants and to identify anomalies in these uses. We have applied our approach to a recent version of the Linux kernel and have found a number of bugs affecting both correctness and software maintenance. Many of these bugs have been validated by the Linux developers. 2010-09-01T07:00:00Z text application/pdf https://ink.library.smu.edu.sg/sis_research/1347 info:doi/10.1145/1858996.1859014 https://ink.library.smu.edu.sg/context/sis_research/article/2346/viewcontent/ase10_bugs.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 Variable-Constant Pairing Bugs Anomaly Detection Clustering Linux Software Engineering
institution Singapore Management University
building SMU Libraries
continent Asia
country Singapore
Singapore
content_provider SMU Libraries
collection InK@SMU
language English
topic Variable-Constant Pairing Bugs
Anomaly Detection
Clustering
Linux
Software Engineering
spellingShingle Variable-Constant Pairing Bugs
Anomaly Detection
Clustering
Linux
Software Engineering
LAWALL, Julia
LO, David
An automated approach for finding variable-constant pairing bugs
description Named constants are used heavily in operating systems code, both as internal flags and in interactions with devices. Decision making within an operating system thus critically depends on the correct usage of these values. Nevertheless, compilers for the languages typically used in implementing operating systems provide little support for checking the usage of named constants. This affects correctness, when a constant is used in a context where its value is meaningless, and software maintenance, when a constant has the right value for its usage context but the wrong name. We propose a hybrid program-analysis and data-mining based approach to identify the uses of named constants and to identify anomalies in these uses. We have applied our approach to a recent version of the Linux kernel and have found a number of bugs affecting both correctness and software maintenance. Many of these bugs have been validated by the Linux developers.
format text
author LAWALL, Julia
LO, David
author_facet LAWALL, Julia
LO, David
author_sort LAWALL, Julia
title An automated approach for finding variable-constant pairing bugs
title_short An automated approach for finding variable-constant pairing bugs
title_full An automated approach for finding variable-constant pairing bugs
title_fullStr An automated approach for finding variable-constant pairing bugs
title_full_unstemmed An automated approach for finding variable-constant pairing bugs
title_sort automated approach for finding variable-constant pairing bugs
publisher Institutional Knowledge at Singapore Management University
publishDate 2010
url https://ink.library.smu.edu.sg/sis_research/1347
https://ink.library.smu.edu.sg/context/sis_research/article/2346/viewcontent/ase10_bugs.pdf
_version_ 1770570973689413632