hzqst / MetaHookSv

MetaHook (https://github.com/nagist/metahook) porting for SvEngine (GoldSrc engine modified by Sven-Coop)
MIT License
149 stars 38 forks source link

[ThreadGuard] deadlock when game crashes inside RunListenServer. #420

Closed hzqst closed 8 months ago

hzqst commented 8 months ago

image

Valve's fucking SEH handler unwind ip to

.text:01DAC930 B8 36 C9 DA 01                                      mov     eax, offset loc_1DAC936

and skip the general Shutdown procedure which leaves CDAudio thread & network thread running.

image

in the meanwhile ThreadGuard.dll is waiting for those threads to quit while they will never because general Shutdown procedure was skipped.

hzqst commented 8 months ago

Fixed in 005bc3284f484c6d768c790ed93bd7b6c3d48f37.