Back to search

University of Toronto

Automating Log-based Software Debugging on Distributed Server Stacks

Abstract

dc:description.abstract

Debugging is one of the oldest yet hardest problems in the computer engineering field. People have been spending billions of dollars each year fighting with software bugs, yet debugging is still a highly inefficient process that requires a lot of manual efforts. While computer systems are getting more complicated, manual debugging has become extremely time-consuming. This thesis aims to automate debugging from a log-based perspective. Log-based debugging,or printf debugging, is important for three reasons. First, logs contain rich debugging information. They are printed by log printing statements that are manually inserted by software developers. Second, logs are cheap. The cost of printing logs is often lower comparing with other tools. Finally, logs are sometimes the only source of runtime information in production environments. However, current log-based debugging is largely manual, which has severe limitations. First, it is hard for manual logging to control the log quality. In practice, people don’t spend enough time on writing log printing statements. Second, logs are often outputted in high volumes,making it hard for manual analysis. This thesis aims to solve these two problems. First, it solves the problem of “where to log” based on the following observation: the decision of where to print log messages is a trade-off between their usefulness in debugging and the cost to print them. We further define the logs’ usefulness by their abilities to differentiate execution paths. On top of this, we build a tool, Log20, that can automatically insert the optimal log printing statements under a given performance threshold. Second, it solves the problem of “how to correlate the logs”. Correlating log messages from the same execution flow is a critical step in debugging, where an execution flow is a sequence of computer instructions triggered by a user request. We solve this problem by proposing the Flow Reconstruction Principle: programmers will insert sufficient information in the logs in order to reconstruct the execution in post-mortem diagnosis. We further apply this principle in the Stitch tool, and demonstrate its usefulness by performing real world system diagnosis tasks in a user study.

Degree

thesis:*
Department dc:contributor.department
Electrical and Computer Engineering
Year dc:date.issued
2021

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Zhao, Xu
Advisor dc:contributor.advisor
  • Yuan, Ding

Subjects

dc:subject × 4

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/1807/109186

Chain of custody

source
Harvested from
University of Toronto
Base URL
utoronto.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Zhao, Xu. Automating Log-based Software Debugging on Distributed Server Stacks. 2021. https://hdl.handle.net/1807/109186