LogonUser API crashing the LogonUI.exe in some of the user machines, causing a black screen issue.

Rajeev C 5 Reputation points
2024-04-10T05:55:20.4266667+00:00
  • The issue occurs when one of the user using our MFA agent application, logs in into the windows machine. Our application uses both managed and unmanaged code and we use LogonUser API for logging into the machine.
  • Initial checks indicated that logonUI.exe crashes causing this black screen issue.
  • Deep analysis shows that: -LogonUI.exe is crashing with the error code c000374 which translates to STATUS_HEAP_CORRUPTION / A heap has been corrupted. -The machine is experiencing the crash of LogonUI.
  • Issue occurs on 2.1.5.55 and even after upgrading to 2.2.1 same issue appears.
  • Tested logoff/logon and same behavior occurs:  customers enter wind. username & password then hit enter,  the screen turns black, so they press alt+ctrl+del and re enter wind username & password. After 3 times, user was prompt for RSA challenge screen.
  • Attaching the screenshot of the crash dumps to get an expert analysis on this and any feedback on the above API and why should it crash for very few users.
  • If needed I will share the entire dump into a onedrive folder.
  • Dump1.PNG
  • Dump2.PNG
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,674 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,773 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,241 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Wesley Li 5,040 Reputation points
    2024-04-12T02:01:05.8966667+00:00

    Hello

    For heap corruption, we may need to enable heap tracing.

    Here is a link for reference:

    Debugging Heap corruption with Application Verifier and Debugdiag - Microsoft Community Hub

    The forum resource is limted to troubleshooting present issue, it is recommended to open a ticket for more resoures to troubleshooting present issue.

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more