Dynamic slicing on Java bytecode traces

Author:

Wang Tao1,Roychoudhury Abhik1

Affiliation:

1. National University of Singapore, Singapore

Abstract

Dynamic slicing is a well-known technique for program analysis, debugging and understanding. Given a program P and input I, it finds all program statements which directly/indirectly affect the values of some variables' occurrences when P is executed with I. In this article, we develop a dynamic slicing method for Java programs. Our technique proceeds by backwards traversal of the bytecode trace produced by an input I in a given program P . Since such traces can be huge, we use results from data compression to compactly represent bytecode traces. The major space savings in our method come from the optimized representation of (a) data addresses used as operands by memory reference bytecodes, and (b) instruction addresses used as operands by control transfer bytecodes. We show how dynamic slicing algorithms can directly traverse our compact bytecode traces without resorting to costly decompression. We also extend our dynamic slicing algorithm to perform “relevant slicing”. The resultant slices can be used to explain omission errors that is, why some events did not happen during program execution. Detailed experimental results on space/time overheads of tracing and slicing are reported in the article. The slices computed at the bytecode level are translated back by our tool to the source code level with the help of information available in Java class files. Our JSlice dynamic slicing tool has been integrated with the Eclipse platform and is available for usage in research and development.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference44 articles.

1. Agrawal H. 1991. Towards automatic debugging of computer programs. Ph.D. dissertation Purdue University. Agrawal H. 1991. Towards automatic debugging of computer programs. Ph.D. dissertation Purdue University.

2. Dynamic program slicing

3. Andersen L. O. 1994. Program analysis and specialization for the C progranzming language. Ph.D. dissertation University of Copenhagen. Andersen L. O. 1994. Program analysis and specialization for the C progranzming language. Ph.D. dissertation University of Copenhagen.

Cited by 29 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Event-aware precise dynamic slicing for automatic debugging of Android applications;Journal of Systems and Software;2023-04

2. Bolt-on, Compact, and Rapid Program Slicing for Notebooks;Proceedings of the VLDB Endowment;2022-09

3. Event-Aware Precise Dynamic Slicing for Automatic Debugging of Android Applications;SSRN Electronic Journal;2022

4. Jicer: Simplifying Cooperative Android App Analysis Tasks;2021 IEEE 21st International Working Conference on Source Code Analysis and Manipulation (SCAM);2021-09

5. Checking LTL[F,G,X] on compressed traces in polynomial time;Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering;2021-08-18

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3