Application Verifier - Stop Codes - Miscellaneous

The following stop codes are contained in this set of tests.

Dangerous call to TerminateThread.

Probable cause

This stop is generated if a thread (thread ID is parameter1) is terminated explicitly using TerminateThread.This function is very dangerous because it introduces data corruption and deadlocks (as per MSDN).

Information displayed by Application Verifier
  • Parameter 1 - Thread ID for the caller of Terminatethread.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Dangerous
  • Stop ID: TERMINATE_THREAD_CALL
  • Stop code: 100NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Potential stack overflow in low memory conditions.

Probable cause

This stop is generated if the initial stack commit size of a thread is such that a stack overflow can be raised in low memory conditions if stack cannot be extended.

Information displayed by Application Verifier
  • Parameter 1 - Not used.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Dangerous
  • Stop ID: STACK_OVERFLOW
  • Stop code: 100NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

ExitProcess called while multiple threads still running.

Probable cause

This stop is generated if a thread calls ExitProcess while there are several threads running. In such a case, internally TerminateThread will be called for each thread and this can create deadlocks or data corruptions.

Information displayed by Application Verifier
  • Parameter 1 - Number of threads running.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Dangerous
  • Stop ID: INVALID_EXIT_PROCESS_CALL
  • Stop code: 100NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

LoadLibrary is called during DllMain.

Probable cause

This stop is generated if the code inside DllMain calls LoadLibrary or FreeLibary. It's the behavior forbidden by MSDN.

Information displayed by Application Verifier
  • Parameter 1 - Dll Name (use du to dump).
  • Parameter 2 - Dll base address.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Dangerous
  • Stop ID: INVALID_LOAD_LIBRARY_CALL
  • Stop code: 100NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

FreeLibrary is called during DllMain.

Probable cause

This stop is generated if the code inside DllMain calls LoadLibrary or FreeLibary. It's the behavior forbidden by MSDN.

Information displayed by Application Verifier
  • Parameter 1 - Dll Name (use du to dump).
  • Parameter 2 - Dll base address.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Dangerous
  • Stop ID: INVALID_FREE_LIBRARY_CALL
  • Stop code: 100NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

SetProcessWorkingSetSize is called with MinimumWorkingSetSize = 0xFFFFFFFF.

Probable cause

Please use MinimumWorkingSetSize = (SIZE_T) -1.

Information displayed by Application Verifier
  • Parameter 1 - Not used.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Dangerous
  • Stop ID: INVALID_MINIMUM_PROCESS_WORKING_SIZE
  • Stop code: 100NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

SetProcessWorkingSetSize is called with MaximumWorkingSetSize = 0xFFFFFFFF.

Probable cause

Please use MaximumWorkingSetSize = (SIZE_T) -1.

Information displayed by Application Verifier
  • Parameter 1 - Not used.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Dangerous
  • Stop ID: INVALID_MAXIMUM_PROCESS_WORKING_SIZE
  • Stop code: 100NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

SetProcessWorkingSetSizeEx is called with MinimumWorkingSetSize = 0xFFFFFFFF.

Probable cause

Please use MinimumWorkingSetSize = (SIZE_T) -1.

Information displayed by Application Verifier
  • Parameter 1 - Not used.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Dangerous
  • Stop ID: INVALID_MINIMUM_PROCESS_WORKING_SIZE_EX
  • Stop code: 100NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

SetProcessWorkingSetSizeEx is called with MaximumWorkingSetSize = 0xFFFFFFFF.

Probable cause

Please use MaximumWorkingSetSize = (SIZE_T) -1.

Information displayed by Application Verifier
  • Parameter 1 - Not used.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Dangerous
  • Stop ID: INVALID_MAXIMUM_PROCESS_WORKING_SIZE_EX
  • Stop code: 100NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Thread cannot own a critical section.

Probable cause

This stop is generated if a thread (thread ID is parameter1) is terminated, suspended or is in a state (worker thread finished a work item) in which it cannot hold a critical section. The current thread is the culprit. To debug this stop use the following debugger commands: $ kb - to get the current stack trace. If the current thread is the owner of the critical section it is probably calling ExitThread. The current thread should have released the critical section before exiting. If the current thread is calling TerminateThread or SuspendThread then it should not do this for a thread holding a critical section. $ !cs -s parameter2 - dump information about this critical section. $ ln parameter2 - to show symbols near the address of the critical section. This should help identify the leaked critical section. $ dps parameter4 - to dump the stack trace for this critical section initialization.

Information displayed by Application Verifier
  • Parameter 1 - Thread ID.
  • Parameter 2 - Critical section address.
  • Parameter 3 - Critical section debug information address.
  • Parameter 4 - Critical section initialization stack trace.

Additional Information
  • Test Layer: Locks
  • Stop ID: EXIT_THREAD_OWNS_LOCK
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Unloading DLL containing an active critical section.

Probable cause

This stop is generated if a DLL has a global variable containing a critical section and the DLL is unloaded but the critical section has not been deleted. To debug this stop use the following debugger commands: $ du parameter3 - to dump the name of the culprit DLL. $ .reload dllname or .reload dllname = parameter4 - to reload the symbols for that DLL. $ !cs -s parameter1 - dump information about this critical section. $ ln parameter1 - to show symbols near the address of the critical section. This should help identify the leaked critical section. $ dps parameter2 - to dump the stack trace for this critical section initialization.

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Critical section initialization stack trace.
  • Parameter 3 - DLL name address.
  • Parameter 4 - DLL base address.

Additional Information
  • Test Layer: Locks
  • Stop ID: LOCK_IN_UNLOADED_DLL
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Freeing heap block containing an active critical section.

Probable cause

This stop is generated if a heap allocation contains a critical section, the allocation is freed and the critical section has not been deleted. To debug this stop use the following debugger commands: $ !cs -s parameter1 - dump information about this critical section. $ ln parameter1 - to show symbols near the address of the critical section. This should help identify the leaked critical section. $ dps parameter2 - to dump the stack trace for this critical section initialization. $ parameter3 and parameter4 might help understand where this heap block was allocated (the size of the allocation is probably significant).

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Critical section initialization stack trace.
  • Parameter 3 - Heap block address.
  • Parameter 4 - Heap block size.

Additional Information
  • Test Layer: Locks
  • Stop ID: LOCK_IN_FREED_HEAP
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Double initialized or corrupted critical section.

Probable cause

Usually this stop is generated if a critical section has been initialized more than one time. In this case parameter3 and parameter4 are the stack trace addresses for two of these initializations. Some other times it is possible to get this stop if the critical section or its debug information structure has been corrupted. In this second case it is possible that parameter3 and parameter4 are invalid and useless. To debug this stop: $ !cs -s -d parameter2 - dump information about this critical section. $ ln parameter1 - to show symbols near the address of the critical section. This might help identify the critical section if this is a global variable. $ dps parameter3 and dps parameter4 - to identify the two code paths for initializing this critical section.

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Address of the debug information structure found in the active list.
  • Parameter 3 - First initialization stack trace.
  • Parameter 4 - Second initialization stack trace.

Additional Information
  • Test Layer: Locks
  • Stop ID: LOCK_DOUBLE_INITIALIZE
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Free memory containing an active critical section.

Probable cause

