43d90cbd86 
								
							 
						 
						
							
							
								
								[lsan] Support ASan's stack-use-after-return mode in LSan.  
							
							... 
							
							
							
							Treat the fake stack as live memory.
llvm-svn: 192593 
							
						 
						
							2013-10-14 14:04:50 +00:00  
				
					
						
							
							
								 
						
							
								f2b811a618 
								
							 
						 
						
							
							
								
								Refactor the usage of strip_path_prefix option and make it more consistent across sanitizers  
							
							... 
							
							
							
							llvm-svn: 191943 
							
						 
						
							2013-10-04 08:55:03 +00:00  
				
					
						
							
							
								 
						
							
								3b54a83d26 
								
							 
						 
						
							
							
								
								[LSan] Rework r191522 - treat allocations with short stack traces as live  
							
							... 
							
							
							
							llvm-svn: 191662 
							
						 
						
							2013-09-30 10:57:56 +00:00  
				
					
						
							
							
								 
						
							
								f56ddf7fd1 
								
							 
						 
						
							
							
								
								[LSan] Don't report leaks with single-frame stack traces  
							
							... 
							
							
							
							llvm-svn: 191522 
							
						 
						
							2013-09-27 13:54:20 +00:00  
				
					
						
							
							
								 
						
							
								7a36e6126b 
								
							 
						 
						
							
							
								
								[Sanitizer] Refactor symbolization interface: use class instead of several functions. Move some code around to get rid of extra source files  
							
							... 
							
							
							
							llvm-svn: 190410 
							
						 
						
							2013-09-10 14:36:16 +00:00  
				
					
						
							
							
								 
						
							
								b9d34443f2 
								
							 
						 
						
							
							
								
								[lsan] Colorize LSan reports.  
							
							... 
							
							
							
							llvm-svn: 189804 
							
						 
						
							2013-09-03 13:31:03 +00:00  
				
					
						
							
							
								 
						
							
								eee13914e2 
								
							 
						 
						
							
							
								
								Define SANITIZER_INTERFACE_ATTRIBUTE on Windows and fix all the places where SANITIZER_INTERFACE_ATTRIBUTE or SANITIZER_ATTRIBUTE_WEAK are used  
							
							... 
							
							
							
							llvm-svn: 188261 
							
						 
						
							2013-08-13 11:42:45 +00:00  
				
					
						
							
							
								 
						
							
								9c012165ad 
								
							 
						 
						
							
							
								
								[lsan] Make __lsan_do_leak_check() honor the detect_leaks flag.  
							
							... 
							
							
							
							Also move detect_leaks to common flags.
llvm-svn: 186821 
							
						 
						
							2013-07-22 12:38:17 +00:00  
				
					
						
							
							
								 
						
							
								1ac4824841 
								
							 
						 
						
							
							
								
								[lsan] Print direct leaks first.  
							
							... 
							
							
							
							Direct leaks are higher priority, so it makes sense to have them on top.
llvm-svn: 186819 
							
						 
						
							2013-07-22 11:18:32 +00:00  
				
					
						
							
							
								 
						
							
								655bd0d08c 
								
							 
						 
						
							
							
								
								[lsan] Add __lsan_do_leak_check() to the public interface.  
							
							... 
							
							
							
							Let users override the normal behavior to run leak checking earlier in
the process. Also fix a couple nits here and there.
llvm-svn: 186581 
							
						 
						
							2013-07-18 14:06:07 +00:00  
				
					
						
							
							
								 
						
							
								28dc98ab0d 
								
							 
						 
						
							
							
								
								[lsan] Increase the hardcoded limit on number of leaks.  
							
							... 
							
							
							
							We never expected to see so many leaks in the real world. Until we did.
llvm-svn: 186157 
							
						 
						
							2013-07-12 12:31:22 +00:00  
				
					
						
							
							
								 
						
							
								bdeff959a1 
								
							 
						 
						
							
							
								
								[lsan] Handle fork() correctly.  
							
							... 
							
							
							
							Update the main thread's os_id on every pthread_create, and before
initiating leak checking. This ensures that we have the correct os_id even if we
have forked after Init().
llvm-svn: 185815 
							
						 
						
							2013-07-08 12:57:24 +00:00  
				
					
						
							
							
								 
						
							
								852d8a4c18 
								
							 
						 
						
							
							
								
								[LSan] Use overridable hook to report error summary  
							
							... 
							
							
							
							llvm-svn: 185805 
							
						 
						
							2013-07-08 10:59:52 +00:00  
				
					
						
							
							
								 
						
							
								6672004c47 
								
							 
						 
						
							
							
								
								[lsan] When verbosity > 1, always print suppressions and summary (even if no leaks found).  
							
							... 
							
							
							
							Also fix an output bug.
