Valgrind

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Valgrind - Presentation Transcript

    1. Valgrind Alejandro García Castro
    2. List of topics
      • Review
      • Common parameters
      • Common errors checking memory
      • Leak types
    3. Introduction
      • Instrumentation framework to build analysis tools
      • It has tools that allows you to debug and profile programs
      • Very commonly used in a lot of projects and companies
      • CAUTION: Veeery slow!!
    4. Tools
      • It includes tools for:
        • memory error detector (memcheck (default)
        • thread error detector (hellgrind)
        • cache and branch-prediction profiler (cachegrind)
        • call-graph generating cache profiler (callgrind)
        • heap profiler (massif)
    5. Usual parameters
      • num-callers
      • db-attach
      • trace-children
      • suppressions
    6. Common errors
      • Illegal read / Illegal write errors
      • Use of uninitialized values
      • Illegal frees
      • When a block is freed with an inappropriate deallocation function
      • Passing system call parameters with inadequate read/write permissions
    7. Common errors (II)
      • Overlapping source and destination blocks
      • Memory leak detection
    8. Leak types
      • Still reachable: A pointer to the start of the block is found
      • Possibly lost, or "dubious": A pointer to the interior of the block is found.
      • Definitely lost, or "leaked": The worst outcome is that no pointer to the block can be found.
    9. References
      • http://valgrind.org/

    + Andrés ManeiroAndrés Maneiro, 2 years ago

    custom

    1199 views, 0 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 1199
      • 1199 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 3
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories