Data races are ubiquitous in multi-threaded ap-plications,but they are by no means easy to detect.One of the most important reasons is the complexity of thread in-terleavings.A volume of research has been devoted to t...Data races are ubiquitous in multi-threaded ap-plications,but they are by no means easy to detect.One of the most important reasons is the complexity of thread in-terleavings.A volume of research has been devoted to the interleaving-insensitive detection.However,all the previous work focuses on the uniform detection(unknown to the char-acteristics of thread interleavings),thereby making the detec-tion defective in either reporting false positives or suffering from prohibitive overhead.To cope with the problem above,we propose an efficient,precise,and sound step-by-step res-olution based on the characteristics of thread interleavings.We first try to tease apart the categories of thread interleav-ings from the several typical sources arising from the lock synchronizations.We then conduct a brief study and find a new and complex pattern the previous work cannot detect.It is also revealed that the simple pattern with the majority of thread interleavings can be resolved by a simple processing to achieve a big profit for the previous reordering-based design.Our final experimental results demonstrate the effectiveness of our empiricism-based approach,and show that 51.0%of execution time and 52.3%of trace size arising from the state-of-the-art reordering technique can be saved through a quick filtering of the simple pattern with a negligible(4.45%)per-formance overhead introduced on-the-fly.展开更多
在多重中断C程序中,中断嵌套可能会导致一些非期望的交叠执行,从而造成错误的程序执行结果。典型的问题是共享变量引起的数据竞争破坏了程序的原子性。针对此类问题,对多重中断C程序的运行时语义进行建模,根据共享变量的访问给出了一种...在多重中断C程序中,中断嵌套可能会导致一些非期望的交叠执行,从而造成错误的程序执行结果。典型的问题是共享变量引起的数据竞争破坏了程序的原子性。针对此类问题,对多重中断C程序的运行时语义进行建模,根据共享变量的访问给出了一种原子性的定义,提出了相应的数据竞争及原子性检测方法,并采用函数摘要技术缩减静态分析过程中所需遍历的程序状态。最后,设计并实现了一个数据竞争及原子性检测原型工具MIDAC(multiple interruption C program data race and atomicity checker),实验结果表明,该工具能够针对一定规模的实际程序得到很好的检测效果。展开更多
基金supported by the National Natu-ral Science Foundation of China(Grant Nos.61272408.613222100.Na-tional High-tech Research and Development Program of China(863 Pro-gram)(2012AA010905)Doctoral Fund of Ministry of Education of Chint(20130142110048).
文摘Data races are ubiquitous in multi-threaded ap-plications,but they are by no means easy to detect.One of the most important reasons is the complexity of thread in-terleavings.A volume of research has been devoted to the interleaving-insensitive detection.However,all the previous work focuses on the uniform detection(unknown to the char-acteristics of thread interleavings),thereby making the detec-tion defective in either reporting false positives or suffering from prohibitive overhead.To cope with the problem above,we propose an efficient,precise,and sound step-by-step res-olution based on the characteristics of thread interleavings.We first try to tease apart the categories of thread interleav-ings from the several typical sources arising from the lock synchronizations.We then conduct a brief study and find a new and complex pattern the previous work cannot detect.It is also revealed that the simple pattern with the majority of thread interleavings can be resolved by a simple processing to achieve a big profit for the previous reordering-based design.Our final experimental results demonstrate the effectiveness of our empiricism-based approach,and show that 51.0%of execution time and 52.3%of trace size arising from the state-of-the-art reordering technique can be saved through a quick filtering of the simple pattern with a negligible(4.45%)per-formance overhead introduced on-the-fly.
文摘在多重中断C程序中,中断嵌套可能会导致一些非期望的交叠执行,从而造成错误的程序执行结果。典型的问题是共享变量引起的数据竞争破坏了程序的原子性。针对此类问题,对多重中断C程序的运行时语义进行建模,根据共享变量的访问给出了一种原子性的定义,提出了相应的数据竞争及原子性检测方法,并采用函数摘要技术缩减静态分析过程中所需遍历的程序状态。最后,设计并实现了一个数据竞争及原子性检测原型工具MIDAC(multiple interruption C program data race and atomicity checker),实验结果表明,该工具能够针对一定规模的实际程序得到很好的检测效果。