PS_game crash code=0xC0000005, address=0x004A4915

04/07/2012 18:44 andya78#1
PHP Code:
2012-04-07 17:17:02 Exception !!!, code=0xC0000005, address=0x004A4915

Minidump write end
.....................

0x004A4915 ps_game.exe: <unknown symbol>

Stack trace end.....................



Stack trace(all thread) begin.....................



Module list:

C:\ShaiyaServer\SERVER\PSM_Client\Bin\ps_game.exe, loaded at 0x00400000 - 09/07/15 12:22:00

WARNING
: ps_game.exe is not accessible
Symbol search path is
: ps_game.pdb
WARNING
: ps_game.pdb is not accessible
WARNING
: ps_game.pdb is not accessible

Microsoft 
(R) Windows Debugger  Version 6.3.0017.0
Copyright 
(c) Microsoft Corporation. All rights reserved.


Loading Dump File [C:\ShaiyaServer\SERVER\PSM_Client\Bin\Log\20120407_170233_ps_game.dmp]
User Mini Dump File: Only registers, stack and portions of memory are available

Windows Longhorn Version 6002 
(Service Pack 2) MP (2 procs) Free x86 compatible
Product
: WinNt, suite: SingleUserTS Personal
Debug session time
: Sat Apr 07 17:17:02 2012
System Uptime
: not available
Process Uptime
: 0 days 0:14:29.000
Symbol search path is
: ps_game.pdb
Executable search path is
: ps_game.exe
......................................................
The call to LoadLibrary(ext) failed, Win32 error 2
    
"The system cannot find the file specified."
Please check your debugger configuration and/or network access.
The call to LoadLibrary(exts) failed, Win32 error 2
    
"The system cannot find the file specified."
Please check your debugger configuration and/or network access.
The call to LoadLibrary(uext) failed, Win32 error 2
    
"The system cannot find the file specified."
Please check your debugger configuration and/or network access.
The call to LoadLibrary(ntsdexts) failed, Win32 error 2
    
"The system cannot find the file specified."
Please check your debugger configuration and/or network access.
(
1d3c.1b98): Access violation - code c0000005 (!!! second chance !!!)

thread count = 19
thread 0
(4732)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x75B1F4EB ADVAPI32
.dll: SetServiceStatus + 735

0x75B1F591 ADVAPI32
.dll: SetServiceStatus + 901

0x75B120BB ADVAPI32
.dll: StartServiceCtrlDispatcherA + 133

0x004E427D ps_game
.exe: <unknown symbol>

0x00540640 ps_game.exe: <unknown symbol>

0x004CCB90 ps_game.exe: <unknown symbol>

0x95E90000 <unknown module>: <unknown symbol>


thread 1(5412)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x7656A910 kernel32
.dll: WaitForMultipleObjects + 24

0x004E2B99 ps_game
.exe: <unknown symbol>

0xFF006AEC <unknown module>: <unknown symbol>


thread 2(7564)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x76569A12 kernel32
.dll: WaitForSingleObject + 18

0x004D5738 ps_game
.exe: <unknown symbol>

0x7656D309 kernel32.dll: BaseThreadInitThunk + 18

0x77481603 ntdll
.dll: RtlInitializeExceptionChain + 99

0x774815D6 ntdll
.dll: RtlInitializeExceptionChain + 54


thread 3
(7656)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x76569A12 kernel32
.dll: WaitForSingleObject + 18

0x004D9E2B ps_game
.exe: <unknown symbol>

0xFF006AEC <unknown module>: <unknown symbol>


thread 4(3244)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x750C704E MSWSOCK
.dll: getnetbyname + 19815

0x7620BBDB WS2_32
.dll: WSAAccept + 133

0x004D7ECE ps_game
.exe: <unknown symbol>


thread 5(6984)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x76569A12 kernel32
.dll: WaitForSingleObject + 18

0x004D9E2B ps_game
.exe: <unknown symbol>

0xFF006AEC <unknown module>: <unknown symbol>


thread 6(8068)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x76569A12 kernel32
.dll: WaitForSingleObject + 18

0x004D9E2B ps_game
.exe: <unknown symbol>

0xFF006AEC <unknown module>: <unknown symbol>


thread 7(984)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x76569A12 kernel32
.dll: WaitForSingleObject + 18

0x004D9E2B ps_game
.exe: <unknown symbol>

0xFF006AEC <unknown module>: <unknown symbol>


thread 8(6676)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x004DCB92 ps_game
.exe: <unknown symbol>


