SRCDS.exe Crashing for no reason?

Ok, I had my dedicated server up and running FINE yesterday, well today when I go to start up Srcds, It crashes right after the Loading screen… Like I said, It was working fine yesterday and I havent done anything to it… I updated to the recent version (Which apparently I was out of date) and it is still doing the same thing. Whats going on?

I opened the Crash Dump File and it is telling me that Srcds is trying to access a virtual dump in which it does not have access…
I just tried Run As Administrator (I’ve NEVER had to do this for Srcds) but it still does not work. Whats going on?

Dump Summary
Dump File:    srcds_854347_crash_2010_6_4T14_58_7C0.mdmp : C:\HLServer\orangebox\srcds_854347_crash_2010_6_4T14_58_7C0.mdmp
Last Write Time:    6/4/2010 9:58:07 AM
Process Name:    srcds.exe : C:\HLServer\orangebox\srcds.exe
Process Architecture:    x86
Exception Code:    0xC0000005
Exception Information:    The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
Heap Information:    Not Present

System Information
OS Version:    6.0.6002
CLR Version(s):    

Module Name    Module Path    Module Version
-----------    -----------    --------------
srcds.exe    C:\HLServer\orangebox\srcds.exe
ntdll.dll    C:\Windows\SysWOW64
tdll.dll    6.0.6002.18005
kernel32.dll    C:\Windows\SysWOW64\kernel32.dll    6.0.6002.18005
user32.dll    C:\Windows\SysWOW64\user32.dll    6.0.6002.18005
gdi32.dll    C:\Windows\SysWOW64\gdi32.dll    6.0.6002.18005
advapi32.dll    C:\Windows\SysWOW64\advapi32.dll    6.0.6002.18005
rpcrt4.dll    C:\Windows\SysWOW64\rpcrt4.dll    6.0.6002.18024
secur32.dll    C:\Windows\SysWOW64\secur32.dll    6.0.6002.18051
imm32.dll    C:\Windows\System32\imm32.dll    6.0.6002.18005
msctf.dll    C:\Windows\SysWOW64\msctf.dll    6.0.6002.18005
msvcrt.dll    C:\Windows\SysWOW64\msvcrt.dll    7.0.6002.18005
lpk.dll    C:\Windows\SysWOW64\lpk.dll    6.0.6002.18005
usp10.dll    C:\Windows\SysWOW64\usp10.dll    1.626.6002.18005
dedicated.dll    C:\HLServer\orangebox\bin\dedicated.dll
wsock32.dll    C:\Windows\System32\wsock32.dll    6.0.6001.18000
ws2_32.dll    C:\Windows\SysWOW64\ws2_32.dll    6.0.6001.18000
nsi.dll    C:\Windows\SysWOW64
si.dll    6.0.6001.18000
shell32.dll    C:\Windows\SysWOW64\shell32.dll    6.0.6002.18005
shlwapi.dll    C:\Windows\SysWOW64\shlwapi.dll    6.0.6002.18005
tier0.dll    C:\HLServer\orangebox\bin	ier0.dll
steam_api.dll    C:\HLServer\orangebox\bin\steam_api.dll
vstdlib.dll    C:\HLServer\orangebox\bin\vstdlib.dll
comctl32.dll    C:\Windows\winsxs\\comctl32.dll    6.10.6002.18005
engine.dll    c:\HLServer\orangebox\bin\engine.dll
winmm.dll    C:\Windows\System32\winmm.dll    6.0.6002.18005
ole32.dll    C:\Windows\SysWOW64\ole32.dll    6.0.6002.18005
oleaut32.dll    C:\Windows\SysWOW64\oleaut32.dll    6.0.6002.18005
oleacc.dll    C:\Windows\System32\oleacc.dll    7.0.6002.18155
wininet.dll    C:\Windows\SysWOW64\wininet.dll    8.0.6001.18904
normaliz.dll    C:\Windows\SysWOW64
ormaliz.dll    6.0.6000.16386
urlmon.dll    C:\Windows\SysWOW64\urlmon.dll    8.0.6001.18904
iertutil.dll    C:\Windows\SysWOW64\iertutil.dll    8.0.6001.18904
binkw32.dll    c:\HLServer\orangebox\bin\binkw32.dll
inputsystem.dll    c:\HLServer\orangebox\bin\inputsystem.dll
materialsystem.dll    c:\HLServer\orangebox\bin\materialsystem.dll
studiorender.dll    c:\HLServer\orangebox\bin\studiorender.dll
vphysics.dll    c:\HLServer\orangebox\bin\vphysics.dll
datacache.dll    c:\HLServer\orangebox\bin\datacache.dll
vgui2.dll    c:\HLServer\orangebox\bin\vgui2.dll
uxtheme.dll    C:\Windows\System32\uxtheme.dll    6.0.6001.18000
shaderapiempty.dll    C:\HLServer\orangebox\bin\shaderapiempty.dll
XInput1_3.dll    C:\Windows\System32\XInput1_3.dll    9.18.944.0
setupapi.dll    C:\Windows\SysWOW64\setupapi.dll    6.0.6002.18005
wintrust.dll    C:\Windows\System32\wintrust.dll    6.0.6002.18169
crypt32.dll    C:\Windows\System32\crypt32.dll    6.0.6002.18005
msasn1.dll    C:\Windows\System32\msasn1.dll    6.0.6002.18106
userenv.dll    C:\Windows\System32\userenv.dll    6.0.6002.18005
imagehlp.dll    C:\Windows\SysWOW64\imagehlp.dll    6.0.6001.18000
dinput.dll    C:\Windows\System32\dinput.dll    6.0.6000.16386
hid.dll    C:\Windows\System32\hid.dll    6.0.6000.16386
stdshader_dbg.dll    c:\HLServer\orangebox\bin\stdshader_dbg.dll
stdshader_dx6.dll    c:\HLServer\orangebox\bin\stdshader_dx6.dll
stdshader_dx7.dll    c:\HLServer\orangebox\bin\stdshader_dx7.dll
stdshader_dx8.dll    c:\HLServer\orangebox\bin\stdshader_dx8.dll
stdshader_dx9.dll    c:\HLServer\orangebox\bin\stdshader_dx9.dll
wdmaud.drv    C:\Windows\System32\wdmaud.drv    6.0.6002.18005
ksuser.dll    C:\Windows\System32\ksuser.dll    6.0.6000.16386
MMDevAPI.dll    C:\Windows\System32\MMDevAPI.dll    6.0.6002.18005
avrt.dll    C:\Windows\System32\avrt.dll    6.0.6001.18000
AudioSes.dll    C:\Windows\System32\AudioSes.dll    6.0.6002.18005
AudioEng.dll    C:\Windows\System32\AudioEng.dll    6.0.6002.18005
psapi.dll    C:\Windows\SysWOW64\psapi.dll    6.0.6000.16386
msacm32.drv    C:\Windows\System32\msacm32.drv    6.0.6002.18005
msacm32.dll    C:\Windows\System32\msacm32.dll    6.0.6001.18000
midimap.dll    C:\Windows\System32\midimap.dll    6.0.6002.18005
AdminServer.dll    c:\HLServer\orangebox\bin\AdminServer.dll
clbcatq.dll    C:\Windows\SysWOW64\clbcatq.dll    2001.12.6931.18000
msiltcfg.dll    C:\Windows\System32\msiltcfg.dll    4.0.6000.16386
version.dll    C:\Windows\System32\version.dll    6.0.6002.18005
msi.dll    C:\Windows\System32\msi.dll    4.5.6002.18005
sfc.dll    C:\Windows\SysWOW64\sfc.dll    6.0.6000.16386
sfc_os.dll    C:\Windows\System32\sfc_os.dll    6.0.6001.18000
nlaapi.dll    C:\Windows\System32
laapi.dll    6.0.6001.18000
IPHLPAPI.DLL    C:\Windows\System32\IPHLPAPI.DLL    6.0.6002.18005
dhcpcsvc.dll    C:\Windows\System32\dhcpcsvc.dll    6.0.6002.18005
dnsapi.dll    C:\Windows\System32\dnsapi.dll    6.0.6002.18005
winnsi.dll    C:\Windows\System32\winnsi.dll    6.0.6001.18000
dhcpcsvc6.DLL    C:\Windows\System32\dhcpcsvc6.DLL    6.0.6002.18005
NapiNSP.dll    C:\Windows\System32\NapiNSP.dll    6.0.6001.18000
pnrpnsp.dll    C:\Windows\System32\pnrpnsp.dll    6.0.6001.18000
mdnsNSP.dll    C:\Program Files (x86)\Bonjour\mdnsNSP.dll
mswsock.dll    C:\Windows\System32\mswsock.dll    6.0.6002.18005
winrnr.dll    C:\Windows\System32\winrnr.dll    6.0.6002.18005
Wldap32.dll    C:\Windows\SysWOW64\Wldap32.dll    6.0.6002.18005
rasadhlp.dll    C:\Windows\System32\rasadhlp.dll    6.0.6000.16386
game_shader_generic_garrysmod.dll    c:\HLServer\orangebox\garrysmod\bin\game_shader_generic_garrysmod.dll
server.dll    c:\HLServer\orangebox\garrysmod\bin\server.dll
soundemittersystem.dll    C:\HLServer\orangebox\bin\soundemittersystem.dll
steamclient.dll    C:\Program Files (x86)\Steam\steamclient.dll
tier0_s.dll    C:\Program Files (x86)\Steam	ier0_s.dll
vstdlib_s.dll    C:\Program Files (x86)\Steam\vstdlib_s.dll
Steam.dll    C:\Program Files (x86)\Steam\Steam.dll    2.0.854.347
lua_shared.dll    c:\HLServer\orangebox\garrysmod\bin\lua_shared.dll
scenecacheproxy.dll    c:\HLServer\orangebox\garrysmod\bin\scenecacheproxy.dll
WSHTCPIP.DLL    C:\Windows\System32\WSHTCPIP.DLL    6.0.6001.18000
gm_sqlite.dll    c:\HLServer\orangebox\garrysmod\lua\includes\modules\gm_sqlite.dll
dbghelp.dll    C:\Windows\System32\dbghelp.dll    6.0.6001.18000
CSERHelper.dll    C:\Program Files (x86)\Steam\CSERHelper.dll
powrprof.dll    C:\Windows\System32\powrprof.dll    6.0.6002.18005

