CHANGES.txt 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  1. Visual Leak Detector (VLD) Version 2.5.1
  2. Change Log / Release Notes
  3. 2.5.1 (30 January 2017)
  4. ----------------------------
  5. Enhancements:
  6. + PDB added to installer.
  7. Bugs Fixed:
  8. + Fix ntdll loader patch for Windows 10 (1607) Anniversary Update causing crashes (thanks to ioannis-e).
  9. + Vld dll loading order fixed with MFC.
  10. + Supressible msgboxes in setup with cmdline /silent /suppressmsgboxes.
  11. 2.5 (09 January 2016)
  12. ----------------------------
  13. Enhancements:
  14. + VS2015 support added.
  15. + Windows 10 support added.
  16. + Support MFC 12 MBCS (thanks to mnissl).
  17. + VLD config through env. vars (thanks to akaStiX).
  18. + Support detection DllMain allocations (thanks to ioannis-e).
  19. + Add option to skip reporting crt startup allocations as memory leaks (thanks to ioannis-e).
  20. + Improve the vld.ini searching from additional locations (thanks to ioannis-e).
  21. + Changed implementation of FastCallStack::getStackTrace for 32-bit code.
  22. Bugs Fixed:
  23. + Fix #9519, #9859, #10544, use LoaderLock to serialize any calls which load additional libraries or require access to the Loader Lock (thanks to ioannis-e).
  24. + Fix #6359, #10553, fix crashes and failure to register COM dlls where Visual Leak Detector is unloaded before IMalloc interface is released (thanks to ioannis-e).
  25. + Fix #10548, vld.ini search path (thanks to ioannis-e).
  26. + Fix #10587, Visual Leak Detector reporting strange leaks in CRT module of VC++ (thanks to ioannis-e).
  27. + Fix #10588, false positives from CRT in VS2013 with /MTd (thanks to ioannis-e).
  28. + Deadlock fixed with StackWalkMethod=safe.
  29. 2.4RC2 (07 April 2014)
  30. ----------------------------
  31. Enhancements:
  32. + VLD will display last internal frame.
  33. + Installer also add path for static library.
  34. Bugs Fixed:
  35. + Internal memory leak fixed.
  36. 2.4RC (23 March 2014)
  37. ----------------------------
  38. Enhancements:
  39. + VS2013 support added.
  40. + Improved usage in C code.
  41. + Setup rewrited to InnoSetup, autopatching common props implemented for VS2008-2013.
  42. + Called allocation function added to printed callstack.
  43. ! Memory leaks count fixed for case static/dynamic linked MFC.
  44. ! Release static linked CRT detection improved (VLD_OPT_RELEASE_CRT_RUNTIME define removed).
  45. Bugs Fixed:
  46. + Memory leaks with static linked CRT fixed for VS2012/2013.
  47. + Deadlock fixed and missed memory leaks when dll loading (first appear in version 2.2.2).
  48. 2.3 (29 April 2013)
  49. ----------------------------
  50. Enhancements:
  51. + Windows 8 support added.
  52. Bugs Fixed:
  53. + Memory leaks with duplicate thread id fixed (thanks to jlddodger).
  54. 2.2.3 (15 Febrary 2012)
  55. ----------------------------
  56. Enhancements:
  57. + New option VLD_OPT_RELEASE_CRT_RUNTIME added. Useful only with define VLD_FORCE_ENABLE.
  58. Bugs Fixed:
  59. + Memory leaks with static linking fixed finally.
  60. 2.2.2 (18 December 2011)
  61. ----------------------------
  62. Bugs Fixed:
  63. + Memory leaks with static linking fixed.
  64. + Visual Studio C++ 2008/2010 Express Edition compilation fixed.
  65. + Hang fixed with GetOpenFileName().
  66. 2.2.1 (22 November 2011)
  67. ----------------------------
  68. Enhancements:
  69. + strdup and _wcsdup functions support added.
  70. + Preliminary support for VS 11 added.
  71. Bugs Fixed:
  72. + Low performance after upgrading from VLD v2.1.
  73. + Runtime error R6002 fixed because of wrong memory dump format.
  74. + version.h fixed in installer.
  75. + Some PVS studio warning fixed.
  76. 2.2 (21 Jule 2011)
  77. ----------------------------
  78. Enhancements:
  79. + New functions added: VLDSetReportHook.
  80. Bugs Fixed:
  81. + Resolved call stack printing fixed.
  82. 2.2b (8 Jule 2011)
  83. ----------------------------
  84. Enhancements:
  85. + New functions added: VLDGetLeaksCount, VLDMarkAllLeaksAsReported (see vld.h).
  86. + Introduced define called VLD_FORCE_ENABLE that allows one to active VLD even if not running in DEBUG.
  87. + Adding Heap Validation.
  88. + _aligned... functions and _recalloc support added.
  89. + Memory leaks additional statistic added.
  90. Bugs Fixed:
  91. + Issue fixed with loading wrong version of dbghelp.dll on Windows XP and bellow.
  92. + VLDReportLeaks with aggregate duplicate links fixed.
  93. + CoTaskMemAlloc memory leak detection fixed.
  94. + Rare crash at exit on some platforms fixed.
  95. + Asserts in release build disabled.
  96. + LoaderLock fixed.
  97. + LoadLibrary crash fixed with some applications like regsrv32.
  98. + Callstack hash fixed with ASLR.
  99. + VLDGlobalEnable fixed with new threads.
  100. + Option VLD_OPT_MODULE_LIST_INCLUDE fixed.
  101. 2.1 (26 March 2011)
  102. ----------------------------
  103. Enhancements:
  104. + New functions added: VLDGlobalDisable, VLDGlobalEnable, VLDGetOptions,
  105. VLDGetReportFilename, VLDSetOptions, VLDSetModulesList,
  106. VLDGetModulesList, VLDResolveCallstacks (see vld.h).
  107. + Option VLD_OPT_SKIP_HEAPFREE_LEAKS added.
  108. + Hash for each leak added
  109. + Supported loading symbols from Visual Studio symbol cache directory
  110. Bugs Fixed:
  111. + Improved LdrLoadDll, GetProcAddress hooking on Windows 7.
  112. + "HMODULE not founded" bug fixed.
  113. + Bugs fixed when VLD off.
  114. + Problem fixed with GetModuleHandleW for SxS dll's (mfc*.dll, msvcr*.dll).
  115. + Unicode-to-multibyte conversion fixed.
  116. 2.1 (26 March 2011)
  117. ----------------------------
  118. Enhancements:
  119. + New functions added: VLDGlobalDisable, VLDGlobalEnable, VLDGetOptions,
  120. VLDGetReportFilename, VLDSetOptions, VLDSetModulesList,
  121. VLDGetModulesList, VLDResolveCallstacks (see vld.h).
  122. + Option VLD_OPT_SKIP_HEAPFREE_LEAKS added.
  123. + Hash for each leak added
  124. + Supported loading symbols from Visual Studio symbol cache directory
  125. Bugs Fixed:
  126. + Improved LdrLoadDll, GetProcAddress hooking on Windows 7.
  127. + "HMODULE not founded" bug fixed.
  128. + Bugs fixed when VLD off.
  129. + Problem fixed with GetModuleHandleW for SxS dll's (mfc*.dll, msvcr*.dll).
  130. + Unicode-to-multibyte conversion fixed.
  131. 2.0b (24 August 2010)
  132. ----------------------------
  133. Enhancements:
  134. + Added new commands: VLDReportLeaks, VLDRefreshModules, VLDEnableModule,
  135. VLDDisableModule, VLDSetReportOptions (see vld.h).
  136. Bugs Fixed:
  137. + Problems with MSVC 2008 SP1 fixed. Thanks to Laurent Lessieux for contributing this patch.
  138. 2.0a (13 May 2010)
  139. ----------------------------
  140. Enhancements:
  141. + Renamed vld dll files.
  142. Bugs Fixed:
  143. + Problem with MSVC 2010 Unicode library fixed.
  144. 2.0 (25 April 2010)
  145. ----------------------------
  146. Enhancements:
  147. + Added support to work with 64-bit applications
  148. + Added support to work with Visual Studio 2010
  149. 1.9h beta (24 February 2009)
  150. ----------------------------
  151. Enhancements:
  152. + Added support to work with Visual Studio 2008.
  153. Known Bugs/Restrictions:
  154. + Same bugs/restrictions as version 1.9f.
  155. 1.9g beta (16 April 2008)
  156. ----------------------------
  157. Bugs Fixed:
  158. + Another deadlock condition may occur when loading DLLs into the process
  159. being debugged. Special thanks to Eric Bissonnette and Kristian Paradis for
  160. contributing this patch.
  161. Known Bugs/Restrictions:
  162. + Same bugs/restrictions as version 1.9f.
  163. 1.9f beta (18 November 2006)
  164. ----------------------------
  165. Bugs Fixed:
  166. + Deadlocks or access violations may occur when loading DLLs into
  167. multithreaded processes.
  168. + In multithreaded programs, if the main thread terminates before other
  169. threads in the process, then Visual Leak Detector may cause an access
  170. violation while generating the memory leak report.
  171. Known Bugs/Restrictions:
  172. + Memory allocations made through calls to functions loaded from a DLL using
  173. delayed loading may not be detected.
  174. + Support for programs that use MFC 7.0 or MFC 7.1 is not complete yet. Some
  175. memory leaks from such MFC-based programs may not be detected.
  176. + Visual Leak Detector may report leaks internal to Visual Leak Detector
  177. if the main thread of the process terminates while other threads are still
  178. running.
  179. + If more than one copy of the same C Runtime DLL is loaded in the process at
  180. the same time, then some leaks may go undetected (note that loading more
  181. than one copy of the C Runtime DLL into a process at the same time is
  182. probably a bad idea to begin with).
  183. 1.9e beta (16 November 2006)
  184. ----------------------------
  185. New Features/Enhancements:
  186. + Added a master on/off switch configuration option to vld.ini that can be
  187. used to completely disable Visual Leak Detector.
  188. Bugs Fixed:
  189. + Numerous deadlock situations. The multithread synchronization scheme has
  190. been completely re-written which should make deadlocks in VLD much less
  191. likely to happen.
  192. + An access violation will occur in VLD if GetProcAddress is called to obtain
  193. an export's address by ordinal, for certain libraries.
  194. + Problems may potentially occur when the program being debugged exits due to
  195. the Debug Help Library having been detached from the process too early.
  196. Symptoms might include access violation exceptions or other erratic behavior
  197. just as the program exits and while VLD is generating the leak report.
  198. + The copy of vld.ini installed in VLD's installation directory overrides any
  199. other copies of vld.ini that are created, even copies placed in the
  200. working directory of the program being debugged.
  201. Known Bugs/Restrictions:
  202. + Memory allocations made through calls to functions loaded from a DLL using
  203. delayed loading may not be detected.
  204. + Support for programs that use MFC 7.0 or MFC 7.1 is not complete yet. Some
  205. memory leaks from such MFC-based programs may not be detected.
  206. + If more than one copy of the same C Runtime DLL is loaded in the process at
  207. the same time, then some leaks may go undetected (note that loading more
  208. than one copy of the C Runtime DLL into a process at the same time is
  209. probably a bad idea to begin with).
  210. 1.9d beta (12 November 2006)
  211. ----------------------------
  212. Bugs Fixed:
  213. + Failed assertion "freed == TRUE" pops up when running a program with VLD
  214. without the debugger attached.
  215. + Some, but not all, multithreaded programs that dynamically load and unload
  216. many DLLs have been known to experience problems, such as deadlocks or
  217. exceptions, when used with VLD.
  218. + Failed assertion "exportmodule != NULL" pops up when running some programs
  219. with VLD.
  220. + VLD fails to show file names or function names in the memory leak report for
  221. some programs that are linked with the dynamic CRT library.
  222. + Access violation exceptions are thrown, but caught by the operating system,
  223. when running some programs with VLD.
  224. 1.9c beta (6 November 2006)
  225. ---------------------------
  226. New Features/Enhancements:
  227. + New NSIS installer makes setting up and using VLD much easier.
  228. + No need to manually copy dbghelp.dll to the right location, VLD will always
  229. find the right version.
  230. + MFC 8.0 is now fully supported.
  231. + The memory leak report is now written to the output window much faster.
  232. Support has been added, through a new configuration option, to slow down
  233. the report output for older versions of Visual Studio that have trouble
  234. when it is written too quickly.
  235. Bugs Fixed:
  236. + All known compatibilities with Visual Studio 2005 have been eliminated.
  237. + Leaks from calloc may go undetected.
  238. + Leaks from vector new operator may go undetected.
  239. + VLDDisable and VLDEnable do not work as expected; some memory leaks that
  240. should be ignored by VLD due to a previous call to VLDDisable are still
  241. reported.
  242. + Unloading and reloading a previously loaded module may cause leaks that
  243. occur in the module after it was reloaded to go undetected.
  244. + If vld.h is included in a release build, then the compiler will generate
  245. errors if the VLDEnable or VLDDisable APIs have been used.
  246. 1.9b beta (26 October 2006)
  247. ---------------------------
  248. Bugs Fixed:
  249. + Source compiles under Visual Studio 2005 and the binaries are compatible
  250. with applications that link with the Visual Studio 2005 C Runtime Library
  251. (msvcr80d.dll).
  252. Known Restrictions in this Release:
  253. + Memory allocations made through calls to functions loaded from a DLL using
  254. delayed loading may not be detected.
  255. + Support for programs that use MFC 7.0, MFC 7.1, or MFC 8.0 is not complete
  256. yet. Some memory leaks from such MFC-based programs may not be detected. A
  257. workaround for this restriction is to forcefully include the MFC DLLs in
  258. memory leak detection, by setting the "ForceIncludeModules" configuration
  259. option to: "mfc70d.dll mfc71d.dll mfc80d.dll" and explicitly adding vld.lib
  260. as an input file on the linker command line (can be added through project
  261. settings by adding it to the list of library modules in the linker options).
  262. This restriction does not apply to programs that use MFC 4.2, which is fully
  263. supported.
  264. 1.9a beta (9 March 2006)
  265. ------------------------
  266. New Features/Enhancements:
  267. + All new leak detection engine detects most, if not all, in-process memory
  268. leaks, not just leaks from "new" or "malloc", including COM-based leaks.
  269. + Packaged as an easier-to-use DLL. There's no longer any need to carefully
  270. decide which modules should be linked with the VLD library. Instead, you
  271. just include the vld.h header file in at least one source file from each
  272. module (DLL or EXE) to be included in memory leak detection.
  273. + Configuration is done from an INI file instead of using preprocessor macros.
  274. This allows VLD's configuration to be changed without needing to recompile
  275. the program.
  276. + Many new configuration options have been added. One of the most often
  277. requested option that has been added is the option to save the leak report
  278. to a file instead of, or in addition to, the debugger.
  279. Bugs Fixed:
  280. + The improved design of the new leak detection engine has resolved all of the
  281. previously known restrictions in version 1.0.
  282. Known Restrictions in this Release:
  283. + Memory allocations made through calls to functions loaded from a DLL using
  284. delayed loading may not be detected.
  285. + Support for programs that use MFC 7.0, MFC 7.1, or MFC 8.0 is not complete
  286. yet. Some memory leaks from such MFC-based programs may not be detected. A
  287. workaround for this restriction is to forcefully include the MFC DLLs in
  288. memory leak detection, by setting the "ForceIncludeModules" configuration
  289. option to: "mfc70d.dll mfc71d.dll mfc80d.dll" and explicitly adding vld.lib
  290. as an input file on the linker command line (can be added through project
  291. settings by adding it to the list of library modules in the linker options).
  292. This restriction does not apply to programs that use MFC 4.2, which is fully
  293. supported.
  294. 1.0 (5 August 2005)
  295. -------------------
  296. New Features/Enhancements:
  297. + Memory leak detection can now be selectively disabled and enabled at
  298. runtime, using provided APIs. This provides a straightforward way of
  299. allowing VLD to selectively "ignore" certain allocations. It can also be
  300. used to disable VLD altogether at runtime, improving application performance
  301. without needing to recompile.
  302. + If there are multiple identical memory leaks (i.e. leaks that originate from
  303. the same call stack and that leak the same size memory block) then VLD can
  304. optionally aggregate all of the repeated leaks, showing only the first such
  305. leaked block in detail in the memory leak report. A tally of the total
  306. number of leaks that match that particular size and call stack accompanies
  307. the information for that leak.
  308. + When VLD is initialized at program startup, the library type which was
  309. linked-in is displayed. This can help verify that the expected VLD library
  310. (either single-threaded static, multithreaded static, or multithreaded DLL)
  311. is being linked with your program.
  312. + The Visual Leak Detector name is displayed on most messages output to the
  313. debugger to easily differentiate VLD's output from the output produced by
  314. the built-in memory leak detector.
  315. + If any of the compile-time configuration options have been changed from
  316. their default values, then the current state of the option is displayed in
  317. the debugger when VLD is initialized.
  318. + VLD's memory leak self-checking capability (checking for leaks in VLD
  319. itself) can be verified using a new preprocessor macro that allows VLD to
  320. perform a self-test at runtime.
  321. Bugs Fixed:
  322. + If the MFC libraries are statically linked to the program being debugged,
  323. then MFC will erroneously report memory leaks in the Visual Leak Detector
  324. code and may cause an access violation while attempting to report the false
  325. memory leaks. These bogus leaks are always reported as "client block at
  326. <address>, subtype bf42" and are claimed to be "invalid objects".
  327. + VLD will leak a fixed-sized block of memory when the program exits if VLD
  328. failed to initialize because the Debug Help library (dbghelp.dll) could not
  329. be loaded.
  330. + In multithreaded programs, if the program's main thread terminates before
  331. other threads in the same process, then VLD may cause an access violation
  332. while freeing resources used internally by VLD.
  333. 0.9i beta (30 April 2005)
  334. -------------------------
  335. New Features/Enhancements:
  336. + Added support in the source code for x64 architecture. The pre-built
  337. libraries will continue to support 32-bit only. If you need 64-bit support
  338. you'll need to build 64-bit versions of the libraries from source. Note that
  339. x64 is the only 64-bit architecture supported at this time. Itanium (aka
  340. IA-64) is NOT currently supported.
  341. Bugs Fixed:
  342. + VLD does not report memory leaks that are the result of a failure to free
  343. memory allocated via a call to realloc().
  344. + In multithreaded programs, if the program's main thread terminates before
  345. other threads in the same process, then VLD may cause an access violation
  346. while checking for memory leaks.
  347. + If VLD cannot find the source file and line number information for a program
  348. address, the last known file and line number will be repeated in the call
  349. stack section of the memory leak report. The correct behavior should be for
  350. VLD to print "File and line number not available" for that call stack entry.
  351. 0.9h beta (22 April 2005)
  352. -------------------------
  353. Bugs Fixed:
  354. + Access Violations occur at random places within the VLD code when using
  355. VLD version 0.9g.
  356. + When using VLD version 0.9g, VLD may fail to report some memory leaks.
  357. 0.9g beta (22 April 2005)
  358. -------------------------
  359. New Features/Enhancements:
  360. + Replaced the temporary internal search algorithm with a permanent search
  361. algorithm that is much faster. Programs that dynamically allocate a large
  362. number of memory blocks (tens of thousands or more) will see the most
  363. significant performance boost from this version of VLD versus the previous
  364. version. Overall, this is the fastest version of VLD released to date.
  365. 0.9f beta (13 April 2005)
  366. -------------------------
  367. New Features/Enhancements:
  368. + Changed the internal search algorithm to a temporary simpler, but
  369. more stable algorithm. A permanent algorithm which should be much
  370. more efficient will be in a forthcoming release.
  371. Bugs Fixed:
  372. + Access Violation at line 319 in vldutil.cpp may occur when running a
  373. program linked with the VLD library.
  374. 0.9e beta (12 April 2005)
  375. -------------------------
  376. New Features/Enhancements:
  377. + VLD no longer uses any STL containers or STL strings. This solves all of the
  378. compatibility problems with Visual Studio .NET when using the pre-built
  379. VLD libraries.
  380. + The configuration preprocessor macros now work with C programs without the
  381. need to call VLDConfigure from within the program being debugged.
  382. Because VLDConfigure is now obsolete, it has been removed.
  383. + One new source file (vldutil.cpp) and one new header (vldutil.h) have been
  384. added. They contain utility functions and utility classes that replace
  385. functionality previously performed by STL containers and strings.
  386. + The VisualLeakDetector global class object is now constructed at C runtime
  387. initialization (i.e. it resides in the "compiler" initialization area).
  388. Because VLD no longer uses any STL components, there is no longer the risk
  389. that VLD will conflict with any STL libraries that also are constructed at
  390. C runtime initialization. The end result is that VLD starts running earlier
  391. and is destroyed later, which leads to more accurate leak detection.
  392. Bugs Fixed:
  393. + Linking to the VLD 0.9d libraries from the VLD distribution under Visual
  394. Studio .NET results in a number of linker "unresolved external symbol"
  395. errors. Unresolved symbols include "__declspec(dllimport) void __cdecl
  396. std::_Xran(void)" and "__declspec(dllimport) private: void __thiscall
  397. std::basic_string,class std::allocator >::_Eos(unsigned int)", among others.
  398. + Call stacks do not appear in the memory leak report when linking against
  399. release VLD libraries built from source with Visual Studio .NET.
  400. + If the preprocessor macro VLD_MAX_DATA_DUMP is defined as 0 (zero), then VLD
  401. will get stuck in an infinite loop, repeatedly printing the same information
  402. while attempting to display the memory leak report in the debugger's output
  403. window.
  404. 0.9d beta (30 March 2005)
  405. -------------------------
  406. New Features/Enhancements:
  407. + This version of VLD brings with it some major changes to the way VLD
  408. interfaces with programs that use it. Instead of requiring that VLD be built
  409. from source and then linked with the application, VLD is now packaged as a
  410. pre-built static library. For those who just want to use VLD and are not
  411. interested in modifying the source, this eliminates the complexities of
  412. building VLD from source. A single header file, vld.h, has been added. To
  413. link with the static library, this header needs to be included in one of the
  414. program's source files. Please see the README.txt file for details on how
  415. these changes affect how to use Visual Leak Detector.
  416. + The Microsoft Debug Help Library (dbghelp.dll) version 6.3 is now included
  417. with the VLD distribution.
  418. 0.9c beta (17 March 2005)
  419. -------------------------
  420. Bugs Fixed:
  421. + Compile error, "error C2039: 'size' : is not a member of '_CrtMemBlockHeader'"
  422. occurs at line 644 of vld.cpp when building VLD with the VLD_MAX_DATA_DUMP
  423. preprocessor macro defined.
  424. 0.9b beta (15 March 2005)
  425. -------------------------
  426. Bugs Fixed:
  427. + VLD fails to detect memory leaks in class constructors if the objects
  428. constructed are global objects.
  429. + If a debug executable is built with certain compiler optimizations turned on,
  430. specifically frame pointer omission optimization or automatic inlining, then
  431. theoretically VLD may produce incomplete or inaccurate stack traces or might
  432. fail to produce stack traces altogether.
  433. 0.9a beta (12 March 2005)
  434. -------------------------
  435. Initial Public Release