DocumentCode :
1731978
Title :
UML Activity Diagram Based Testing of Java Concurrent Programs for Data Race and Inconsistency
Author :
Lei, Bin ; Wang, Linzhang ; Li, Xuandong
Author_Institution :
Dept. of Comput. Sci. & Technol., Nanjing Univ., Nanjing
fYear :
2008
Firstpage :
200
Lastpage :
209
Abstract :
Data race occurs when multiple threads simultaneously access shared data without appropriate synchronization, and at least one is write. System with a data race is nondeterministic and may generate different outputs even with the same input, according to different interleaving of data access. We present a model-based approach for detecting data races in concurrent Java programs. We extend UML Activity diagrams with data operation tags, to model program behavior. Program under test (PUT) is instrumented according to the model. It is then executed with random test cases generated based on path analysis of the model. Execution traces are reverse engineered and used for post-mortem verification. First, data races are identified by searching the time overlaps of entering and exiting critical sections of different threads. Second, implementation could be inconsistent with the design. The problem may tangle with race condition and makes it hard to detect races. We compare the event sequences with the behavior model for consistency checking. Identified inconsistencies help debuggers locate the defects in the PUT. A prototype tool named tocAj implements the proposed approach and was successfully applied to several cases studies.
Keywords :
Java; Unified Modeling Language; multiprocessing programs; UML activity diagram; concurrent Java programs; consistency checking; data race; program under test; Cameras; Data analysis; Interleaved codes; Java; Monitoring; Prototypes; Runtime; Software testing; Unified modeling language; Yarn; UML activity diagram; race condition;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Testing, Verification, and Validation, 2008 1st International Conference on
Conference_Location :
Lillehammer
Print_ISBN :
978-0-7695-3127-4
Type :
conf
DOI :
10.1109/ICST.2008.64
Filename :
4539547
Link To Document :
بازگشت