Deep Learning Based Concurrency Bug Detection and Localization

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Feng, Zuocheng, Zhang, Kaiwen, Wang, Miaomiao, Cheng, Yiming, Cai, Yuandao, Li, Xiaofeng, Liu, Guanjun
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911127916511232
author Feng, Zuocheng
Zhang, Kaiwen
Wang, Miaomiao
Cheng, Yiming
Cai, Yuandao
Li, Xiaofeng
Liu, Guanjun
author_facet Feng, Zuocheng
Zhang, Kaiwen
Wang, Miaomiao
Cheng, Yiming
Cai, Yuandao
Li, Xiaofeng
Liu, Guanjun
contents Concurrency bugs, caused by improper synchronization of shared resources in multi-threaded or distributed systems, are notoriously hard to detect and thus compromise software reliability and security. The existing deep learning methods face three main limitations. First, there is an absence of large and dedicated datasets of diverse concurrency bugs for them. Second, they lack sufficient representation of concurrency semantics. Third, binary classification results fail to provide finer-grained debug information such as precise bug lines. To address these problems, we propose a novel method for effective concurrency bug detection as well as localization. We construct a dedicated concurrency bug dataset to facilitate model training and evaluation. We then integrate a pre-trained model with a heterogeneous graph neural network (GNN), by incorporating a new Concurrency-Aware Code Property Graph (CCPG) that concisely and effectively characterizes concurrency semantics. To further facilitate debugging, we employ SubgraphX, a GNN-based interpretability method, which explores the graphs to precisely localize concurrency bugs, mapping them to specific lines of source code. On average, our method demonstrates an improvement of 10\% in accuracy and precision and 26\% in recall compared to state-of-the-art methods across diverse evaluation settings.
format Preprint
id arxiv_https___arxiv_org_abs_2508_20911
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Deep Learning Based Concurrency Bug Detection and Localization
Feng, Zuocheng
Zhang, Kaiwen
Wang, Miaomiao
Cheng, Yiming
Cai, Yuandao
Li, Xiaofeng
Liu, Guanjun
Software Engineering
Concurrency bugs, caused by improper synchronization of shared resources in multi-threaded or distributed systems, are notoriously hard to detect and thus compromise software reliability and security. The existing deep learning methods face three main limitations. First, there is an absence of large and dedicated datasets of diverse concurrency bugs for them. Second, they lack sufficient representation of concurrency semantics. Third, binary classification results fail to provide finer-grained debug information such as precise bug lines. To address these problems, we propose a novel method for effective concurrency bug detection as well as localization. We construct a dedicated concurrency bug dataset to facilitate model training and evaluation. We then integrate a pre-trained model with a heterogeneous graph neural network (GNN), by incorporating a new Concurrency-Aware Code Property Graph (CCPG) that concisely and effectively characterizes concurrency semantics. To further facilitate debugging, we employ SubgraphX, a GNN-based interpretability method, which explores the graphs to precisely localize concurrency bugs, mapping them to specific lines of source code. On average, our method demonstrates an improvement of 10\% in accuracy and precision and 26\% in recall compared to state-of-the-art methods across diverse evaluation settings.
title Deep Learning Based Concurrency Bug Detection and Localization
topic Software Engineering
url https://arxiv.org/abs/2508.20911