summaryrefslogtreecommitdiff
path: root/lib/common/DebugMemLeakFinder.cpp
Commit message (Collapse)AuthorAge
* Update platform feature detection to work with CMake.Chris Wilson2016-09-03
| | | | | | | Rewrite some macros in forms that can be parsed by our parser written in CMake language (fake m4 with regexps). Fix incorrect conditional includes and incorrect #if/#ifdef assumptions.
* Add missing include file for PATH_MAX.Chris Wilson2015-01-02
|
* Write memory leak report files to current working directory saved at startup.Chris Wilson2015-01-02
| | | | | | Fixes tests broken by changing current directory, for example in bbackupquery, which meant that the report file was written in the wrong place and couldn't be found by the test, causing a failure.
* Make memleakfinder_setup_exit_report() take a std::string, for C++ style.Chris Wilson2014-12-22
|
* Add check for tracking the same memory block twiceChris Wilson2014-09-18
|
* Simplify code with macros, update comments and fix whitespace.Chris Wilson2014-09-04
| | | | | | Hopefully all of these changes are inconsequential. Merged back changes from the test refactor branch to reduce diffs.
* Record mallocs that happen while the memleak finder is disabled.Chris Wilson2014-02-11
| | | | | | | | Track them as not leaks, and suppress warnings about realloc() and free() on these blocks, because they are actually tracked. Add missing "throw (std::bad_alloc)" to "operator new" to silence warnings from the llvm compiler.
* Add calloc() support to memory leak finder.Chris Wilson2013-09-19
|
* Add ability to generate memory usage reports while running.Chris Wilson2013-02-13
| | | | | | | | | | | | * ./configure CXXFLAGS=-DDEBUG_LEAKS * Build and run the binary as normal (release or debug) * Send SIGUSR1 to the process (e.g. killall -USR1 bbstored) * Check the system logs, or the console. Not safe for use on a production process, as it does illegal things in a signal handler that may result in the process hanging. Use only for debugging, and be prepared to kill any stuck processes.
* gcc 4.3 and 4.4 compile fixes, thanks to Reinhard Tartler and the DebianChris Wilson2009-04-03
| | | | | | | | project. See also: http://patch-tracking.debian.net/package/boxbackup/0.11~rc2+r2072-1 http://lists.warhead.org.uk/pipermail/boxbackup/2009-April/005159.html
* Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as Chris Wilson2008-12-30
| | | | | | well (e.g. wxWidgets) and it causes conflicts which are difficult to resolve.
* Silence warnings from openbsd gcc by using strncpy instead of strcpy.Chris Wilson2008-10-26
|
* Fix spurious memory leak warnings on Solaris when using Sun StudioChris Wilson2008-10-11
| | | | | compiler.
* Reformat for readability.Chris Wilson2008-05-28
|
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00
* Replace all remaining use of TRACEx() macros with logging framework.Chris Wilson2008-03-29
| | | | | Remove the old TRACEx macros to catch any remaining uses.
* memleakfinder_atexit() should be extern "C" to silence warnings.Chris Wilson2008-01-22
|
* Convert most printf() and fprintf() calls to use logging frameworkChris Wilson2007-08-02
| | | | | instead. (refs #3)
* Watch out for our leak tracking data being destroyed and don't crash whenChris Wilson2007-03-04
| | | | | subsequent objects are destroyed. (refs #3, merges [1341])
* Disable standard library memory leak debugging, as it causes hangs on FC2Chris Wilson2006-12-15
|
* Compile fix: include MemLeakFinder.h even on release builds (refs #3)Chris Wilson2006-12-12
|
* * Track memory leaks in allocations via the standard libraries, and Chris Wilson2006-11-13
| | | | | | | | | | | | | avoid malloc/delete mismatches, by overriding standard new operator. * Added another global enable flag to memleak finder, which is used to mark the end of static allocations and the start of dynamic code, since the memory leak detection is done before cleanup of static objects. * Added a public guard class, to allow safe scoped disabling of memory leak detection. * Added InternalAllocGuard to protect against recursive loops when allocating memory inside the memory leak checker. (refs #3)
* Fix compile warnings (refs #3)Chris Wilson2006-11-06
|
* Fix memory corruption when the number of not-leaks exceeds the table size.Chris Wilson2006-10-16
| | | | | (refs #3)
* Merge chris/win32/vc2005-compile-fixes @ r455, add infrastructure/msvc to ↵Ben Summers2006-02-13
| | | | distribution
* Fixing up svn:executable properties.Martin Ebourne2005-12-12
| | | | You may need a new checkout to see this.
* Merged martin/xattr at r5 to trunkMartin Ebourne2005-11-30
|
* Merged martin/ppcfixes at r3 to trunkMartin Ebourne2005-11-30
|
* Box Backup 0.09 with a few tweeksBen Summers2005-10-14