After installing windows security update KB5094126, application and windows crashes

We are using Grijjy http channel on client side.

After installing the mentioned update and starting application, after aprox. 10 seconds, the operating system crashes.

We examined the dump file, located in C:\Windows\minidump, and we found out the connection reset/closing is causing the error (afd).

In Grijjy.SocketPool.Win.pas if we comment out closesocket in TSocketPoolWorker.Execute and TgoClientSocketManager.FreeConnections, operating system is not crashing anymore, unless we close the application normally or even from task manager.

In Event Viewer the error log is visible with source BugCheck: The computer has rebooted from a bugcheck. The bugcheck was: 0x00000139 (0x0000000000000003, 0xfffff98aed83f1d0, 0xfffff98aed83f128, 0x0000000000000000). A dump was saved in: C:\WINDOWS\Minidump\061126-8125-01.dmp. Report Id: 9c1b626d-fb56-4feb-98b5-76339129cc66.

With our application can be reproduced on every client machine with the update installed.

Did you encountered this issue or do you have some idea for a possible workaround? Probably is a windows bug.

BugCheck dump.txt (10.2 KB)

Issue solved with the following modifications in Grijjy.SocketPool.Win
-changing FAttemptCloseSocket from boolean to integer
-changing TF_REUSE_SOCKET to TF_DISCONNECT in PostDisconnect

Please consult the attached file, all the modifications are marked with KB5094126

Grijjy.SocketPool.Win.pas (46.6 KB)

Hi!

Thanks for sharing this and great job tracking it down. My colleague who is charge of this will be back from vacation on Monday and will be able to have more substantive further conversation :slight_smile:

Regards, Kate

Hi,

Grijjy Foundation is 3rd-party library and we ship it w/o changes.
Can you report about this issue to Issues · grijjy/GrijjyFoundation · GitHub, pls?