This stop is generated if the memory containing a critical section was freed but the critical section has not been deleted using DeleteCriticalSection. To debug this stop use the following debugger commands: $ !cs -s -d parameter2 - dump information about this critical section. $ dps parameter3 - to identify the code path for initializing this critical section. In most cases the lock verifier detects immediately leaked critical sections contained in a heap allocation, a DLL range, a virtual memory allocation or a MapViewOfFile mapped memory range and issues different stops in these cases. So there are very few cases left for this verifier stop. The lock must be in a memory range freed by kernel-mode code or freed cross-process by APIs like VirtualFreeEx. Most typically this stop will be encountered if a previous stop (e.g. LOCK_IN_FREED_HEAP or LOCK_IN_UNLOADED_DLL) was continued by hitting `g' in the debugger console.

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Critical section debug information address.
  • Parameter 3 - Critical section initialization stack trace.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Locks
  • Stop ID: LOCK_IN_FREED_MEMORY
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Corrupted critical section.

Probable cause

This stop is generated if the DebugInfo field of the critical section is pointing freed memory. Usually another valid DebugInfo structure is found in the active critical section list. Without corruption the two pointers should be identical. To debug this stop use the following debugger commands: $ !cs -s -d parameter3 - dump information about this critical section based on the current contents of the debug info structure found in the active list (this structure is rarely corrupted so usually this information is trustworthy). $ !cs -s parameter1 - dump information about this critical section based on the current contents of the critical section structure (the structure is corrupted already so sometimes this information is NOT trustworthy). $ dps parameter4 - to identify the code path for initializing this critical section. Dump the critical section at address parameter1 and look for the corruption pattern. With good symbols for ntdll.dl you can use the following commands: $ dt ntdll!_RTL_CRITICAL_SECTION LOCK_ADDRESS $ dt ntdll!_RTL_CRITICAL_SECTION_DEBUG DEBUG_ADDRESS

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Invalid debug information address of this critical section.
  • Parameter 3 - Address of the debug information found in the active list.
  • Parameter 4 - Initialization stack trace.

Additional Information
  • Test Layer: Locks
  • Stop ID: LOCK_CORRUPTED
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Invalid critical section owner thread.

Probable cause

This stop is generated if the owner thread ID is invalid in the current context. To debug this stop: $ !cs -s parameter1 - dump information about this critical section. $ ln parameter1 - to show symbols near the address of the critical section. This should help identify the critical section.

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Owning thread.
  • Parameter 3 - Expected owning thread.
  • Parameter 4 - Critical section debug info address.

Additional Information
  • Test Layer: Locks
  • Stop ID: LOCK_INVALID_OWNER
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Invalid critical section recursion count.

Probable cause

This stop is generated if the recursion count field of the critical section structure is invalid in the current context. To debug this stop: $ !cs -s parameter1 - dump information about this critical section. $ ln parameter1 - to show symbols near the address of the critical section. This should help identify the critical section.

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Recursion count.
  • Parameter 3 - Expected recursion count.
  • Parameter 4 - Critical section debug info address.

Additional Information
  • Test Layer: Locks
  • Stop ID: LOCK_INVALID_RECURSION_COUNT
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Deleting critical section with invalid lock count.

Probable cause

This stop is generated if a critical section is owned by a thread if it is deleted or if the critical section is uninitialized. To debug this stop: $ !cs -s parameter1 - dump information about this critical section. If the owning thread is 0 the critical section has not been initialized. $ ln parameter1 - to show symbols near the address of the critical section. This should help identify the critical section.

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Lock count.
  • Parameter 3 - Expected lock count.
  • Parameter 4 - Owning thread.

Additional Information
  • Test Layer: Locks
  • Stop ID: LOCK_INVALID_LOCK_COUNT
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Critical section over-released or corrupted.

Probable cause

This stop is generated if a critical section is released more times than the current thread acquired it. To debug this stop: $ !cs -s parameter1 - dump information about this critical section. $ !cs -s -d parameter4 - dump information about this critical section. $ ln parameter1 - to show symbols near the address of the critical section. This should help identify the critical section.

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Lock count.
  • Parameter 3 - Expected lock count.
  • Parameter 4 - Critical section debug info address.

Additional Information
  • Test Layer: Locks
  • Stop ID: LOCK_OVER_RELEASED
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Critical section not initialized.

Probable cause

This stop is generated if a critical section is used without being initialized or after it has been deleted. To debug this stop: $ ln parameter1 - to show symbols near the address of the critical section. This should help identify the critical section.

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Critical section debug info address.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Locks
  • Stop ID: LOCK_NOT_INITIALIZED
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Critical section is already initialized.

Probable cause

This stop is generated if a critical section is reinitialized by the current thread. To debug this stop: $ !cs -s parameter1 or !cs -s -d parameter2 - dump information about this critical section. $ ln parameter1 - to show symbols near the address of the critical section. This might help identify the critical section if this is a global variable. $ dps parameter3 - to identify the code path for the first initialization of this critical section. $ kb - to display the current stack trace, that is reinitializing this critical section.

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Critical section debug info address.
  • Parameter 3 - First initialization stack trace. Use dps to dump it if non-NULL
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Locks
  • Stop ID: LOCK_ALREADY_INITIALIZED
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Freeing virtual memory containing an active critical section.

Probable cause

This stop is generated if the current thread is calling VirtualFree on a memory block that contains an active critical section. The application should call DeleteCriticalSection on this critical section before if frees this memory. $ kb - to display the current stack trace, that is calling VirtualFree. The probable culprit is the DLL that calls VirtualFree. $ !cs -s parameter1 - dump information about this critical section. $ dps parameter2 - to identify the code path for the initialization of this critical section.

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Critical section initialization stack trace.
  • Parameter 3 - Memory block address.
  • Parameter 4 - Memory block size.

Additional Information
  • Test Layer: Locks
  • Stop ID: LOCK_IN_FREED_VMEM
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Unmapping memory region containing an active critical section.

Probable cause

This stop is generated if the current thread is calling UnmapViewOfFile on a memory block that contains an active critical section. The application should call DeleteCriticalSection on this critical section before if unmaps this memory. $ kb - to display the current stack trace, that is calling UnmapViewOfFile . The probable culprit is the DLL that calls UnmapViewOfFile. $ !cs -s parameter1 - dump information about this critical section. $ dps parameter2 - to identify the code path for the initialization of this critical section.

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Critical section initialization stack trace.
  • Parameter 3 - Memory block address.
  • Parameter 4 - Memory block size.

Additional Information
  • Test Layer: Locks
  • Stop ID: LOCK_IN_UNMAPPED_MEM
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Current thread does not own any critical sections.

Probable cause

This stop is generated if the current thread is calling LeaveCriticalSection but, according to the internal verifier bookkeeping, it doesn't own any critical section. If parameter2 is zero, probably this is a bug in the current thread. It either tries to leave a critical section that it didn't enter, or maybe it is calling LeaveCriticalSection more times than it called EnterCriticalSection for the same critical section. If parameter2 is not zero (it is a negative integer number) the internal verifier data structures are probably corrupted.

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Number of critical sections owned by current thread.
  • Parameter 3 - Not used
  • Parameter 4 - Not used

Additional Information
  • Test Layer: Locks
  • Stop ID: THREAD_NOT_LOCK_OWNER
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Using critical section that is private to another DLL.

Probable cause

This stop is generated if the current thread tries to use a private lock that lives inside another DLL. For example a.dll tries to enter a critical section defined inside ntdll.dll. Private locks cannot be used across DLLs.

Information displayed by Application Verifier
  • Parameter 1 - Critical section address.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used
  • Parameter 4 - Not used

Additional Information
  • Test Layer: Locks
  • Stop ID: LOCK_PRIVATE
  • Stop code: 200NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

The SRW Lock is not initialized.

Probable cause

This stop is generated if a thread is trying to use the SRW lock (Param1) that is not initialized. $ kb - to get the current stack trace. This is where the SRW lock is being used. The SRW lock should be initialized using InitializeSRWLock before it can be used.

Information displayed by Application Verifier
  • Parameter 1 - SRW Lock
  • Parameter 2 - Not used
  • Parameter 3 - Not used
  • Parameter 4 - Not used

Additional Information
  • Test Layer: SRWLock
  • Stop ID: NOT_INITIALIZED
  • Stop code: 250NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

The SRW Lock is already initialized.

Probable cause

This stop is generated if the SRW lock (Param1) is being re-initialized. If the SRW lock is being actively used by other threads, re-initializing the lock will result in unpredictable behavior by the application including hangs and crashes. The initialization stack trace may show an acquire if the SRW lock was statically initialized. $ kb - to get the current stack trace. This is where the SRW lock is being re-initialized. $ dps Param3 - to get the SRW lock initialization stack trace. This stack trace may show an acquire if the lock was statically initialized.

Information displayed by Application Verifier
  • Parameter 1 - SRW Lock
  • Parameter 2 - ThreadId of the thread that initialized the SRW lock.
  • Parameter 3 - Address of the initialization stack trace. Use dps <address> to see where the SRW lock was initialized.
  • Parameter 4 - Not used

Additional Information
  • Test Layer: SRWLock
  • Stop ID: ALREADY_INITIALIZED
  • Stop code: 250NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Mismatched Acquire-Release on the SRW lock.

Probable cause

This stop is generated if the SRW lock (Param1) is being released with a wrong release API. If the SRW lock was acquired for shared access and is being released using the exclusive release API or the SRW lock was acquired for exclusive access and is being release using the shared release API. This can result in unpredictable behavior by the application including hangs and crashes. $ kb - to get the current stack trace. This is where the SRW lock is being released using the wrong API. $ dps Param3 - to get the SRW lock acquire stack trace.

Information displayed by Application Verifier
  • Parameter 1 - SRW Lock
  • Parameter 2 - ThreadId of the thread that acquired the SRW lock.
  • Parameter 3 - Address of the acquire stack trace. Use dps <address> to see where the SRW lock was acquired.
  • Parameter 4 - Not used

Additional Information
  • Test Layer: SRWLock
  • Stop ID: MISMATCHED_ACQUIRE_RELEASE
  • Stop code: 250NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

The SRW lock is being acquired recursively by the same thread.

Probable cause

This stop is generated if the SRW lock (Param1) is being acquired recursively by the same thread. This will result in a deadlock and the thread would block indefinitely. Recursive acquisition of an SRW lock in exclusive mode will cause a deadlock. Recursive acquisition of an SRW lock in shared mode will cause a deadlock when there is a thread waiting for exclusive access. Consider the example below: - Thread A acquires the SRW lock in shared mode - Thread B tries to acruire the SRW lock in exclusive mode and waits - Thread A tries to acquire the SRW lock in shared mode recursively. This will be successful as long as there is no exclusive waiter (in this case B). Since SRW locks do not have writer starvation, thread A waits behind thread B. Now, Thread B is waiting for Thread A which is inturn waiting for Thread B causing a circular wait and hence a deadlock. $ kb - to get the current stack trace. This is where the SRW lock is being acquired recursively. $ dps Param2 - to get the stack trace for the first acquire.

Information displayed by Application Verifier
  • Parameter 1 - SRW Lock
  • Parameter 2 - Address of the first acquire stack trace. Use dps <address> to see where the SRW lock was acquired.
  • Parameter 3 - Not used
  • Parameter 4 - Not used

Additional Information
  • Test Layer: SRWLock
  • Stop ID: RECURSIVE_ACQUIRE
  • Stop code: 250NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

The thread that is exiting or being terminated owns an SRW lock.

Probable cause

This stop is generated if the thread (Param2) that owns the SRW lock (Param1) is exiting or being terminated. This will result in an orphaned SRW lock and the threads trying to acquire this lock would block indefinitely. $ kb - to get the current stack trace. This is where the thread is exiting or is being terminated. $ dps Param3 - to get the SRW lock acquire stack trace.

Information displayed by Application Verifier
  • Parameter 1 - SRW Lock
  • Parameter 2 - ThreadId of the thread that is exiting or being terminated.
  • Parameter 3 - Address of the acquire stack trace. Use dps <address> to see where the SRW lock was acquired.
  • Parameter 4 - Not used

Additional Information
  • Test Layer: SRWLock
  • Stop ID: EXIT_THREAD_OWNS_LOCK
  • Stop code: 250NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

The SRW lock being released was not acquired by this thread.

Probable cause

This stop is generated if the SRW lock (Param1) is being released by the thread (Param2) that didn't acquire the lock. This represents bad programming practice that is hard to get right and can lead to unpredictable behavior by the application. $ kb - to get the current stack trace. This is where the thread is releasing the SRW lock that it didn't acquire. $ dps Param4 - to get the SRW lock acquire stack trace.

Information displayed by Application Verifier
  • Parameter 1 - SRW Lock
  • Parameter 2 - Current ThreadId.
  • Parameter 3 - ThreadId of the thread that acquired the SRW lock.
  • Parameter 4 - Address of the acquire stack trace. Use dps <address> to see where the SRW lock was acquired.

Additional Information
  • Test Layer: SRWLock
  • Stop ID: INVALID_OWNER
  • Stop code: 250NAN
  • Severity: Warning
  • One-time error: 
  • Error report: None
  • Log to file: yes
  • Create backtrace: yes

The memory being freed contains an active SRW lock.

Probable cause

This stop is generated if the memory address (Param1) being freed contains an active SRW lock that is still in use. This can result in unpredictable behavior by the application including crashes and hangs. $ kb - to get the current stack trace. This is where the memory is being freed that contains an active SRW lock. $ dps Param4 - to get the SRW lock acquire stack trace.

Information displayed by Application Verifier
  • Parameter 1 - SRW Lock
  • Parameter 2 - Address of the memory being freed.
  • Parameter 3 - ThreadId of the thread that acquired the SRW lock.
  • Parameter 4 - Address of the acquire stack trace. Use dps <address> to see where the SRW lock was acquired.

Additional Information
  • Test Layer: SRWLock
  • Stop ID: IN_FREED_MEMORY
  • Stop code: 250NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

The DLL being unloaded contains an active SRW lock.

Probable cause

This stop is generated if the DLL being unloaded (Param2) contains an active SRW lock (Param1) that is still in use. This can result in unpredictable behavior by the application including crashes and hangs. $ kb - to get the current stack trace. This is where the DLL is being unloaded that contains an active SRW lock. $ du Param2 - to find the name of the DLL that is being unloaded. $ dps Param4 - to get the SRW lock acquire stack trace.

Information displayed by Application Verifier
  • Parameter 1 - SRW Lock
  • Parameter 2 - Address of the name of the DLL being unloaded. Use du <address> to see the name.
  • Parameter 3 - ThreadId of the thread that acquired the SRW lock.
  • Parameter 4 - Address of the acquire stack trace. Use dps <address> to see where the SRW lock was acquired.

Additional Information
  • Test Layer: SRWLock
  • Stop ID: IN_UNLOADED_DLL
  • Stop code: 250NAN
  • Severity: Warning
  • One-time error: 
  • Error report: None
  • Log to file: yes
  • Create backtrace: yes

Invalid handle exception for current stack trace.

Probable cause

This stop is generated if the function on the top of the stack passed an invalid handle to system routines. Usually a simple kb command will reveal what is the value of the handle passed (must be one of the parameters - usually the first one). If the value is null then this is clearly wrong. If the value looks ok you need to use !htrace debugger extension to get a history of operations pertaining to this handle value. In most cases it must be that the handle value is used after being closed.

Information displayed by Application Verifier
  • Parameter 1 - Exception code.
  • Parameter 2 - Exception record. Use .exr to display it.
  • Parameter 3 - Context record. Use .cxr to display it.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Handles
  • Stop ID: INVALID_HANDLE
  • Stop code: 300NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Invalid TLS index used for current stack trace.

Probable cause

This stop is generated if the function on the top of the stack passed an invalid TLS index to TLS system routines. Usually a simple kb command will reveal what is wrong. The typical bug here is to assume a certain value for a TLS index instead of calling TlsAlloc. This can happen either by thinking that you always get value N therefore there is no need to call TlsAlloc or more frequently due to an uninitialized variable.

Information displayed by Application Verifier
  • Parameter 1 - Invalid TLS index.
  • Parameter 2 - Expected lower part of the index.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Handles
  • Stop ID: INVALID_TLS_VALUE
  • Stop code: 300NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Invalid parameters for WaitForMultipleObjects call.

Probable cause

This stop is generated if the function on the top of the stack called WaitForMultipleObjects with NULL as the address of the array of handles to wait for or with zero as the number of handles. A simple kb command will reveal the function calling this API incorrectly.

Information displayed by Application Verifier
  • Parameter 1 - Address of object handles vector.
  • Parameter 2 - Number of handles.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Handles
  • Stop ID: INCORRECT_WAIT_CALL
  • Stop code: 300NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

NULL handle passed as parameter. A valid handle must be used.

Probable cause

This stop is generated if the function on the top of the stack passed a NULL handle to system routines.

Information displayed by Application Verifier
  • Parameter 1 - Not used.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Handles
  • Stop ID: NULL_HANDLE
  • Stop code: 300NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Waiting on a thread handle in DllMain.

Probable cause

This stop is generated if the current thread is currently running code inside the DllMain function of one of the DLLs loaded in the current process and it calls WaitForSingleObject or WaitForMultipleObjects to wait on a thread handle in the same process. This would most likely lead to a deadlock because the thread handle will not get signaled unless that second thread is exiting. When the second thread will call ExitThread it will try to acquire the DLL loader lock then call DllMain (DLL_THREAD_DETACH) for all DLLs in the current process. But the loader lock is owned by the first thread (the one that is waiting on the thread handle) so the two threads will deadlock.

Information displayed by Application Verifier
  • Parameter 1 - Thread handle.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Handles
  • Stop ID: WAIT_IN_DLLMAIN
  • Stop code: 300NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Incorrect object type for handle.

Probable cause

This stop is generated if the current thread is calling an API with a handle to an object with an incorrect object type. E.g. calling SetEvent with a semaphore handle as parameter will generate this stop. To debug this stop: $ kb - to display the current stack trace. The culprit is probably the DLL that is calling into verifier.dll; $ du parameter2 - to display the actual type of the handle. The handle value is parameter1. In the example above, this will display: Semaphore. $ du parameter3 - to display the object type expected by the API. In the example above, this name will be: Event. $ !htrace parameter1 might be helpful because it will display the stack trace for the recent open/close operations on this handle.

Information displayed by Application Verifier
  • Parameter 1 - Handle value.
  • Parameter 2 - Object type name. Use du to display it
  • Parameter 3 - Expected object type name. Use du to display it
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Handles
  • Stop ID: INCORRECT_OBJECT_TYPE
  • Stop code: 300NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Unloading DLL that allocated TLS index that was not freed.

Probable cause

This stop is generated if a DLL that allocated a TLS index is being unloaded before freeing that TLS index. To debug this stop: $ du parameter3 - display the name of the culprit DLL; $ .reload xxx.dll=parameter4 - reload symbols for the culprit DLL (if needed). xxx.dll is the name of the DLL displayed in the above step; $ u parameter2 - disassemble the code that allocated the TLS. This should point to the function that allocated the TLS but forgot to free it before the DLL was unloaded.

Information displayed by Application Verifier
  • Parameter 1 - TLS index
  • Parameter 2 - Address of the code that allocated this TLS index.
  • Parameter 3 - DLL name address. Use du to dump it.
  • Parameter 4 - DLL base address.

Additional Information
  • Test Layer: TLS
  • Stop ID: TLS_LEAK
  • Stop code: 350NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Corrupted verifier TLS structure.

Probable cause

This stop is generated if the internal verifier structures used to store the state of TLS slots for thread are corrupted. Very likely this is due to some random corruption in the process.

Information displayed by Application Verifier
  • Parameter 1 - TEB address.
  • Parameter 2 - Expected TEB address.
  • Parameter 3 - Thread ID.
  • Parameter 4 - Expected thread ID.

Additional Information
  • Test Layer: TLS
  • Stop ID: CORRUPTED_TLS
  • Stop code: 350NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Using an invalid TLS index.

Probable cause

This stop is generated if an invalid TLS index is used. In most cases, it's because code is still using this index when TlsFree is called. Here is an example for the threadpool thread. T1: Dll loads and TlsAlloc T1: Queue callback T1: Skipped waited/cancelled callback T1: TlsFree T2: Callback runs and calls TlsSetValue T1: Dll unloads

Information displayed by Application Verifier
  • Parameter 1 - TLS index
  • Parameter 2 - Not Used.
  • Parameter 3 - Not Used.
  • Parameter 4 - Not Used.

Additional Information
  • Test Layer: TLS
  • Stop ID: INVALID_TLS_INDEX
  • Stop code: 350NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Freeing virtual memory block with invalid size or start address.

Probable cause

This stop is generated if the app verifier detects a VirtualFree or a DLL unload with an invalid start address or size of the memory allocation. In the case of DLL unload this probably means a memory corruption inside the loaded DLL list. To debug this stop look at the current stack trace and the memory address and size that is about to be freed and try to determine why they are invalid.

Information displayed by Application Verifier
  • Parameter 1 - Allocation base address.
  • Parameter 2 - Memory region size.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: INVALID_FREEMEM
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Incorrect virtual alloc call.

Probable cause

This stop is generated if the app verifier detects a VirtualAlloc call with an invalid start address or size of the memory allocation. To debug this stop look at the current stack trace (kb) and the memory address and size that is about to be allocated and try to determine why they are invalid.

Information displayed by Application Verifier
  • Parameter 1 - Pointer to allocation base address.
  • Parameter 2 - Pointer to memory region size.
  • Parameter 3 - Not used
  • Parameter 4 - Not used

Additional Information
  • Test Layer: Memory
  • Stop ID: INVALID_ALLOCMEM
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Incorrect map view call.

Probable cause

This stop is generated if the app verifier detects a MapViewOfFile call with an invalid base address or size of the mapping. To debug this stop look at the current stack trace (kb) and the memory address and size that is about to be mapped and try to determine why they are invalid.

Information displayed by Application Verifier
  • Parameter 1 - Pointer to mapping base address.
  • Parameter 2 - Pointer to view size.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: INVALID_MAPVIEW
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Probing invalid address.

Probable cause

This stop is generated if the app verifier detects an IsBadXXXPtr call with an invalid address (e.g. a kernel-mode address, instead of a normal user-mode address) for the memory buffer to be probed. To debug this stop look at the current stack trace (kb) and try to determine why the caller of the IsBadXXXPtr function ended up with an invalid address. Many times, the address is plain bogus, e.g. an uninitialized pointer. MSDN library lists a few reasons why applications should not use the IsBadXXXPtr APIs: In a preemptive multitasking environment, it is possible for some other thread to change the process's access to the memory being tested. Dereferencing potentially invalid pointers can disable stack expansion in other threads. A thread exhausting its stack, when stack expansion has been disabled, results in the immediate termination of the parent process, with no pop-up error window or diagnostic information. Threads in a process are expected to cooperate in such a way that one will not free memory that the other needs. Use of this function does not negate the need to do this. If this is not done, the application may fail in an unpredictable manner. Because of all these reasons, we recommend to never use these APIs.

Information displayed by Application Verifier
  • Parameter 1 - Start address.
  • Parameter 2 - Memory block size.
  • Parameter 3 - Invalid address.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: PROBE_INVALID_ADDRESS
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Probing free memory.

Probable cause

This stop is generated if the app verifier detects an IsBadXXXPtr call for a memory allocation that is free. This is very bad because it is possible that, in some other cases, this memory was already reused for some other allocation. Since the current code path (kb) doesn't own that memory, it could end up corrupting someone else's memory, with disastrous effects. To debug this stop look at the current stack trace (kb) and try to determine why the caller of the IsBadXXXPtr function ended up probing free memory. The address could be plain bogus (e.g. uninitialized pointer) or maybe already freed memory. If the memory was already freed by one of the VirtualFree or UnmapViewOfFile APIs, `!avrf -vs -a parameter3' will search for a log of stack traces of the code paths that allocated/freed that address and display these stack traces if they are available. This might show the stack trace that freed up this memory. More often, the memory is an already freed heap allocation. To check for that possibility, `!avrf -hp -a parameter3' will search for a log of stack traces of the code paths that allocated/freed that address from/to the heap and display these stack traces if they are available. MSDN library lists a few reasons why applications should not use the IsBadXXXPtr APIs: In a preemptive multitasking environment, it is possible for some other thread to change the process's access to the memory being tested. Dereferencing potentially invalid pointers can disable stack expansion in other threads. A thread exhausting its stack, when stack expansion has been disabled, results in the immediate termination of the parent process, with no pop-up error window or diagnostic information. Threads in a process are expected to cooperate in such a way that one will not free memory that the other needs. Use of this function does not negate the need to do this. If this is not done, the application may fail in an unpredictable manner. Because of all these reasons, we recommend to never use these APIs.