Theres a reason for it.

Exception Information: The thread tried to read from or write to a virtual address for which it does not have the appropriate access.

Error “0xC0000005” is an “Access Violation Error”

Try these steps:

Make sure nothing is using the port your server is running on.
Update the server content.
Make sure you have no corrupted files / addon(s).

If that fails, remove everything you have added. Addons, Maps, Materials, what ever else.

If it still crashes. Then clear the cache.

Or if all else fails, Delete the server folder and redownload it.

Well I appreciate the help. But none of that was the cause.
Also: Remove Addons, Maps, and Materials? Dude thats just some lame thing that people try as a piss away attempt at fixing their error. There is no way in hell that a map will crash the server just because it exists in the maps folder. Same with a material. Even if it is fucked up, the most that it will do is become Purple and Black Squares.

The other reasons you provided are also unlikely. The port error you stated returns a different error. Its error states: “Could not allocated any free ports.”
So that is not the cause.
Cache… possible but unlikely.

Now, for what was causing it. I figured out what the crashing was about shortly after posting (about an hour after)
The reason was in fact that I was calling a specific function in the Gamemode’s Initialization that for some reason crashed the server. What it was doing was spawning entities when the gamemode loads. Apparently this crashes the server because the map isnt fully loaded by that time (From what I was told?) and therefore It cant spawn. Upon removal of this, the server works fine. I just had to move it to a different section of the gamemode.

I apologize if I’m bumping an old thread, but I just wanted to report that a friend and I had the exact same problem. We were able to fix it by appending -verify_all to the hldsupdatetool command for garry’s mod. It may have been a hard drive issue, it seemed like nearly half of the content had to be re-downloaded.

The full dump file is easier to get the error from, its probably a stack/heap corruption

I don’t think that dump file gets any full-er :S