Code Monkey home page Code Monkey logo

dtd's Introduction

DTD

This is the repository for paper "DTD: Comprehensive and Scalable Testing for Debuggers"

Bugs we've found

Please go to our google site for a complete list of bugs we've found in GDB/LLDB.

Motivating example

The following is an example C program that triggers a bug in GDB. This bug occurs when the source is compiled using GCC. We observe this in O1,O2,O3, even O0, hooray), meaning this is a debugger bug instead of a compiler bug (which previous works focuses on). DTD is very good at locating such bugs.

int a = 1;
int func() {
    int i;
    for (; i < 1; i++);
    if (a) {
        short b = 2; /* error point */
        { int i; }
    }
}
int main() { func(); }

Just run demo.sh to see how DTD detect and report this bug.

./demo.sh

Here is the expected output.

On line 6: LLDB: i = 1, GDB: i = opted

It says that, on line 6, LLDB saw an variable i with value 1, but GDB saw i has been optimized. Therefore, there is a bug in GDB causing i gone missing or a bug in LLDB causing a spurious i to appear.

File list

  • comparator.py: Compare two traces and yield their differences.
  • gdb_script.py: GDB interpreted python script to generate "debugger trace" of a binary.
  • lldb_script.py: LLDB interpreted python script to generate "debugger trace" of a binary.
  • step_generator.py: Heuristically generate which steps to collect complete debugger trace.
  • trace_diff.py: Utility python script for trace diff.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.