A Petri-net-based Method For Detecting Bugs in Multiple Threads

被引:0
|
作者
Sun, Jiaquan [1 ]
Liu, Guanjun [1 ]
Xiang, Dongming [1 ]
Jiang, Changjun [1 ]
机构
[1] Tongji Univ, Shanghai Elect Transact & Informat Serv Collabora, Key Lab Embedded Syst & Serv Comp, Dept Comp Sci & Technol,Minist Educ, Shanghai 201804, Peoples R China
来源
PROCEEDINGS OF THE 2019 IEEE 16TH INTERNATIONAL CONFERENCE ON NETWORKING, SENSING AND CONTROL (ICNSC 2019) | 2019年
基金
中国国家自然科学基金; 国家重点研发计划;
关键词
multi-thread net; synchronization lock; reachability graph; concurrent bugs; ERRORS;
D O I
10.1109/icnsc.2019.8743177
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
A multi-thread program easily suffers from concurrent bugs such as livelock, deadlock and data inconsistency. The Petri-net-based methods are widely used to detect these errors. The existing models are good at modeling the logical structures such concurrency and synchronization locks, but short of modeling the changes of variables. However, some bugs are closely related with the changes of variables. In order to solve this problem, we put forward a new Petri net model called multi-thread net. This model can characterize overwriting, shared reading and synchronization locks. Moreover, we present a method to construct a reachability graph for every multi-thread net. Based on this graph, we develop an algorithm to detect concurrent bugs including deadlock, data race, order violation, and atomic violation. Furthermore, a Petri net tool is developed to model current programs and detect their concurrent bugs.
引用
收藏
页码:150 / 156
页数:7
相关论文
共 24 条
  • [1] A Heuristic Method of Detecting Data Inconsistency Based on Petri Nets
    Yang, Bo
    Liu, Guanjun
    Xiang, Dongming
    Yan, Chungang
    Jiang, Changjun
    2018 IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN, AND CYBERNETICS (SMC), 2018, : 202 - 208
  • [2] Performance Analysis of Multiple Unmanned Aerial Vehicle Collaborative Systems based on Stochastic Petri net
    Zhao, Peihai
    Wang, Mimi
    2019 11TH INTERNATIONAL CONFERENCE ON INTELLIGENT HUMAN-MACHINE SYSTEMS AND CYBERNETICS (IHMSC 2019), VOL 1, 2019, : 178 - 183
  • [3] Simulation and Modeling of Modbus Protocol Based on Petri Net
    Guo, Lei
    Yang, Xiaochuan
    Song, Yuan
    COGNITIVE SYSTEMS AND SIGNAL PROCESSING, PT II, 2019, 1006 : 512 - 522
  • [4] A modeling technique for BPR based on extended Petri net
    Yin, J
    Tang, ZW
    Proceedings of the 2005 International Conference on Management Science & Engineering (12th), Vols 1- 3, 2005, : 166 - 171
  • [5] Petri net based test case generation for evolved specification
    Zuohua DING
    Mingyue JIANG
    Haibo CHEN
    Zhi JIN
    Mengchu ZHOU
    ScienceChina(InformationSciences), 2016, 59 (08) : 67 - 91
  • [6] Petri net based test case generation for evolved specification
    Ding, Zuohua
    Jiang, Mingyue
    Chen, Haibo
    Jin, Zhi
    Zhou, Mengchu
    SCIENCE CHINA-INFORMATION SCIENCES, 2016, 59 (08)
  • [7] Modeling and Analysis of Task Synchronization Process Based on Petri Net
    Zhou, Shuang' E.
    Xiong, Guoping
    2012 WORLD AUTOMATION CONGRESS (WAC), 2012,
  • [8] Petri net based test case generation for evolved specification
    Zuohua Ding
    Mingyue Jiang
    Haibo Chen
    Zhi Jin
    Mengchu Zhou
    Science China Information Sciences, 2016, 59
  • [9] Soundness Analysis of the Process of the Automatic Vending System Based on Petri Net
    Chen, Lina
    Fang, Xianwen
    Liu, Xiangwei
    PROCEEDINGS OF THE 3RD INTERNATIONAL CONFERENCE ON MATERIAL, MECHANICAL AND MANUFACTURING ENGINEERING, 2015, 27 : 853 - 858
  • [10] DICER: Data Inconsistency Checker Based on The Unfolding Technique of Petri Net
    Xiang, Dongming
    Liu, Guanjun
    Yan, Chungang
    Jiang, Changjun
    PROCEEDINGS OF THE 2017 IEEE 14TH INTERNATIONAL CONFERENCE ON NETWORKING, SENSING AND CONTROL (ICNSC 2017), 2017, : 115 - 120