Subject Server trap. Firebird 1.5b2 on w2k
Author Andrew Guts
Andrew Guts wrote:

Hello ibsupport,

I have installed ( 2868217 bytes)
on w2k.
The server causes exception when my application calls SP. Beta1 worked
fine. What should I do?
fbserver.exe - Application Error
The instruction at 0x00537963 referenced memory at 0x00000000. The
memory could not be "read".

Code dump:
00537950 sub esp,460h ; allocate
1120 bytes for local vars
00537956 mov eax,dword ptr [esp+470h] ; points inside area of
0053795D push ebx
0053795E mov dword ptr [esp+4],ecx ; looks like first
parameters were passed in registers.
00537962 push ebp
00537963 mov edx,dword ptr [eax] ; <== here. I
guess this code is accessing passed parameter which is null.
00537965 mov ecx,dword ptr [eax+4]
00537968 xor ebx,ebx
0053796A push esi
0053796B push edi
0053796C cmp edx,ebx
0053796E lea esi,[esp+20h]
00537972 lea edi,[esp+70h]
00537976 mov dword ptr [esp+18h],ecx
0053797A mov ebp,1
0053797F je 005379D9
00537981 cmp bp,bx
00537984 je 005379D9
00537986 xor ecx,ecx
00537988 mov cx,word ptr [eax]
0053798B dec ecx
0053798C je 00537A4D
00537992 sub ecx,4
00537995 je 00537A2B
0053799B sub ecx,0Dh
0053799E je 00537A4D
005379A4 lea edx,[esp+480h]
005379AB push edx
005379AC push edi
005379AD call 004157C0
005379B2 cmp ax,bx
005379B5 je 005379D9
005379B7 mov dword ptr [esi],5
005379BD and eax,0FFFFh
005379C2 mov dword ptr [esi+4],edi
005379C5 add esi,8
005379C8 add edi,eax
005379CA mov eax,dword ptr [esp+480h]
005379D1 xor ebp,ebp
005379D3 mov edx,dword ptr [eax]
005379D5 cmp edx,ebx
005379D7 jne 00537981
005379D9 mov eax,dword ptr [esp+474h]
005379E0 mov dx,word ptr [esp+478h]
005379E8 lea ecx,[esp+20h]
005379EC push eax
005379ED mov dword ptr [eax],9
005379F3 mov word ptr [eax+0D0h],dx
005379FA mov dx,word ptr [esp+480h]
00537A02 mov dword ptr [eax+0E4h],ecx
00537A08 mov ecx,dword ptr [esp+14h]
00537A0C mov dword ptr [esi],ebx
00537A0E mov word ptr [eax+0DCh],dx
00537A15 call 0052AA00
00537A1A mov eax,dword ptr [esp+18h]
00537A1E pop edi
00537A1F pop esi
00537A20 pop ebp
00537A21 pop ebx
00537A22 add esp,460h
00537A28 ret 10h ; StdCall ???