Debugging Dynamic Memory

Last time: Large Program Development

Prof. Brian D. Davison

Computer Science & Engineering, Lehigh University

Additional Credits

Dynamic Memory Checking

Which errors to check?

Dynamic Memory Checking Capabilities

Dynamic Memory Checking Tools

Dynamic Memory Checking Tools

Linux-specific Dynamic Memory Checking Tools

UNIX Dynamic Memory Checking Tools

Code checking walk-through

Test code

Testing with ccmalloc

Testing with ccmalloc

Testing with Electric Fence

Testing with Electric Fence

Conclusions