zncb / memleak-finder Goto Github PK
View Code? Open in Web Editor NEWThis project forked from efficios/memleak-finder
Simple memory leak finder.
This project forked from efficios/memleak-finder
Simple memory leak finder.
Memleak finder Mathieu Desnoyers, May 2013 * memleak-finder.so example usage: LD_PRELOAD=<path_to>/memleak-finder.so appname If you get e.g.: [warning] trying to free unallocated ptr 0x18b2a70 caller 0x7fae7943dd57 or [leak] ptr: 0x18b2350 size: 0x160 caller: 0x7fae7943e28f <symbol> If you need to see local symbols as well ("static" function), you will need to use gdb "disassemble 0x...". A trick to hook gdb on the program after the leak printout is to add an assert(0) at the end of the library destructor, and run the program after issuing ulimit -c unlimited to gather a core dump of the application. Don't forget to compile your program and libraries, and install the "-dbg" versions of the system libraries if you want the make sure gdb can lookup their local symbols. You can set the MEMLEAK_FINDER_PRINT environment variable to make the shared object print every allocation/free on stderr. * malloc-stats.so LD_PRELOAD=<path_to>/malloc-stats.so appname Then, kill with: killall -SIGUSR2 appname It will show the output of malloc_stats(3) on stderr of the application. Example output: Arena 0: system bytes = 135168 in use bytes = 19360 Total (incl. mmap): system bytes = 135168 in use bytes = 19360 max mmap regions = 0 max mmap bytes = 0 * Credits The design of this library is inspired by this presentation: "Tips of malloc & free" Tetsuyuki Kobayashi 2013.2.22 Embedded Linux Conference http://events.linuxfoundation.org/images/stories/slides/elc2013_kobayashi_malloc.pdf
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.