CVAD 1912 LTSR - Memory Handle Leak on CtxSvcHost.exe

CVAD 1912 LTSR - Memory Handle Leak on CtxSvcHost.exe

book

Article ID: CTX291311

calendar_today

Updated On:

Description

Memory handle leak observed on CTXSvcHost.exe on Workstation CVAD 1912 LTSR CU2.

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Resolution

It was found to be a Microsoft API defect and the below registry change is suggested by Microsoft Support:

Location: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Cryptography\Calais
Name: ForceWinStationUnregisterCall
Type: DWORD
Value: 1

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Calais
Name: ForceWinStationUnregisterCall
Type:DWORD
Value: 1

Problem Cause

Citrix had a number of similar cases reporting CtxSvcHost.exe (CtxSmartCardSvc) handle leak, the reason is, CtxSmartCardSvc periodically calls MS API: SCardEstablishContext() & SCardReleaseContext (), but SCardReleaseContext () doesn’t release the handle as expected.