DeepRace: A learning-based data race detector
Authors:
- 1 April 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 226-233
Abstract
In this paper, we propose DeepRace, a novel approach toward detecting data race bugs in the source code. We build a deep neural network model to find data race bugs instead of creating a data race detector manually. Our model uses a one-layer convolutional neural network (CNN) with different window sizes to find data race. We adopt the class activation map in order to highlight the line of codes with a data race. Thus, the DeepRace model can detect the data race on a file-level and line of code level. We trained and tested the model with OpenMP and POSIX source code datasets consisting of more than 5000 and 8000 source code files respectively. Comparing to other race detectors, we only had a small number of false positives and false negatives up to 3 and 4 for each OpenMP data race.Keywords
This publication has 30 references indexed in Scilit:
- Convolutional Neural Networks for Sentence Classification2014
- Learning from mistakes2008
- Fast and Accurate Static Data-Race Detection for Concurrent Programs2007
- Automatically classifying benign and harmful data races using replay analysisACM SIGPLAN Notices, 2007
- A Fast Learning Algorithm for Deep Belief NetsNeural Computation, 2006
- Types for safe lockingACM Transactions on Programming Languages and Systems, 2006
- RaceTrack2005
- Gradient-based learning applied to document recognitionProceedings of the IEEE, 1998
- EraserACM Transactions on Computer Systems, 1997
- Long Short-Term MemoryNeural Computation, 1997