• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Static Memory Leak Detector
 

Static Memory Leak Detector

on

  • 3,469 views

 

Statistics

Views

Total Views
3,469
Views on SlideShare
3,461
Embed Views
8

Actions

Likes
0
Downloads
64
Comments
0

2 Embeds 8

http://www.slideshare.net 7
https://aulavirtual.uji.es 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Static Memory Leak Detector Static Memory Leak Detector Presentation Transcript

    • Static Memory Leak Detector (For C language)
      • Dalbhide Bipin
      • Joshi Ashwin
      • Thatte Aditya
      • Mentor Mentor
      • Prof. Sase Mr.Umesh Nachan
      • KPIT Infosystems
    • Agenda
      • Memory Leaks
      • Memory Leak Scenarios
      • Causes of Memory Leaks
      • Scope
      • Components / Modules
      • Code Snippet
      • Advantage of SMLD
    • Memory Leaks ?
      • “ Unintentional” memory consumption
      • Memory is not lost “physically”
      • Symptoms include “reduced performance” , “failure”
    • Memory leak scenarios
      • Cases where leaks are serious :-
      • 1.where program is left running, and consumes more memory over time ( eg . Daemons , servers )
      • 2.where new memory is allocated frequently ( intentional)
      • 3.where memory is very limited e.g. in an embedded system
      • 4. where running on operating systems (such as AmigaOS ) where memory may not be automatically released on termination
      • Existing tools :-
      • mtrace, dmalloc, memwatch all detect memory leaks at run time.
    • Causes…
    •  
    • Scope
      • Parsing C and generating symbol tables
      • Tracing and validating memory allocations and deallocations
      • (malloc (), free () )
      • Generate report of memory leaks.( warnings , line by line analysis )
    • Block schematic ( modules)
    •  
    • Symbol table :-
    •  
    • Advantages :-
      • Memory leaks detected at “compile time”
      • Saves valuable time ( debugging )
      • Helps in saving precious memory
      • Enhances performance
    • Challenges
      • Parsing “C” language
      • Plugging this tool into existing “C” compiler
    • References
      • Principles of Compilers - Aho / Ulmann
      • LEX YACC - O’ Reilly
    • Questions