thread 9(8048)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x004DCB92 ps_game
.exe: <unknown symbol>


thread 10(7136)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x004DCB92 ps_game
.exe: <unknown symbol>


thread 11(5136)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x004DCB92 ps_game
.exe: <unknown symbol>


thread 12(5380)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x76569A12 kernel32
.dll: WaitForSingleObject + 18

0x004D9E2B ps_game
.exe: <unknown symbol>

0xFF006AEC <unknown module>: <unknown symbol>


thread 13(1288)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x76569A12 kernel32
.dll: WaitForSingleObject + 18

0x004D9E2B ps_game
.exe: <unknown symbol>

0xFF006AEC <unknown module>: <unknown symbol>


thread 14(6888)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x76569A12 kernel32
.dll: WaitForSingleObject + 18

0x00406FEC ps_game
.exe: <unknown symbol>


thread 15(7064)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x04390A50 dbghelp
.dll: SymGetModuleBase

0x52990C45 
<unknown module>: <unknown symbol>

0x52990C45 <unknown module>: <unknown symbol>


thread 16(6172)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x76569A12 kernel32
.dll: WaitForSingleObject + 18

0x0040734B ps_game
.exe: <unknown symbol>


thread 17(5852)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x76569A12 kernel32
.dll: WaitForSingleObject + 18

0x0040734B ps_game
.exe: <unknown symbol>


thread 18(7552)

0x774A5CD4 ntdll.dll: KiFastSystemCallRet

0x76569A12 kernel32
.dll: WaitForSingleObject + 18

0x004D9E2B ps_game
.exe: <unknown symbol>

0xFF006AEC <unknown module>: <unknown symbol>



Stack trace(all thread) end.....................

================================================================ 
This is my last and final issue with my server and i can't for the life of me find anyway to fix it ive searched google and only found 1 thread with this issue but noone replied to the guy and so im here hoping someone will be helpful and open my eyes a bit
04/07/2012 18:58 RebeccaBlack#2
I went to that address and it's part of a function, but I didn't immediately see what the function's use was.

When does this problem occur? Has it just started to occur? When does PS_Game crash? What all does it load before crashing?

Those questions will help us answer you better, so we can figure out how far the executable is loading before it shits itself.
04/09/2012 06:38 andya78#3
nice phrasing of words there lol... it varies sometimes it works fine for a large number of hours sometimes it goes down every 5 mins ive been narrowing down the erros in the databases fixing each one as i see it in the logs and the last one is
2012-04-09 02:46:03 err=-1, [Microsoft][ODBC SQL Server Driver]Invalid cursor state, SQL STATE: 24000, NATIVE ERROR: 0 (0x0)

2012-04-09 02:46:03 GetUser(): err=-1, query=EXEC usp_Try_GameLogin_Taiwan 'pita66','******', 3535936494785003521,'75.23.***.***, [Microsoft][ODBC Driver Manager] Invalid cursor state, SQL STATE: 24000, NATIVE ERROR: 0 (0x0)

2012-04-09 03:40:50 cmd_auto server info log
but its not always the same account

if you can put the tags in next reply for a spoiler il add the stored procedure up here see if its an error in that
04/09/2012 08:22 RebeccaBlack#4
Quote:
Originally Posted by andya78 View Post
nice phrasing of words there lol... it varies sometimes it works fine for a large number of hours sometimes it goes down every 5 mins ive been narrowing down the erros in the databases fixing each one as i see it in the logs and the last one is
2012-04-09 02:46:03 err=-1, [Microsoft][ODBC SQL Server Driver]Invalid cursor state, SQL STATE: 24000, NATIVE ERROR: 0 (0x0)

2012-04-09 02:46:03 GetUser(): err=-1, query=EXEC usp_Try_GameLogin_Taiwan 'pita66','******', 3535936494785003521,'75.23.***.***, [Microsoft][ODBC Driver Manager] Invalid cursor state, SQL STATE: 24000, NATIVE ERROR: 0 (0x0)

2012-04-09 03:40:50 cmd_auto server info log
but its not always the same account

if you can put the tags in next reply for a spoiler il add the stored procedure up here see if its an error in that
[spoiler][/spoiler] is the "spoiler" tags.

The "Cursor" error is due to the SP not returning the proper values, it should return the "Status" of the user, and the UserUID of the user. At the bottom of the SP, it should have this:
Code:
SELECT @Status AS [Status], @UserUID AS UserUID
04/09/2012 20:58 andya78#5


oo it worked this time must of used the wrong tags around the spoiler :/ nubbie mistake lol

this is the SP ive got