llvm-svn: 185153 
							
						 
						
							2013-06-28 15:05:16 +00:00  
				
					
						
							
							
								 
						
							
								2b19ee3da8 
								
							 
						 
						
							
							
								
								[lsan] Add suppression support.  
							
							... 
							
							
							
							llvm-svn: 185152 
							
						 
						
							2013-06-28 14:38:31 +00:00  
				
					
						
							
							
								 
						
							
								895784a5b0 
								
							 
						 
						
							
							
								
								[LSan] Add the way to disable LSan at link time  
							
							... 
							
							
							
							llvm-svn: 185066 
							
						 
						
							2013-06-27 09:35:50 +00:00  
				
					
						
							
							
								 
						
							
								4e0215a71c 
								
							 
						 
						
							
							
								
								Revert to C-style callbacks for iteration over allocator chunks.  
							
							... 
							
							
							
							Also clean up LSan code, fix some comments and replace void* with uptr
to bring down the number of reinterpret_casts.
llvm-svn: 184700 
							
						 
						
							2013-06-24 08:34:50 +00:00  
				
					
						
							
							
								 
						
							
								38fa1ff710 
								
							 
						 
						
							
							
								
								[lsan] Try REALLY hard to fix Win build.  
							
							... 
							
							
							
							llvm-svn: 184557 
							
						 
						
							2013-06-21 15:50:49 +00:00  
				
					
						
							
							
								 
						
							
								85f1fffdfb 
								
							 
						 
						
							
							
								
								[lsan] This time really fix Win build.  
							
							... 
							
							
							
							llvm-svn: 184556 
							
						 
						
							2013-06-21 15:22:12 +00:00  
				
					
						
							
							
								 
						
							
								7ed5c687ed 
								
							 
						 
						
							
							
								
								[lsan] Fix win build.  
							
							... 
							
							
							
							llvm-svn: 184555 
							
						 
						
							2013-06-21 15:14:57 +00:00  
				
					
						
							
							
								 
						
							
								d28c03c03a 
								
							 
						 
						
							
							
								
								[lsan] Increase allocator space; minor fixes.  
							
							... 
							
							
							
							llvm-svn: 184554 
							
						 
						
							2013-06-21 15:10:20 +00:00  
				
					
						
							
							
								 
						
							
								b94d5e2d1c 
								
							 
						 
						
							
							
								
								[asan] Move lsan_disabled out of thread context.  
							
							... 
							
							
							
							Fix for the case where disabler is used in pthread key destructor.
llvm-svn: 184553 
							
						 
						
							2013-06-21 14:51:52 +00:00  
				
					
						
							
							
								 
						
							
								5e6b9eccce 
								
							 
						 
						
							
							
								
								[asan] Define LSan annotations as no-ops if leak detection is not supported.  
							
							... 
							
							
							
							llvm-svn: 184422 
							
						 
						
							2013-06-20 13:39:42 +00:00  
				
					
						
							
							
								 
						
							
								dac35c24c0 
								
							 
						 
						
							
							
								
								[lsan] Move symbolization and reporting out of StopTheWorld callback.  
							
							... 
							
							
							
							llvm-svn: 184303 
							
						 
						
							2013-06-19 14:04:11 +00:00  
				
					
						
							
							
								 
						
							
								bd0428b81a 
								
							 
						 
						
							
							
								
								[LSan] Use a typedef for frontier vector  
							
							... 
							
							
							
							llvm-svn: 183973 
							
						 
						
							2013-06-14 10:07:56 +00:00  
				
					
						
							
							
								 
						
							
								b0d92b3312 
								
							 
						 
						
							
							
								
								[Sanitizer] Rename InternalVector to InternalMmapVector  
							
							... 
							
							
							
							llvm-svn: 183972 
							
						 
						
							2013-06-14 09:59:40 +00:00  
				
					
						
							
							
								 
						
							
								978460c12c 
								
							 
						 
						
							
							
								
								[lsan] Harmonized some naming inconsistencies.  
							
							... 
							
							
							
							llvm-svn: 183748 
							
						 
						
							2013-06-11 15:26:20 +00:00  
				
					
						
							
							
								 
						
							
								1c4e214c32 
								
							 
						 
						
							
							
								
								[lsan] Put SANITIZER_INTERFACE_ATTRIBUTE on LSan interface functions.  
							
							... 
							
							
							
							llvm-svn: 183429 
							
						 
						
							2013-06-06 18:40:55 +00:00  
				
					
						
							
							
								 
						
							
								ecc4f5ba8e 
								
							 
						 
						
							
							
								
								[lsan] Implement __lsan_ignore_object().  
							
							... 
							
							
							
							Leak annotation similar to HeapChecker's IgnoreObject().
