Declarative debugging of concurrent Erlang programs

被引:6
作者
Caballero, Rafael [1 ]
Martin-Martin, Enrique [1 ]
Riesco, Adrian [1 ]
Tamarit, Salvador [2 ]
机构
[1] Univ Complutense Madrid, Fac Informat, Dept Sistemas Informat & Comp, C Prof Jose Garcia Santesmases 9, E-28040 Madrid, Spain
[2] Univ Politecn Valencia, Dept Sistemas Informat & Comp, E-46022 Valencia, Spain
关键词
Program debugging - Application programs - Calculations;
D O I
10.1016/j.jlamp.2018.07.005
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Despite the growing number of concurrent applications in nowadays systems, debugging concurrent programs remains an open issue due to its intrinsic complexity. In this work, we present a declarative debugger for the concurrent language Erlang. Following the ideas of algorithmic debugging, our tool asks questions to the user about the validity of transitions between those program points that involve message passing, and also about the expected results of the function calls occurred during the computation. The differences between the user answers, which represent the intended behavior of the program, and the actual program execution, allow the debugger to detect the function responsible for the error, and to point out the pieces of source code responsible for the bugs. The proposal is based on a concurrent calculus for Erlang programs, and we show a benchmark that assesses its scalability both in terms of resources usage and considering the number of questions asked to the user and their complexity. Furthermore, we check the usability of our proposal, applying the debugger to the Erlang library poolboy. (C) 2018 Elsevier Inc. All rights reserved.
引用
收藏
页码:22 / 41
页数:20
相关论文
共 41 条
[1]  
Agha G., 1985, Actors: A Model of Concurrent Computation in Distributed Systems
[2]  
[Anonymous], 1989, ACM COMPUT SURV, V21, P593, DOI DOI 10.1145/76894.76897
[3]  
[Anonymous], 1983, THESIS
[4]  
[Anonymous], 2006, P 2006 ACM SIGPLAN W
[5]  
ARMSTRONG J, CONCURRENCY ORIENTED
[6]  
Armstrong Joe, 1996, Concurrent Programming in Erlang
[7]  
BLACKBURN P, 2006, HDB MODAL LOGIC, V3
[8]  
Caballero Rafael, 2013, Tests and Proofs. 7th International Conference, TAP 2013. Proceedings: LNCS 7942, P96, DOI 10.1007/978-3-642-38916-0_6
[9]  
Caballero R., 2016, 0316 DEP SIST INF CO
[10]   A Survey of Algorithmic Debugging [J].
Caballero, Rafael ;
Riesco, Adrian ;
Silva, Josep .
ACM COMPUTING SURVEYS, 2017, 50 (04)