elchs / LetoDBf

LetoDB fork - database server with RDD for Harbour client
18 stars 12 forks source link

GPF in Leto_Connect() when connection is down. #9

Closed SergyRus closed 6 years ago

SergyRus commented 6 years ago

This little snippet causes GPF in Leto_Connect():

FUNC Main()

? 'Leto_Connect("192.168.1.120:2812") =',Leto_Connect("192.168.1.120:2812")
INKEY(0)
? "Leto_Disconnect() =",Leto_Disconnect()
INKEY(0)
? "Leto_Connect() =",Leto_Connect() // there is the GPF
INKEY(0)

RETURN

I'm using LetoDbf with timestamp in changelog.txt: 2017-12-30 12:30 UTC+0100

hb_out.log:

Application Internal Error - D:\Z_Test\Leto\test.exe
Terminated at: 2018-01-07 18:07:37
Unrecoverable error 6005: Exception error:

    Exception Code:C0000005 ACCESS_VIOLATION
    Exception Address:00DECD36
    EAX:00000000  EBX:000A5FE4  ECX:00000005  EDX:00000000
    ESI:0037F5AC  EDI:00000005  EBP:000923E4
    CS:EIP:0023:00DECD36  SS:ESP:002B:0037F4AC
    DS:002B  ES:002B  FS:0053  GS:002B
    Flags:00010246
    Exception Parameters: 00000001 00000000
    CS:EIP: 89 38 8B 83 B0 00 00 00 89 74 24 04 89 7C 24 08
    SS:ESP: 00000000 00000005 00000000 00E1B31C 00F14253 00091EB4 0037F518 00F1550A 00E7E061 000923E4 00E5D2E3 0037F5AC 000A5FE4 00000000 000923E4 00DEE668

    C stack:
    EIP:     EBP:       Frame: OldEBP, RetAddr, Params...

Modules:
00DD0000 001E9000 D:\Z_Test\Leto\test.exe
77970000 00180000 C:\Windows\SysWOW64\ntdll.dll
77010000 00110000 C:\Windows\syswow64\kernel32.dll
75280000 00047000 C:\Windows\syswow64\KERNELBASE.dll
76BB0000 000A1000 C:\Windows\syswow64\ADVAPI32.dll
76630000 000AC000 C:\Windows\syswow64\msvcrt.dll
76A30000 00019000 C:\Windows\SysWOW64\sechost.dll
76EA0000 000F0000 C:\Windows\syswow64\RPCRT4.dll
75220000 00060000 C:\Windows\syswow64\SspiCli.dll
75210000 0000C000 C:\Windows\syswow64\CRYPTBASE.dll
6FFC0000 0001C000 C:\Windows\system32\IPHLPAPI.DLL
76050000 00006000 C:\Windows\syswow64\NSI.dll
6FFB0000 00007000 C:\Windows\system32\WINNSI.DLL
76430000 00100000 C:\Windows\syswow64\USER32.dll
76B10000 00090000 C:\Windows\syswow64\GDI32.dll
76720000 0000A000 C:\Windows\syswow64\LPK.dll
76390000 0009D000 C:\Windows\syswow64\USP10.dll
70460000 00032000 C:\Windows\system32\WINMM.DLL
752F0000 00035000 C:\Windows\syswow64\WS2_32.dll
774A0000 00060000 C:\Windows\system32\IMM32.DLL
77250000 000CD000 C:\Windows\syswow64\MSCTF.dll
700F0000 0003C000 C:\Windows\system32\mswsock.dll
700E0000 00005000 C:\Windows\System32\wshtcpip.dll

Called from LETO_CONNECT(0)
Called from MAIN(7)
elchs commented 6 years ago

bug confirmed, uploaded ( 2018-01-07 19:55 ) fix confirmed