llvm-svn: 183412 
							
						 
						
							2013-06-06 14:17:56 +00:00  
				
					
						
							
							
								 
						
							
								17ee1abfa7 
								
							 
						 
						
							
							
								
								[lsan] Add __lsan_disable() and __lsan_enable().  
							
							... 
							
							
							
							Objects allocated after a call to __lsan_disable() will be treated as
live memory. Also add a ScopedDisabler.
llvm-svn: 183099 
							
						 
						
							2013-06-03 11:21:34 +00:00  
				
					
						
							
							
								 
						
							
								69f11803ec 
								
							 
						 
						
							
							
								
								[lsan] Use the fast version of GetBlockBegin for leak checking in LSan and ASan.  
							
							... 
							
							
							
							llvm-svn: 182994 
							
						 
						
							2013-05-31 11:13:45 +00:00  
				
					
						
							
							
								 
						
							
								39e8a6d87e 
								
							 
						 
						
							
							
								
								[lsan] Begin converting LSan tests to output tests.  
							
							... 
							
							
							
							In this CL all old tests are removed and one LIT test is added.
llvm-svn: 182730 
							
						 
						
							2013-05-27 11:41:46 +00:00  
				
					
						
							
							
								 
						
							
								e45a0677a6 
								
							 
						 
						
							
							
								
								[lsan] Allow the ignored TLS range to be empty.  
							
							... 
							
							
							
							llvm-svn: 182657 
							
						 
						
							2013-05-24 18:07:53 +00:00  
				
					
						
							
							
								 
						
							
								37dff38495 
								
							 
						 
						
							
							
								
								[lsan] Minor adjustments to LSan messages.  
							
							... 
							
							
							
							llvm-svn: 182648 
							
						 
						
							2013-05-24 15:36:30 +00:00  
				
					
						
							
							
								 
						
							
								c7715a228a 
								
							 
						 
						
							
							
								
								[lsan] Prettify LSan reports and add a summary.  
							
							... 
							
							
							
							llvm-svn: 182646 
							
						 
						
							2013-05-24 14:49:13 +00:00  
				
					
						
							
							
								 
						
							
								bc880f3a54 
								
							 
						 
						
							
							
								
								[lsan] Add exitcode flag. Kill the process if leaks are found.  
							
							... 
							
							
							
							llvm-svn: 182641 
							
						 
						
							2013-05-24 13:16:02 +00:00  
				
					
						
							
							
								 
						
							
								17f5705d3c 
								
							 
						 
						
							
							
								
								[asan] Do not invoke LSan hooks unless CAN_SANITIZE_LEAKS.  
							
							... 
							
							
							
							llvm-svn: 182389 
							
						 
						
							2013-05-21 15:35:34 +00:00  
				
					
						
							
							
								 
						
							
								620744556a 
								
							 
						 
						
							
							
								
								[lsan] Change CMakeLists to build the common LSan module for ASan.  
							
							... 
							
							
							
							Also, define CAN_SANITIZE_LEAKS.
llvm-svn: 182383 
							
						 
						
							2013-05-21 14:12:11 +00:00  
				
					
						
							
							
								 
						
							
								bcfd838bcb 
								
							 
						 
						
							
							
								
								[lsan] GetUserBegin() in LSan.  
							
							... 
							
							
							
							Separate the notions of user-visible chunk and allocator chunk, to facilitate
ASan integration.
llvm-svn: 182256 
							
						 
						
							2013-05-20 13:08:23 +00:00  
				
					
						
							
							
								 
						
							
								b5483be858 
								
							 
						 
						
							
							
								
								[lsan] Common leak checking module.  
							
							... 
							
							
							
							Leak checking functionality which will be shared between
LSan/ASan/MSan.
llvm-svn: 182249 
							
						 
						
							2013-05-20 11:06:50 +00:00