Raised This Month: $51 Target: $400
 12% 

L4D2 Server Crash


Post New Thread Reply   
 
Thread Tools Display Modes
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 10-02-2018 , 00:51   Re: L4D2 Server Crash
Reply With Quote #11

You know what this is where it goes to and what is located there?
Quote:
.text:0048D1A6 83 48 50 02 or dword ptr [eax+50h], 2
I don't really know IDA or any of that kind of stuff
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
Accelerator
Senior Member
Join Date: Dec 2010
Location: Russia
Old 10-04-2018 , 05:17   Re: L4D2 Server Crash
Reply With Quote #12

This temporary fix helped: block chainsaw FullThrottle sound in function CSoundPatch::ChangePitch (thanks Silvers). But this is also not a good method of correcting this error. How can I block the call to the FullThrottle sound playback function inside the CChainsaw:: PrimaryAttack function?

Code:
.text:00502490                   loc_502490:                             ; CODE XREF: CChainsaw::PrimaryAttack(void)+29↑j
.text:00502490 89 1C 24                          mov     [esp], ebx      ; this
.text:00502493 E8 B8 FE FF FF                    call    _ZN9CChainsaw23UpdateOwnerAndViewmodelEv ; CChainsaw::UpdateOwnerAndViewmodel(void)
.text:00502498 8B 83 04 18 00 00                 mov     eax, [ebx+1804h]
.text:0050249E 85 C0                             test    eax, eax
.text:005024A0 74 D9                             jz      short loc_50247B
.text:005024A2 83 BB E0 17 00 00+                cmp     dword ptr [ebx+17E0h], 2
.text:005024A9 75 D0                             jnz     short loc_50247B
.text:005024AB 8D 83 F8 17 00 00                 lea     eax, [ebx+17F8h]
.text:005024B1 C7 44 24 08 00 00+                mov     dword ptr [esp+8], 0 ; float
.text:005024B9 8D B3 FC 17 00 00                 lea     esi, [ebx+17FCh]
.text:005024BF 89 44 24 04                       mov     [esp+4], eax    ; CSoundPatch **
.text:005024C3 89 1C 24                          mov     [esp], ebx      ; this
.text:005024C6 8D 7D E4                          lea     edi, [ebp+var_1C]
.text:005024C9 E8 B2 FB FF FF                    call    _ZN9CChainsaw9StopSoundEPP11CSoundPatchf ; CChainsaw::StopSound(CSoundPatch **,float)
.text:005024CE 89 74 24 04                       mov     [esp+4], esi    ; CSoundPatch **
.text:005024D2 C7 44 24 08 00 00+                mov     dword ptr [esp+8], 0 ; float
.text:005024DA 89 1C 24                          mov     [esp], ebx      ; this
.text:005024DD E8 9E FB FF FF                    call    _ZN9CChainsaw9StopSoundEPP11CSoundPatchf ; CChainsaw::StopSound(CSoundPatch **,float)
.text:005024E2 89 74 24 04                       mov     [esp+4], esi    ; CSoundPatch **                                                      <<<==== How to block this call?
.text:005024E6 8D B3 2C 18 00 00                 lea     esi, [ebx+182Ch]                                                                            <<<==== How to block this call?
.text:005024EC C7 44 24 08 37 01+                mov     dword ptr [esp+8], offset aChainsawFullth ; "Chainsaw.FullThrottle"                      <<<==== How to block this call?
.text:005024F4 89 1C 24                          mov     [esp], ebx      ; this                                                                             <<<==== How to block this call?
.text:005024F7 E8 E4 FC FF FF                    call    _ZN9CChainsaw10StartSoundEPP11CSoundPatchPKc ; CChainsaw::StartSound(CSoundPatch **,char const*)              <<<==== How to block this call?
.text:005024FC C7 45 E4 00 00 80+                mov     [ebp+var_1C], 3F800000h
.text:00502503 B9 04 00 00 00                    mov     ecx, 4
.text:00502508 F3 A6                             repe cmpsb
.text:0050250A 0F 85 F0 00 00 00                 jnz     loc_502600
Attached Files
File Type: txt l4d2_chainsaw_fix.txt (1.5 KB, 137 views)
File Type: sp Get Plugin or Get Source (l4d2_chainsaw_fix.sp - 133 views - 3.1 KB)
__________________

Last edited by Accelerator; 10-04-2018 at 05:21.
Accelerator is online now
plug344
Member
Join Date: Dec 2021
Old 02-22-2022 , 03:39   Re: L4D2 Server Crash
Reply With Quote #13

Quote:
Originally Posted by Accelerator View Post
This temporary fix helped: block chainsaw FullThrottle sound in function CSoundPatch::ChangePitch (thanks Silvers). But this is also not a good method of correcting this error. How can I block the call to the FullThrottle sound playback function inside the CChainsaw:: PrimaryAttack function?

Code:
.text:00502490                   loc_502490:                             ; CODE XREF: CChainsaw::PrimaryAttack(void)+29↑j
.text:00502490 89 1C 24                          mov     [esp], ebx      ; this
.text:00502493 E8 B8 FE FF FF                    call    _ZN9CChainsaw23UpdateOwnerAndViewmodelEv ; CChainsaw::UpdateOwnerAndViewmodel(void)
.text:00502498 8B 83 04 18 00 00                 mov     eax, [ebx+1804h]
.text:0050249E 85 C0                             test    eax, eax
.text:005024A0 74 D9                             jz      short loc_50247B
.text:005024A2 83 BB E0 17 00 00+                cmp     dword ptr [ebx+17E0h], 2
.text:005024A9 75 D0                             jnz     short loc_50247B
.text:005024AB 8D 83 F8 17 00 00                 lea     eax, [ebx+17F8h]
.text:005024B1 C7 44 24 08 00 00+                mov     dword ptr [esp+8], 0 ; float
.text:005024B9 8D B3 FC 17 00 00                 lea     esi, [ebx+17FCh]
.text:005024BF 89 44 24 04                       mov     [esp+4], eax    ; CSoundPatch **
.text:005024C3 89 1C 24                          mov     [esp], ebx      ; this
.text:005024C6 8D 7D E4                          lea     edi, [ebp+var_1C]
.text:005024C9 E8 B2 FB FF FF                    call    _ZN9CChainsaw9StopSoundEPP11CSoundPatchf ; CChainsaw::StopSound(CSoundPatch **,float)
.text:005024CE 89 74 24 04                       mov     [esp+4], esi    ; CSoundPatch **
.text:005024D2 C7 44 24 08 00 00+                mov     dword ptr [esp+8], 0 ; float
.text:005024DA 89 1C 24                          mov     [esp], ebx      ; this
.text:005024DD E8 9E FB FF FF                    call    _ZN9CChainsaw9StopSoundEPP11CSoundPatchf ; CChainsaw::StopSound(CSoundPatch **,float)
.text:005024E2 89 74 24 04                       mov     [esp+4], esi    ; CSoundPatch **                                                      <<<==== How to block this call?
.text:005024E6 8D B3 2C 18 00 00                 lea     esi, [ebx+182Ch]                                                                            <<<==== How to block this call?
.text:005024EC C7 44 24 08 37 01+                mov     dword ptr [esp+8], offset aChainsawFullth ; "Chainsaw.FullThrottle"                      <<<==== How to block this call?
.text:005024F4 89 1C 24                          mov     [esp], ebx      ; this                                                                             <<<==== How to block this call?
.text:005024F7 E8 E4 FC FF FF                    call    _ZN9CChainsaw10StartSoundEPP11CSoundPatchPKc ; CChainsaw::StartSound(CSoundPatch **,char const*)              <<<==== How to block this call?
.text:005024FC C7 45 E4 00 00 80+                mov     [ebp+var_1C], 3F800000h
.text:00502503 B9 04 00 00 00                    mov     ecx, 4
.text:00502508 F3 A6                             repe cmpsb
.text:0050250A 0F 85 F0 00 00 00                 jnz     loc_502600
Sorry, did Windows need ? This signature for windows appears to be missing

Last edited by plug344; 02-25-2022 at 03:56.
plug344 is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 03-04-2022 , 02:24   Re: L4D2 Server Crash
Reply With Quote #14

Quote:
Originally Posted by plug344 View Post
Sorry, did Windows need ? This signature for windows appears to be missing
Chainsaw crash never happens in windows server, so no need.
__________________

Last edited by HarryPotter; 03-04-2022 at 02:24.
HarryPotter is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 03-04-2022 , 04:24   Re: L4D2 Server Crash
Reply With Quote #15

In the past, I was able to reproduce a Chainsaw crash in Windows (local) don't know if it was fixed between TLS updates, btw may be a different crash reason.

ValveSoftware/Source-1-Games/[L4D2] Chainsaw server crash #2526

Quote:
Originally Posted by Mart
I have noticed today that if you use the IncapPlayer function into a client with a chainsaw in use (firing) the server also crashes, don't know if it's related. Just reporting. (Note: Windows)
__________________

Last edited by Marttt; 03-04-2022 at 04:27.
Marttt is offline
plug344
Member
Join Date: Dec 2021
Old 03-04-2022 , 21:04   Re: L4D2 Server Crash
Reply With Quote #16

Thank you two guys very much for the replies

Last edited by plug344; 03-04-2022 at 21:06.
plug344 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode