Microsoft KB Archive/301369

= BUG: Infinite Loop Occurs When Debugging DllMain After AV During DLL_PROCESS_DETACH =

PSS ID Number: 301369

Article Last Modified on 5/12/2003

-

The information in this article applies to:

 Microsoft Win32 Application Programming Interface (API), when used with:  the operating system: Microsoft Windows Millennium Edition

 the operating system: Microsoft Windows 98

 the operating system: Microsoft Windows 95 

-

<div class="notice_section">

This article was previously published under Q301369

<div class="symptoms_section">

SYMPTOMS
If an access violation (AV) occurs while a thread is executing DLL_PROCESS_DETACH code within a library's DllMain function and an attempt is made to debug the faulting process, the system will enter an infinite loop in which it continually sends an EXCEPTION_DEBUG_EVENT to the debugger. This loop cannot be exited and the process cannot be terminated.

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

<div class="moreinformation_section">

MORE INFORMATION
This is a problem for all debuggers running on Windows 95, Windows 98, and Windows Millennium Edition. The problem does not occur on Windows NT, Windows 2000, or Windows XP.

It is possible to exit most debuggers when this infinite loop predicament arises. However, the faulting process will persist even after the debugger exits, and the system will continue to display an error message stating that the application has performed an illegal operation. This persistent process will prevent the user from performing a log off or shutdown operation. Any attempt to log off or shut down will cause the system to stop responding (&quot;hang&quot;). The only way to recover from this predicament is to perform a hard reboot of the computer.

Keywords: kbBug kbDebug kbDLL kbKernBase KB301369

Technology: kbAudDeveloper kbOSWin95 kbOSWin98 kbOSWinME kbOSWinSearch kbWin32API kbWin32sSearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2003 Microsoft Corporation. All rights reserved.