Information displayed by Application Verifier
  • Parameter 1 - Start address.
  • Parameter 2 - Memory block size.
  • Parameter 3 - Address of free memory page.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: PROBE_FREE_MEM
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Probing a guard page.

Probable cause

This stop is generated if the app verifier detects an IsBadXXXPtr call for a memory allocation that contains at least one GUARD_PAGE. This is very bad because it is very possible that this GUARD_PAGE is the end of the current stack of a thread. As documented in the MSDN library: Dereferencing potentially invalid pointers can disable stack expansion in other threads. A thread exhausting its stack, when stack expansion has been disabled, results in the immediate termination of the parent process, with no pop-up error window or diagnostic information. To debug this stop look at the current stack trace (kb) and try to determine why the caller of the IsBadXXXPtr function ended up probing a GUARD_PAGE. MSDN library lists a few reasons why applications should not use the IsBadXXXPtr APIs: In a preemptive multitasking environment, it is possible for some other thread to change the process's access to the memory being tested. Dereferencing potentially invalid pointers can disable stack expansion in other threads. A thread exhausting its stack, when stack expansion has been disabled, results in the immediate termination of the parent process, with no pop-up error window or diagnostic information. Threads in a process are expected to cooperate in such a way that one will not free memory that the other needs. Use of this function does not negate the need to do this. If this is not done, the application may fail in an unpredictable manner. Because of all these reasons, we recommend to never use these APIs.

Information displayed by Application Verifier
  • Parameter 1 - Start address.
  • Parameter 2 - Memory block size.
  • Parameter 3 - Address of guard page.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: PROBE_GUARD_PAGE
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Probing NULL address.

Probable cause

This stop is generated if the app verifier detects an IsBadXXXPtr call with a NULL address. To debug this stop look at the current stack trace (kb) and try to determine why the caller of the IsBadXXXPtr function ended up with the NULL address. This is typically the sign of someone not checking the return value of one of the memory allocation functions. For example the code below is incorrect: int main (void) { PVOID p; p = malloc (1024); Use (p); return 0; } void Use (PVOID p) { if (IsBadReadPtr (p)) { return; } // // p is safe to be used here. // } This code should be re-written as this: int main (void) { PVOID p; p = malloc (1024); if (NULL == p)) { return -1; } Use (p); return 0; } void Use (PVOID p) { // // p is safe to be used here. // } MSDN library lists a few reasons why applications should not use the IsBadXXXPtr APIs: In a preemptive multitasking environment, it is possible for some other thread to change the process's access to the memory being tested. Dereferencing potentially invalid pointers can disable stack expansion in other threads. A thread exhausting its stack, when stack expansion has been disabled, results in the immediate termination of the parent process, with no pop-up error window or diagnostic information. Threads in a process are expected to cooperate in such a way that one will not free memory that the other needs. Use of this function does not negate the need to do this. If this is not done, the application may fail in an unpredictable manner. Because of all these reasons, we recommend to never use these APIs.

Information displayed by Application Verifier
  • Parameter 1 - Not used.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: PROBE_NULL
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Probing memory block with invalid start address or size.

Probable cause

This stop is generated if the app verifier detects an IsBadXXXPtr call with an invalid start address (e.g. a kernel-mode address, instead of a normal user-mode address) or invalid size for the memory buffer to be probed. To debug this stop look at the current stack trace (kb) and try to determine why the caller of the IsBadXXXPtr function ended up with an invalid address or size. Many times, the address or size are plain bogus, e.g. an uninitialized variables. MSDN library lists a few reasons why applications should not use the IsBadXXXPtr APIs: In a preemptive multitasking environment, it is possible for some other thread to change the process's access to the memory being tested. Dereferencing potentially invalid pointers can disable stack expansion in other threads. A thread exhausting its stack, when stack expansion has been disabled, results in the immediate termination of the parent process, with no pop-up error window or diagnostic information. Threads in a process are expected to cooperate in such a way that one will not free memory that the other needs. Use of this function does not negate the need to do this. If this is not done, the application may fail in an unpredictable manner. Because of all these reasons, we recommend to never use these APIs.

Information displayed by Application Verifier
  • Parameter 1 - Start address.
  • Parameter 2 - Memory block size.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: PROBE_INVALID_START_OR_SIZE
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Unloading DLL with invalid size or start address.

Probable cause

This stop is generated if the app verifier detects a DLL unload with an invalid start address or size of the DLL memory range. This probably means a memory corruption inside the internal ntdll.dll loaded DLL list.

Information displayed by Application Verifier
  • Parameter 1 - DLL memory base address.
  • Parameter 2 - DLL memory range size.
  • Parameter 3 - DLL name address. Use du to dump it.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: INVALID_DLL_RANGE
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Freeing memory block inside current thread's stack address range.

Probable cause

This stop is generated if the app verifier detects a VirtualFree for a block of memory that is actually part of the current thread's stack (!). To debug this stop look at the current stack trace (kb) and try to understand why the function that called VirtualFree thought that the memory block was dynamically allocated or mapped but that was actually memory allocated from the stack.

Information displayed by Application Verifier
  • Parameter 1 - Allocation base address.
  • Parameter 2 - Memory region size.
  • Parameter 3 - Stack low limit address.
  • Parameter 4 - Stack high limit address.

Additional Information
  • Test Layer: Memory
  • Stop ID: FREE_THREAD_STACK_MEMORY
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Incorrect FreeType parameter for VirtualFree operation.

Probable cause

This stop is generated if the app verifier detects a VirtualFree with an incorrect value for the FreeType parameter. The only two acceptable values for this parameter are MEM_DECOMMIT and MEM_RELEASE. If VirtualFree is called with any other value except these two, VirtualFree will fail to free the memory. To debug this stop look at the current stack trace (kb): the caller of VirtualFree is probably the culprit.

Information displayed by Application Verifier
  • Parameter 1 - Incorrect value used by the application.
  • Parameter 2 - Expected correct value 1.
  • Parameter 3 - Expected correct value 2.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: INVALID_FREE_TYPE
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Trying to free virtual memory block that is already free.

Probable cause

This stop is generated if the app verifier detects a VirtualFree for an address that is already free. To debug this stop look at the current stack trace (kb) and try to determine why the memory is already free but the application is trying to free it again. `!avrf -vs -a parameter1' will search for a log of stack traces of the code paths that allocated/freed that address and display these stack traces if they are available. This might show the stack trace that freed up this memory.

Information displayed by Application Verifier
  • Parameter 1 - Memory block address.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: MEM_ALREADY_FREE
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Incorrect Size parameter for VirtualFree (MEM_RELEASE) operation.

Probable cause

This stop is generated if the app verifier detects a VirtualFree (MEM_RELEASE) with a non-zero value for the dwSize parameter. When using MEM_RELEASE , the only acceptable value for this parameter is 0. If VirtualFree is called with any other value except 0, VirtualFree will fail to free the memory. To debug this stop look at the current stack trace (kb): the caller of VirtualFree is probably the culprit.

Information displayed by Application Verifier
  • Parameter 1 - Incorrect size used by the application.
  • Parameter 2 - Expected correct size (0).
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: INVALID_FREE_SIZE
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Unexpected exception raised in DLL entry point routine.

Probable cause

This stop is generated if a DLL's entry point (DllMain) function is raising an exception. One example why this is bad is: if DllMain(DLL_PROCESS_ATTACH) is raising an exception, the Windows DLL loader will: - Catch and hide the exception; - Unload the DLL without calling its DllMain(DLL_PROCESS_DETACH). So in many cases the DLL allocated some resources already, then it raised the exception, and it will not have a chance to release these resources on DllMain (DLL_PROCESS_DETACH). To debug this stop: $ du parameter1 - to display the DLL name; $ .exr parameter2 - to display the exception information; $ .cxr parameter3 followed by kb - to display the exception context information and the stack trace for the time when the exception was raised; $ parameter4 is the address of an internal verifier structure and doesn't have any significance for most of the verifier users.

Information displayed by Application Verifier
  • Parameter 1 - DLL name (use du to dump it).
  • Parameter 2 - Exception record. Use .exr to display it.
  • Parameter 3 - Context record. Use .cxr to display it.
  • Parameter 4 - Verifier dll descriptor

Additional Information
  • Test Layer: Memory
  • Stop ID: DLL_UNEXPECTED_EXCEPTION
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Unexpected exception raised in thread function.

Probable cause

This stop is generated if a thread function is raising an exception. This is bad because the whole process will be killed. To debug this stop: $ parameter1 might be significant for the type of exception. E.g. an exception code C0000005 means Access Violation; $ .exr parameter2 - to display the exception information; $ .cxr parameter3 followed by kb - to display the exception context information;

Information displayed by Application Verifier
  • Parameter 1 - Exception code.
  • Parameter 2 - Exception record. Use .exr to display it.
  • Parameter 3 - Context record. Use .cxr to display it.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: THREAD_UNEXPECTED_EXCEPTION
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Unexpected exception raised while probing memory.

Probable cause

This stop is generated if we get an exception during an IsBadXXXPtr call. This means that the memory buffer we are probing doesn't actually have the protection assumed by the caller, or that the memory was freed already, etc. See the discussion above about other stop code (PROBE_INVALID_ADDRESS, PROBE_FREE_MEM, PROBE_GUARD_PAGE, PROBE_NULL, PROBE_INVALID_START_OR_SIZE) for more examples of why using the IsBadXXXPtr APIs is not recommended. To debug this stop: $ parameter1 will typically be C0000005 and that means Access Violation; $ .exr parameter2 - to display the exception information; $ .cxr parameter3 followed by kb - to display the exception context information and stack trace at the time when the exception was raised;

Information displayed by Application Verifier
  • Parameter 1 - Exception code.
  • Parameter 2 - Exception record. Use .exr to display it.
  • Parameter 3 - Context record. Use .cxr to display it.
  • Parameter 4 - Not used

Additional Information
  • Test Layer: Memory
  • Stop ID: PROBE_UNEXPECTED_EXCEPTION
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Trying to reset NULL address.

Probable cause

This stop is generated if the app verifier detects a VirtualFree (MEM_RESET) call with a NULL first parameter. MEM_RESET should be used only for already allocated memory, so NULL is not a valid first parameter in this case.

Information displayed by Application Verifier
  • Parameter 1 - Not used.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: INVALID_MEM_RESET
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Freeing heap memory block inside current thread's stack address range.

Probable cause

This stop is generated if the app verifier detects a HeapFree, for a block of memory that is actually part of the current thread's stack (!). To debug this stop look at the current stack trace (kb) and try to understand why the function that called HeapFree thought that the memory block was dynamically allocated or mapped but that was actually memory allocated from the stack.

Information displayed by Application Verifier
  • Parameter 1 - Allocation base address.
  • Parameter 2 - Memory region size.
  • Parameter 3 - Stack low limit address.
  • Parameter 4 - Stack high limit address.

Additional Information
  • Test Layer: Memory
  • Stop ID: FREE_THREAD_STACK_MEMORY_AS_HEAP
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Unmapping memory region inside current thread's stack address range.

Probable cause

This stop is generated if the app verifier detects an UnmapViewOfFile, for a block of memory that is actually part of the current thread's stack (!). To debug this stop look at the current stack trace (kb) and try to understand why the function that called UnmapViewOfFile thought that the memory block was dynamically allocated or mapped but that was actually memory allocated from the stack.

Information displayed by Application Verifier
  • Parameter 1 - Allocation base address.
  • Parameter 2 - Memory region size.
  • Parameter 3 - Stack low limit address.
  • Parameter 4 - Stack high limit address.

Additional Information
  • Test Layer: Memory
  • Stop ID: FREE_THREAD_STACK_MEMORY_AS_MAP
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Incorrect RTL_RESOURCE address.

Probable cause

This stop is generated if the application is trying to use NULL or some other incorrect address (e.g. a kernel-mode address) as the address of a valid object. RtlInitializeResource (NULL) is an incorrect API call that will trigger this kind of verifier stop. param1 is the incorrect address used and the culprit is on the stack trace (display it with kb).

Information displayed by Application Verifier
  • Parameter 1 - Address.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: INVALID_RESOURCE_ADDRESS
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Invalid critical section address.

Probable cause

This stop is generated if the application is trying to use NULL or some other incorrect address (e.g. a kernel-mode address) as the address of a valid object. EnterCriticalSection(NULL) is an incorrect API call that will trigger this kind of verifier stop. param1 is the incorrect address used and the culprit is on the stack trace (display it with kb).

Information displayed by Application Verifier
  • Parameter 1 - Address.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: INVALID_CRITSECT_ADDRESS
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Attempt to execute code in non-executable memory.

Probable cause

This stop is generated if the application is trying to run code from an address that is non-executable or free. To debug this stop: $ u parameter2 - to unassemble the culprit code $ .exr parameter3 - to display the exception information; $ .cxr parameter4 followed by kb - to display the exception context information and the stack trace for the time when the exception was raised.

Information displayed by Application Verifier
  • Parameter 1 - Address being accessed.
  • Parameter 2 - Code performing invalid access.
  • Parameter 3 - Exception record. Use .exr to display it.
  • Parameter 4 - Context record. Use .cxr to display it.

Additional Information
  • Test Layer: Memory
  • Stop ID: THREAD_UNEXPECTED_EXCEPTION_CODE
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Unexpected exception raised while initializing output buffer.

Probable cause

This stop is generated if we get an exception while initializing a buffer specified as output parameter for a Win32 or CRT API. This typically means that the specified output buffer size is incorrect. To debug this stop: $ .exr parameter3 - to display the exception information; $ .cxr parameter4 followed by kb - to display the exception context information and stack trace at the time when the exception was raised.

Information displayed by Application Verifier
  • Parameter 1 - Buffer start address.
  • Parameter 2 - Buffer size.
  • Parameter 3 - Exception record. Use .exr to display it.
  • Parameter 4 - Context record. Use .cxr to display it.

Additional Information
  • Test Layer: Memory
  • Stop ID: OUTBUFF_UNEXPECTED_EXCEPTION
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Unexpected exception when trying to find heap block size.

Probable cause

This stop is generated if we get an exception while calling HeapSize for a heap block that is being freed. This typically means that the specified heap block address is incorrect or the heap is corrupted. To debug this stop: $ .exr parameter3 - to display the exception record; $ .cxr parameter4 followed by kb - to display the exception context information and stack trace at the time when the exception was raised.

Information displayed by Application Verifier
  • Parameter 1 - Address of the heap block being freed.
  • Parameter 2 - Heap handle.
  • Parameter 3 - Exception record. Use .exr to display it.
  • Parameter 4 - Context record. Use .cxr to display it.

Additional Information
  • Test Layer: Memory
  • Stop ID: SIZE_HEAP_UNEXPECTED_EXCEPTION
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Freeing memory block with invalid start address.

Probable cause

This stop is generated if the program calls VirtualFree (MEM_RELEASE) with an lpAddress parameter that is not the base address returned by the VirtualAlloc or VirtualAllocEx function when the region of pages was reserved; To debug this stop: $ kb - to display the current stack trace, that is calling VirtualFree. The probable culprit is the DLL that calls VirtualFree.

Information displayed by Application Verifier
  • Parameter 1 - Address of memory block being freed.
  • Parameter 2 - Expected correct memory block address.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: INVALID_FREEMEM_START_ADDRESS
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Unmapping memory block with invalid start address.

Probable cause

This stop is generated if the program calls UnmapViewOfFile with an lpBaseAddress parameter that is not identical to the value returned by a previous call to the MapViewOfFile or MapViewOfFileEx function. To debug this stop: $ kb - to display the current stack trace, that is calling UnmapViewOfFile. The probable culprit is the DLL that calls UnmapViewOfFile.

Information displayed by Application Verifier
  • Parameter 1 - Address of memory block being unmapped.
  • Parameter 2 - Expected correct memory block address.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: INVALID_UNMAPVIEW_START_ADDRESS
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

unexpected exception raised in threadpool callback function.

Probable cause

This stop is generated if a callback function in the threadpool thread is raising an exception. To debug this stop: $ parameter1 might be significant for the type of exception. E.g. an exception code C0000005 means Access Violation. $ .exr parameter2 - to display the exception information. $ .cxr parameter3 followed by kb - to display the exception context information.

Information displayed by Application Verifier
  • Parameter 1 - Exception code
  • Parameter 2 - Exception record. Use .exr to display it
  • Parameter 3 - Context record. Use .cxr to display it
  • Parameter 4 - Not used

Additional Information
  • Test Layer: Memory
  • Stop ID: THREADPOOL_UNEXPECTED_EXCEPTION
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

code in non-executable memory

Probable cause

This stop is generated if the application is trying to run code from an address that is non-executable or free. To debug this stop: $ u parameter2 - to unassemble the culprit code $ .exr parameter3 - to display the exception information $ .cxr parameter4 followed by kb - to display the exception context information and the stack trace for the time when the exception was raised.

Information displayed by Application Verifier
  • Parameter 1 - Address being accessed
  • Parameter 2 - Code performing invalid access
  • Parameter 3 - Exception record. Use .exr to display it.
  • Parameter 4 - Context record. Use .cxr to display it.

Additional Information
  • Test Layer: Memory
  • Stop ID: THREADPOOL_UNEXPECTED_EXCEPTION_CODE
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Creating executable heap.

Probable cause

This stop is generated if the application is creating an executable heap. This can be a security risk.

Information displayed by Application Verifier
  • Parameter 1 - Not used.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: EXECUTABLE_HEAP
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Allocating executable memory.

Probable cause

This stop is generated if the application is allocating executable memory. This can be a security risk.

Information displayed by Application Verifier
  • Parameter 1 - Page protection specified by caller.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: Memory
  • Stop ID: EXECUTABLE_MEMORY
  • Stop code: 600NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Attempt to execute code in non-executable memory (first chance).

Probable cause

This stop is generated if the application is trying to run code from an address that is non-executable or free. To debug this stop: $ u parameter2 - to unassemble the culprit code $ .exr parameter3 - to display the exception information; $ .cxr parameter4 followed by kb - to display the exception context information and the stack trace for the time when the exception was raised.

Information displayed by Application Verifier
  • Parameter 1 - Address being accessed.
  • Parameter 2 - Code performing invalid access.
  • Parameter 3 - Exception record. Use .exr to display it.
  • Parameter 4 - Context record. Use .cxr to display it.

Additional Information
  • Test Layer: Exceptions
  • Stop ID: FIRST_CHANCE_ACCESS_VIOLATION_CODE
  • Stop code: 650NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

The priority of this threadpool thread has been changed.

Probable cause

This stop is generated if the thread priority is changed when it's returned to threadpool.

Information displayed by Application Verifier
  • Format: -  threadpool thread (%x) having executed Callback (%p) has an altered thread priority (%i -> %i)
  • Parameter 1 - Callback function.
  • Parameter 2 - Context.
  • Parameter 3 - Threadpool Object allocation stack trace, use dps to dump it.
  • Parameter 4 - Current Priority.

Additional Information
  • Test Layer: Threadpool
  • Stop ID: INCONSISTENT_PRIORITY
  • Stop code: 700NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

The affinity of this threadpool thread has been changed.

Probable cause

This stop is generated if the thread affinity is changed when it's returned to threadpool.

Information displayed by Application Verifier
  • Format: - threadpool thread (%x) having executed Callback (%p) has an altered thread affinity mask (%p -> %p)
  • Parameter 1 - Callback function.
  • Parameter 2 - Context.
  • Parameter 3 - Threadpool Object allocation stack trace, use dps to dump it.
  • Parameter 4 - Current affinity.

Additional Information
  • Test Layer: Threadpool
  • Stop ID: INCONSISTENT_AFFINITY_MASK
  • Stop code: 700NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Unprocessed msg in the msg pool of current thread.

Probable cause

This stop is generated if any message left as unprocessed when this threadpool thread is returned to the pool. It's dangerous since it will be processed in a totally different context. Please use Please use !avrf -tp <Param4> to see the messages posted to this thread.

Information displayed by Application Verifier
  • Format: - threadpool thread (%x) having executed Callback (%p) has outstanding window message (%x: %x)
  • Parameter 1 - Callback function.
  • Parameter 2 - Context.
  • Parameter 3 - Threadpool Object allocation stack trace, use dps to dump it.
  • Parameter 4 - Threadpool thread id. Please use !avrf -tp <threadid> to see the messages posted to this thread.

Additional Information
  • Test Layer: Threadpool
  • Stop ID: ORPHANED_THREAD_MESSAGE
  • Stop code: 700NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Unclosed window belonged to the current thread.

Probable cause

This stop is generated if any window is kept alive when this threadpool thread is returned to the pool.

Information displayed by Application Verifier
  • Format: -  threadpool thread (%x) having executed Callback (%p) has valid hwnd (%x: %s) which could receive messages
  • Parameter 1 - Callback function.
  • Parameter 2 - Context.
  • Parameter 3 - Threadpool Object allocation stack trace, use dps to dump it.
  • Parameter 4 - Threadpool thread id.

Additional Information
  • Test Layer: Threadpool
  • Stop ID: ORPHANED_THREAD_WINDOW
  • Stop code: 700NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

ExitThread() on a threadpool thread.

Probable cause

This stop is generated if ExitThread is called on a threadpool thread.It's forbidden since it will make system unstable. It will cause resource leak, freeze or AV.

Information displayed by Application Verifier
  • Parameter 1 - Callback function.
  • Parameter 2 - Context.
  • Parameter 3 - Threadpool Object allocation stack trace, use dps to dump it.
  • Parameter 4 - Not Used.

Additional Information
  • Test Layer: Threadpool
  • Stop ID: ILLEGAL_THREAD_EXIT
  • Stop code: 700NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Thread is in impersonation state when it's returned to a threadpool thread.

Probable cause

This stop is generated if call back function change the thread token to impersonate another user and forgot to reset it before returning it back to the threadpool.

Information displayed by Application Verifier
  • Parameter 1 - Callback function.
  • Parameter 2 - Context.
  • Parameter 3 - Threadpool Object allocation stack trace, use dps to dump it.
  • Parameter 4 - Not Used.

Additional Information
  • Test Layer: Threadpool
  • Stop ID: THREAD_IN_IMPERSONATION
  • Stop code: 700NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

A function which requires persistent thread is called.

Probable cause

Some Microsoft Windows APIs need to be called inside a dedicated or persistent thread. In the threadpool you should generally avoid using thread local storage and queuing asynchronous calls that require a persistent thread, such as the RegNotifyChangeKeyValue function. However, such functions can be queued to a persistent worker thread using QueueUserWorkItem with the WT_EXECUTEINPERSISTENTTHREAD option. A kb in debugger will reveal the caller.

Information displayed by Application Verifier
  • Parameter 1 - Callback function.
  • Parameter 2 - Context.
  • Parameter 3 - Threadpool Object allocation stack trace, use dps to dump it.
  • Parameter 4 - Not Used.

Additional Information
  • Test Layer: Threadpool
  • Stop ID: PERSISTED_THREAD_NEEDED
  • Stop code: 700NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Thread is in dirty transaction state.

Probable cause

This stop is generated if call back function forgot to close or reset the current transaction handle.

Information displayed by Application Verifier
  • Parameter 1 - Callback function.
  • Parameter 2 - Context.
  • Parameter 3 - Threadpool Object allocation stack trace, use dps to dump it.
  • Parameter 4 - Transaction Handle.

Additional Information
  • Test Layer: Threadpool
  • Stop ID: DIRTY_TRANSACTION_CONTEXT
  • Stop code: 700NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

This threadpool state has unbalanced CoInit and CoUnInit calls.

Probable cause

This stop is generated if call back function calls CoInit and CoUnInit unbalanced.

Information displayed by Application Verifier
  • Parameter 1 - Callback function.
  • Parameter 2 - Context.
  • Parameter 3 - Threadpool Object allocation stack trace, use dps to dump it.
  • Parameter 4 - Balanced Call counts.

Additional Information
  • Test Layer: Threadpool
  • Stop ID: DIRTY_COM_STATE
  • Stop code: 700NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

The parameters for the timer object are inconsistent. Period should be 0 when WT_EXECUTEONLYONCE is specified when creating the timer

Probable cause

This stop is generated if the period to signal the timer is not zero when the timer is set to signal only once with the WT_EXECUTEONLYONCE flag

Information displayed by Application Verifier
  • Parameter 1 - Period specified.
  • Parameter 2 - Flags specified.
  • Parameter 3 - Not Used.
  • Parameter 4 - Not Used.

Additional Information
  • Test Layer: Threadpool
  • Stop ID: INCONSISTENT_TIMER_PARAMS
  • Stop code: 700NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

The loader lock has been held by the threadpool thread within the callback.

Probable cause

This stop is generated if the loader lock is held within the callback and is not released when the thread is returned to the threadpool.

Information displayed by Application Verifier
  • Parameter 1 - Callback function.
  • Parameter 2 - Context.
  • Parameter 3 - Threadpool Object allocation stack trace, use dps to dump it.
  • Parameter 4 - Not Used.

Additional Information
  • Test Layer: Threadpool
  • Stop ID: LOADER_LOCK_HELD
  • Stop code: 700NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

The preferred language is set by the threadpool thread within the callback.

Probable cause

This stop is generated if the preferred language is set within the callback and is not cleared when the thread is returned to the threadpool.

Information displayed by Application Verifier
  • Parameter 1 - Callback function.
  • Parameter 2 - Context.
  • Parameter 3 - Threadpool Object allocation stack trace, use dps to dump it.
  • Parameter 4 - Not Used.

Additional Information
  • Test Layer: Threadpool
  • Stop ID: PREFERRED_LANGUAGES_SET
  • Stop code: 700NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

The background priority is set by the threadpool thread within the callback.

Probable cause

This stop is generated if the background priority is set within the callback and is not disabled when the thread is returned to the threadpool.

Information displayed by Application Verifier
  • Parameter 1 - Callback function.
  • Parameter 2 - Context.
  • Parameter 3 - Threadpool Object allocation stack trace, use dps to dump it.
  • Parameter 4 - Not Used.

Additional Information
  • Test Layer: Threadpool
  • Stop ID: BACKGROUND_PRIORITY_SET
  • Stop code: 700NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

TerminateThread() on a threadpool thread.

Probable cause

This stop is generated if TerminateThread is called on a threadpool thread. It's forbidden since it will make system unstable. It will cause resource leak, freeze or AV.

Information displayed by Application Verifier
  • Parameter 1 - Not Used.
  • Parameter 2 - Not Used.
  • Parameter 3 - Not Used.
  • Parameter 4 - Not Used.

Additional Information
  • Test Layer: Threadpool
  • Stop ID: ILLEGAL_THREAD_TERMINATION
  • Stop code: 700NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

The stack was unwinded when asynchronous I/O operation is pending.

Probable cause

This stop is generated if the application issued an I/O operation that uses a stack variable and has not waited for the I/O to complete, thus leading to stack corruption. To debug this stop: $ dps parameter4 to display the stack trace when the I/O was issued. Parameter1 indicates the stack based address and parameter3 the thread that issued the I/O.

Information displayed by Application Verifier
  • Parameter 1 - Address of stack variable used in the I/O.
  • Parameter 2 - Current stack pointer.
  • Parameter 3 - Original thread that issued the I/O.
  • Parameter 4 - Stack Trace when the I/O was issued.

Additional Information
  • Test Layer: IO
  • Stop ID: ASYNCIO_STACK_UNWIND
  • Stop code: 800NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

The stack was corrupted when asynchronous I/O operation is pending.

Probable cause

This stop is generated if the application issued an I/O operation that uses a stack variable and has not waited for the I/O to complete, thus leading to stack corruption. To debug this stop: $ dps parameter4 to display the stack trace when the I/O was issued. Parameter1 indicates the stack based address and parameter3 the thread that issued the I/O.

Information displayed by Application Verifier
  • Parameter 1 - Address of the stack variable used in the I/O.
  • Parameter 2 - Current stack pointer.
  • Parameter 3 - Original thread that issued the I/O.
  • Parameter 4 - Stack Trace when the I/O was issued.

Additional Information
  • Test Layer: IO
  • Stop ID: ASYNCIO_CORRUPTED_STACK
  • Stop code: 800NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Using a freed address in a pending I/O operation.

Probable cause

This stop is generated if the application issued an I/O operation and freed the memory used in the I/O before the I/O completed thus leading to memory corruption etc. To debug this stop: $ dps parameter4 to display the stack trace when the I/O was issued. Parameter1 indicates the address used in the I/O. Parameter2 indicates the address being freed and parameter3 the thread that issued the I/O.

Information displayed by Application Verifier
  • Parameter 1 - Address used in the I/O.
  • Parameter 2 - Address being freed.
  • Parameter 3 - Original thread that issued the I/O.
  • Parameter 4 - Stack Trace when the I/O was issued.

Additional Information
  • Test Layer: IO
  • Stop ID: FREED_ADDRESS_IN_PENDINGIO
  • Stop code: 800NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

An I/O status block (OVERLAPPED) is reused while associated I/O request is still pending.

Probable cause

This stop is generated if the application reused an I/O status block (OVERLAPPED) while an I/O request using that I/O status block (OVERLAPPED) is still pending. To debug this stop: $ dps parameter3 to display the stack trace when the original I/O was issued. Parameter1 indicates the address used in the I/O and parameter2 the thread that issued the I/O.

Information displayed by Application Verifier
  • Parameter 1 - Address of the I/O status block (OVERLAPPED).
  • Parameter 2 - Original thread that issued the I/O.
  • Parameter 3 - Stack Trace when the I/O was issued.
  • Parameter 4 - Not Used.

Additional Information
  • Test Layer: IO
  • Stop ID: REUSED_IOSTATUS_BLOCK
  • Stop code: 800NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

Using an unsupported flag, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED on CreateFile

Probable cause

Old version of the MSDN erroneously documented CreateFile as supporting FILE_ATTRIBUTE_NOT_CONTENT_INDEXED. If this flag is intended it should be set using other API functions such as SetFileAttributes. $ ln Parameter1 to find the caller of CreateFile.

Information displayed by Application Verifier
  • Format: -  CreateFile while writing %hs%ws with flags %08x %08x %08x
  • Parameter 1 - Return Address.
  • Parameter 2 - Not used.
  • Parameter 3 - Not used.
  • Parameter 4 - Not used.

Additional Information
  • Test Layer: IO
  • Stop ID: USING_BAD_CREATEFILE_FLAG
  • Stop code: 800NAN
  • Severity: Warning
  • One-time error: 
  • Error report: None
  • Log to file: yes
  • Create backtrace: yes

A heap allocation was leaked.

Probable cause

This stop is generated if the owner dll of the allocation was dynamically unloaded while owning resources.

Information displayed by Application Verifier
  • Parameter 1 - Address of the leaked allocation. Run !heap -p -a <address> to get additional information about the allocation.
  • Parameter 2 - Address to the allocation stack trace. Run dps <address> to view the allocation stack.
  • Parameter 3 - Address of the owner dll name. Run du <address> to read the dll name.
  • Parameter 4 - Base of the owner dll. Run .reload <dll_name> = <address> to reload the owner dll. Use 'lm' to get more information about the loaded and unloaded modules.

Additional Information
  • Test Layer: Leak
  • Stop ID: ALLOCATION
  • Stop code: 900NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

A HANDLE was leaked.

Probable cause

This stop is generated if the owner dll of the handle was dynamically unloaded while owning resources. To debug this stop: Run !htrace parameter1 to get additional information about the handle.

Information displayed by Application Verifier
  • Parameter 1 - Value of the leaked handle. Run !htrace <handle> to get additional information about the handle if handle tracing is enabled.
  • Parameter 2 - Address to the allocation stack trace. Run dps <address> to view the allocation stack.
  • Parameter 3 - Address of the owner dll name. Run du <address> to read the dll name.
  • Parameter 4 - Base of the owner dll. Run .reload <dll_name> = <address> to reload the owner dll. Use 'lm' to get more information about the loaded and unloaded modules.

Additional Information
  • Test Layer: Leak
  • Stop ID: HANDLE
  • Stop code: 900NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

An HKEY was leaked.

Probable cause

This stop is generated if the owner dll of the registry key was dynamically unloaded while owning resources.

Information displayed by Application Verifier
  • Parameter 1 - Value of the leaked HKEY.
  • Parameter 2 - Address to the allocation stack trace. Run dps <address> to view the allocation stack.
  • Parameter 3 - Address of the owner dll name. Run du <address> to read the dll name.
  • Parameter 4 - Base of the owner dll. Run .reload <dll_name> = <address> to reload the owner dll. Use 'lm' to get more information about the loaded and unloaded modules.

Additional Information
  • Test Layer: Leak
  • Stop ID: REGISTRY
  • Stop code: 900NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

A virtual reservation was leaked.

Probable cause

This stop is generated if the owner dll of the virtual reservation was dynamically unloaded while owning resources.

Information displayed by Application Verifier
  • Parameter 1 - Leaked reservation address.
  • Parameter 2 - Address to the allocation stack trace. Run dps <address> to view the allocation stack.
  • Parameter 3 - Address of the owner dll name. Run du <address> to read the dll name.
  • Parameter 4 - Base of the owner dll. Run .reload <dll_name> = <address> to reload the owner dll. Use 'lm' to get more information about the loaded and unloaded modules.

Additional Information
  • Test Layer: Leak
  • Stop ID: VIRTUAL_RESERVATION
  • Stop code: 900NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

A BSTR was leaked.

Probable cause

This stop is generated if the owner dll of the SysString was dynamically unloaded while owning resources.

Information displayed by Application Verifier
  • Parameter 1 - Address of the leaked BSTR. Run !heap -p -a <address> to get additional information about the allocation.
  • Parameter 2 - Address to the allocation stack trace. Run dps <address> to view the allocation stack.
  • Parameter 3 - Address of the owner dll name. Run du <address> to read the dll name.
  • Parameter 4 - Base of the owner dll. Run .reload <dll_name> = <address> to reload the owner dll. Use 'lm' to get more information about the loaded and unloaded modules.

Additional Information
  • Test Layer: Leak
  • Stop ID: SYSSTRING
  • Stop code: 900NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

A power notification was not unregistered.

Probable cause

This stop is generated if the dll registered for power notification and was dynamically unloaded without unregistering.

Information displayed by Application Verifier
  • Parameter 1 - Address of the power notification registration.
  • Parameter 2 - Address to the registration stack trace. Run dps <address> to view the allocation stack.
  • Parameter 3 - Address of the owner dll name. Run du <address> to read the dll name.
  • Parameter 4 - Base of the owner dll. Run .reload <dll_name> = <address> to reload the owner dll. Use 'lm' to get more information about the loaded and unloaded modules.

Additional Information
  • Test Layer: Leak
  • Stop ID: POWER_NOTIFICATION
  • Stop code: 900NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

A COM allocation was leaked.

Probable cause

This stop is generated if the owner dll of the COM allocation was dynamically unloaded while owning resources.

Information displayed by Application Verifier
  • Parameter 1 - Address of the leaked COM allocation. Run !heap -p -a <address> to get additional information about the allocation.
  • Parameter 2 - Address to the allocation stack trace. Run dps <address> to view the allocation stack.
  • Parameter 3 - Address of the owner dll name. Run du <address> to read the dll name.
  • Parameter 4 - Base of the owner dll. Run .reload <dll_name> = <address> to reload the owner dll. Use 'lm' to get more information about the loaded and unloaded modules.

Additional Information
  • Test Layer: Leak
  • Stop ID: COM_ALLOCATION
  • Stop code: 900NAN
  • Severity: Error
  • One-time error: 
  • Error report: Break
  • Log to file: yes
  • Create backtrace: yes

See Also

Application Verifier - Stop Codes and Definitions

Application Verifier - Overview

Application Verifier - Features

Application Verifier - Testing Applications

Application Verifier - Tests within Application Verifier

Application Verifier - Debugging Application Verifier Stops

Application Verifier - Frequently Asked Questions