C/Pthreads静态死锁分析(扩展版)
Sound Static Deadlock Analysis for C/Pthreads (Extended Version)
摘要:
提出了一种C/pthreads静态死锁分析方法。我们的方法的设计一直遵循的要求,分析现实世界的代码。我们的方法是合理的(即,对于那些根据C标准定义了行为的程序来说,它是没有死锁的),并且足够精确,可以证明大量程序的死锁自由。该方法由一个管道的几个分析,建立在一个新的上下文和线程敏感的抽象解释框架。我们进一步提出了一个轻量级的依赖分析,以确定相关的死锁分析,从而加快整体分析的语句。在我们的实验性评估中,我们在不到11小时的时间内成功地证明了Debian GNU/Linux发行版中262个程序的无死锁性,总共使用了2.6兆字节。
英文摘要:
We present a static deadlock analysis approach for C/pthreads. The design of our method has been guided by the requirement to analyse real-world code. Our approach is sound (i.e., misses no deadlocks) for programs that have defined behaviour according to the C standard, and precise enough to prove deadlock-freedom for a large number of programs. The method consists of a pipeline of several analyses that build on a new context- and thread-sensitive abstract interpretation framework. We further present a lightweight dependency analysis to identify statements relevant to deadlock analysis and thus speed up the overall analysis. In our experimental evaluation, we succeeded to prove deadlock-freedom for 262 programs from the Debian GNU/Linux distribution with in total 2.6 MLOC in less than 11 hours.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。