计算机应用 ›› 2014, Vol. 34 ›› Issue (3): 857-860.DOI: 10.11772/j.issn.1001-9081.2014.03.0857

• 计算机软件技术 • 上一篇    下一篇

基于变量跟踪的运行时错误现场分析工具

张天炯,王铮   

  1. 重庆大学 计算机学院,重庆400030
  • 收稿日期:2013-07-31 修回日期:2013-10-22 出版日期:2014-03-01 发布日期:2014-04-01
  • 通讯作者: 张天炯
  • 作者简介:张天炯(1988-),男,四川巴中人,硕士研究生,主要研究方向:程序分析、自动插桩技术、软件测试;王铮(1953-),男,重庆人,副教授,主要研究方向:嵌入式操作系统、分布式系统、软件自动生成。

Runtime error site analysis tool based on variable tracking

ZHANG Tianjiong,WANG Zheng   

  1. College of Computer Science, Chongqing University, Chongqing 400030, China
  • Received:2013-07-31 Revised:2013-10-22 Online:2014-03-01 Published:2014-04-01
  • Contact: ZHANG Tianjiong

摘要:

运行时错误是程序动态运行时产生的错误,错误发生后,需要借助传统的调试手段分析错误原因。对于某些异常行为和多线程程序不能再现真实的执行环境,传统的调试分析手段的作用不明显。如果能够捕获程序执行时的变量信息,那么运行时错误现场也会被捕获,进而以此为依据分析错误原因。对此提出基于变量跟踪的运行时错误现场捕获技术,它可以根据用户需求捕获特定变量信息,从而有效提高了变量信息获取的灵活性。以该技术为基础实现了运行时错误现场分析工具(RFST),该工具能够为程序运行时错误分析提供错误现场和辅助分析手段。

关键词: 运行时错误现场分析, 调试分析, 变量跟踪, 自动插桩技术

Abstract:

A runtime error is generated in the course of the program's dynamic execution. When the error occurred, it needs to use traditional debug tools to analyze the cause of the error.For the real execution environment of some exception and multi-thread can not be reproduced, the traditional debug analysis means is not obvious. If the variable information can be captured during the program execution, the runtime error site will be caught, which is used as a basis for analysis of the cause of the error. In this paper, the technology of capture runtime error site based on variable tracking was proposed; it can capture specific variable information according to user needs, and effectively improved the flexibility of access to variable information. Based on it, a tool named Runtime Fault Site Analysis (RFST) was implemented, which could be used to analyze error cause and provide error site and aided analysis approach as well.

Key words: runtime error site, debug analysis, variable tracking, automatic instrumentation technology

中图分类号: