Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
bebf577
Add heapmaplock_deadlock_test (deterministic g_heapMapLock deadlock)
anporumb Nov 11, 2026
70d8b87
Load leak symbols before taking g_heapMapLock
anporumb Nov 11, 2026
ced7efc
Re-check leak symbols under g_heapMapLock; skip them when not needed …
anporumb Nov 11, 2026
11b9fa9
Never load symbols under g_heapMapLock in leak queries (review)
anporumb Nov 11, 2026
d4127c3
Leak queries nested under g_heapMapLock load nothing (review)
anporumb Nov 11, 2026
4df8a39
Take the previous no-load guard value once g_heapMapLock is held (rev…
anporumb Nov 11, 2026
b41ec97
Add chaos tests; HeapDestroy must not load symbols under g_heapMapLock
anporumb Nov 12, 2026
d938f62
Report hooks: serialize the hook set and call hooks outside its lock
anporumb Nov 12, 2026
490ab61
Format reports without the CRT's printf (debug CRT lock inversion)
anporumb Nov 12, 2026
9331239
Truncate over-long call stack lines inside the line buffer
anporumb Nov 12, 2026
e0619f6
chaos tests - report failures without the CRT
anporumb Nov 12, 2026
3e4bd1b
Defer block map changes made by report hooks during a leak walk
anporumb Nov 12, 2026
51a06b7
Fix lines misplaced by the block walk deferral commit
anporumb Nov 12, 2026
63e425f
Load symbols before g_heapMapLock in ResolveCallstacks
anporumb Nov 12, 2026
edbe5f4
Take g_DbgHelp before the loader lock in RefreshModules
anporumb Nov 12, 2026
15e1f76
Forget the old address of a block reallocated while VLD is off
anporumb Nov 12, 2026
21bba73
chaos tests - CRT allocator matrix and private heap churn
anporumb Nov 12, 2026
ae2f35b
chaos tests - thread churn with allocating thread attach and detach
anporumb Nov 12, 2026
14b8f73
Aggregate only the thread's unreported duplicates
anporumb Nov 12, 2026
fccd6d2
Keep a heap created during a block walk apart from the destroyed one
anporumb Nov 12, 2026
1189ef0
chaos tests - unusual heap flags and heap inspection under traffic
anporumb Nov 12, 2026
b724e4b
chaos tests - process exit while threads allocate and report
anporumb Nov 12, 2026
5218e67
Do not hold g_heapMapLock while walking a stack with dbghelp
anporumb Nov 12, 2026
f7d82d5
Skip symbol server lookups when symsrv.dll is not beside dbghelp
anporumb Nov 12, 2026
3e5285f
Open and close the report file with no VLD lock held
anporumb Nov 12, 2026
16ad149
Treat a NULL module list as empty in VLDSetModulesList
anporumb Nov 12, 2026
38fa7e7
chaos tests - accept a failed in-place shrink in chaos_heap_flags
anporumb Nov 12, 2026
cdf4d56
Guard reads of tracked blocks against a concurrent realloc
anporumb Nov 12, 2026
49ad523
Take the loader lock before g_DbgHelp in RefreshModules
anporumb Nov 12, 2026
bbb4097
Unmap the old address of a moved block only if it still maps that block
anporumb Nov 12, 2026
185aba6
Zero the realloc serial in a new thread's TLS
anporumb Nov 12, 2026
1e688f5
chaos tests - move blocks through every reallocation API in chaos_rea…
anporumb Nov 12, 2026
9baa5f3
Require the debug CRT no-man's land before treating a block as a CRT …
anporumb Nov 12, 2026
287012c
Check the CRT no-man's land only before skipping a block as freed or …
anporumb Nov 12, 2026
97f1410
chaos tests - count blocks from the less common CRT allocation APIs
anporumb Nov 12, 2026
c6f3f19
chaos tests - report and resolve leaks from a DLL that keeps unloading
anporumb Nov 12, 2026
0168357
chaos tests - allocations that throw through the hooks
anporumb Nov 12, 2026
a85bbfd
chaos tests - allocations on switching fibers
anporumb Nov 12, 2026
087ea60
chaos tests - leak and report under extreme option values
anporumb Nov 12, 2026
6bc7fae
chaos tests - report tens of thousands of leaks under the watchdog
anporumb Nov 12, 2026
0b11a47
Do not crash on GetProcAddress by ordinal for patched modules
anporumb Nov 12, 2026
2acda92
Report a leak whose data cannot be read instead of skipping it
anporumb Nov 12, 2026
f324457
chaos tests - leaks from over-aligned operator new
anporumb Nov 12, 2026
c0ca3db
Check the CRT guards only for blocks guessed to be debug CRT blocks
anporumb Nov 12, 2026
4566b93
Match GetProcAddress ordinals against names through the export table
anporumb Nov 12, 2026
1173596
Hold g_DbgHelp while RefreshModules enumerates modules
anporumb Nov 12, 2026
5daf401
Do not record a call-through original that leads back into VLD on ARM64
anporumb Nov 12, 2026
38ab647
chaos tests - do not report thread churn blocks held by live threads …
anporumb Nov 12, 2026
b8914fd
Do not call dbghelp under g_heapMapLock or wait for it in allocation …
anporumb Nov 12, 2026
35c5fe1
chaos tests - allocate under HeapLock while reporting with the safe s…
anporumb Nov 12, 2026
219f681
Keep the symbol cache consistent and never walk with dbghelp under g_…
anporumb Nov 12, 2026
dc09981
chaos tests - write a minidump of a hung test when CHAOS_DUMP_DIR is set
anporumb Nov 12, 2026
223b954
chaos tests - bound each heap walk in chaos_heap_flags
anporumb Nov 12, 2026
06f8c5c
Print report output only after g_heapMapLock is released
anporumb Nov 12, 2026
a9ac1b3
chaos tests - report to the debugger and an allocating hook while thr…
anporumb Nov 12, 2026
360d2f0
Survive a failed allocation or a throwing hook when printing queued r…
anporumb Nov 12, 2026
0f00937
chaos tests - list the blocks chaos_unload_report misses
anporumb Nov 12, 2026
aabb877
chaos tests - COM task memory from racing threads with exact leak counts
anporumb Nov 12, 2026
1ddc5d2
Map blocks allocated by an allocation nested in another one
anporumb Nov 12, 2026
52b7c48
chaos tests - a debug CRT alloc hook that allocates, leaks and vetoes
anporumb Nov 12, 2026
f157342
chaos tests - move a block from inside the CRT alloc hook
anporumb Nov 12, 2026
05ae61f
Handle moves and frees of a nested block before it is mapped
anporumb Nov 12, 2026
59b86e8
chaos tests - move, shrink and leak raw heap blocks from inside the C…
anporumb Nov 12, 2026
249450b
Keep the internal frames context when a nested block is moved before …
anporumb Nov 12, 2026
064985a
Compare ignored function names ordinally
anporumb Nov 12, 2026
42d9bcc
Print the agent OS build and CPU in every build job
anporumb Nov 12, 2026
8f3f12a
Print 64-bit addresses in full
anporumb Nov 12, 2026
b1c7214
Report heap blocks allocated inside a CRT allocation as heap blocks
anporumb Nov 12, 2026
b641b65
chaos tests - check that leaked blocks are reported at their own address
anporumb Nov 12, 2026
d546151
Read the CRT header of a reported block only if it is classified as a…
anporumb Nov 12, 2026
62af292
chaos tests - allocate and leak from a new handler of failing allocat…
anporumb Nov 12, 2026
f209447
chaos_new_handler - guard the handler against reentry and make every …
anporumb Nov 12, 2026
33e6ad2
chaos tests - allocate and leak from an IMallocSpy inside COM task al…
anporumb Nov 12, 2026
02b018f
chaos_malloc_spy - give a reallocated block from before the spy a header
anporumb Nov 12, 2026
7ade148
chaos_ledger - match reported blocks one to one and show what VLD kno…
anporumb Nov 12, 2026
b472a2d
chaos_heap_flags - inspect a fixed-size heap instead of the process heap
anporumb Nov 12, 2026
6a9bfe1
chaos_heaplock_report - wait for the report hook instead of a fixed time
anporumb Nov 12, 2026
b327514
getaddrinfo_missing_free_test - count only the test thread's leaks
anporumb Nov 12, 2026
03df1f0
chaos_unload_report - record whether VLD patched the helper copy a le…
anporumb Nov 12, 2026
06a09c9
chaos_ledger - match a block to the nearest report before it
anporumb Nov 12, 2026
41d8b47
getaddrinfo_missing_free_test - use the smallest of three baselines
anporumb Nov 12, 2026
82b5e6b
Replay module load/unload events onto the RefreshModules snapshot
anporumb Nov 12, 2026
6f06484
dtor_suppression_test: stop forcing all modules into leak detection
anporumb Nov 12, 2026
f2e0f19
chaos tests: start workers together so none starves the stopper
anporumb Nov 12, 2026
bcc516b
corruption: exit the heap mismatch death test before the bad free
anporumb Nov 12, 2026
8e755f2
chaos_ledger: describe report blocks no recorded leak matches
anporumb Nov 13, 2026
2ce16a6
chaos_malloc_spy: start the workers one by one
anporumb Nov 13, 2026
c260c20
Create VLD's critical sections without debug info
anporumb Nov 13, 2026
be5e4e3
Print a leak query's report output after releasing the query lock
anporumb Nov 13, 2026
629c029
getaddrinfo_missing_free_test: check the leaked block, not leak counts
anporumb Nov 13, 2026
1118ed7
Address PR 74 review comments, with a regression test per testable co…
anporumb Nov 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions build/templates/build-arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ steps:
exit 1
}

