Using Local Clocks to Reproduce Concurrency Bugs Academic Article uri icon

abstract

  • 2017 IEEE. Multi-threaded programs play an increasingly important role in current multi-core environments. Exposing concurrency bugs and debugging such multi-threaded programs are quite challenging due to their inherent non-determinism. In order to mitigate such non-determinism, many approaches such as record-and-replay have been proposed. However, those approaches often suffer significant performance degradation because they require a large amount of recorded information and/or long analysis and replay time. In this paper, we propose an efficient and effective approach, ReCBuLC (reproducing concurrency bugs using local clocks), to take advantage of the hardware clocks available on modern processors. The key idea is to reduce the recording overhead and the time to analyze events' global order by recording timestamps in each thread. These timestamps are used to determine the global order of shared accesses. To avoid the large overhead in accessing system-wide global clock, we opt to use local per-core clocks that incur much less access overhead.We then propose techniques to resolve skews among local clocks and obtain an accurate global event order. By using per-core clocks, state-of-the-art bug reproducing systems such as PRES and CLAP can reduce their recording overheads by up to 85 percent, and the analysis time up to 84.66% 99.99%, respectively.

published proceedings

  • IEEE TRANSACTIONS ON SOFTWARE ENGINEERING

author list (cited authors)

  • Wang, Z., Wu, C., Yuan, X., Wang, Z., Li, J., Yew, P., ... Guan, Y.

citation count

  • 1

complete list of authors

  • Wang, Zhe||Wu, Chenggang||Yuan, Xiang||Wang, Zhenjiang||Li, Jianjun||Yew, Pen-Chung||Huang, Jeff||Feng, Xiaobing||Lan, Yanyan||Chen, Yunji||Lai, Yuanming||Guan, Yong

publication date

  • November 2018