CheckFence
Authors:
Open Access
- 10 June 2007
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 42 (6) , 12-21
Abstract
Concurrency libraries can facilitate the development of multi-threaded programs by providing concurrent implementations of familiar data types such as queues or sets. There exist many optimized algorithms that can achieve superior performance on multiprocessors by allowing concurrent data accesses without using locks. Unfortunately, such algorithms can harbor subtle concurrency bugs. Moreover, they requirememory ordering fences to function correctly on relaxed memory models. To address these difficulties, we propose a verification approach that can exhaustively check all concurrent executions of a given test program on a relaxed memory model and can verify that they are observationally equivalent to a sequential execution. Our CheckFence prototype automatically translates the C implementation code and the test program into a SAT formula, hands the latter to a standard SAT solver, and constructs counter example traces if there exist incorrect executions. Applying CheckFence to five previously published algorithms, we were able to (1) find several bugs (some not previously known), and (2) determine how to place memory ordering fences for relaxed memory models.Keywords
This publication has 30 references indexed in Scilit:
- Types for safe lockingACM Transactions on Programming Languages and Systems, 2006
- Checking a Multithreaded Algorithm with + CAL2006
- A Lazy Concurrent List-Based Set Algorithm2006
- Software and the Concurrency RevolutionQueue, 2005
- Fast and lock-free concurrent priority queues for multi-thread systemsJournal of Parallel and Distributed Computing, 2005
- Bounded Model Checking of Concurrent ProgramsLecture Notes in Computer Science, 2005
- Automatically Verifying Concurrent Queue AlgorithmsElectronic Notes in Theoretical Computer Science, 2003
- EraserACM Transactions on Computer Systems, 1997
- Shared memory consistency models: a tutorialComputer, 1996
- Efficient and correct execution of parallel programs that share memoryACM Transactions on Programming Languages and Systems, 1988