- task: PowerShell@2
displayName: 'Agent OS and CPU'
inputs:
targetType: 'inline'
script: |
$os = Get-CimInstance Win32_OperatingSystem
$ubr = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion').UBR
Write-Host "OS: $($os.Caption) $($os.Version).$ubr $($os.OSArchitecture)"
Get-CimInstance Win32_Processor | ForEach-Object { Write-Host "CPU: $($_.Name) ($($_.Manufacturer)) cores=$($_.NumberOfCores) lp=$($_.NumberOfLogicalProcessors)" }

# Discover Visual Studio and setup build variables
- task: PowerShell@2
displayName: 'Discover Visual Studio (${{ parameters.arch }})'
Expand Down Expand Up @@ -118,9 +128,21 @@ steps:
inputs:
script: '"$(ctestPath)" -C "${{ parameters.configuration }}" --output-on-failure'
workingDirectory: 'build_${{ parameters.arch }}'
env:
CHAOS_DUMP_DIR: '$(Build.SourcesDirectory)\build_${{ parameters.arch }}\chaos_dumps'

- task: PublishPipelineArtifact@1
displayName: 'Publish ${{ parameters.arch }}${{ parameters.artifactSuffix }} build'
condition: succeeded()
inputs:
targetPath: 'build_${{ parameters.arch }}'
artifact: 'build_${{ parameters.arch }}${{ parameters.artifactSuffix }}'

# Artifact names cannot be reused, so each failed attempt publishes under its
# own name and "Rerun failed jobs" can still publish.
- task: PublishPipelineArtifact@1
displayName: 'Publish ${{ parameters.arch }}${{ parameters.artifactSuffix }} failed build'
condition: failed()
inputs:
targetPath: 'build_${{ parameters.arch }}'
artifact: 'build_${{ parameters.arch }}${{ parameters.artifactSuffix }}_failed_attempt$(System.JobAttempt)'
Loading
Loading