Access violation
Lionello Lunesu
lio at lunesu.remove.com
Tue May 23 02:53:05 PDT 2006
I'm making a small 1-file http server but I get an access violation when
a client requests a big document (~480KB).
disassembly:
_D9invariant12_d_invariantFC6ObjectZv:
00403620 push eax
00403621 mov ecx,dword ptr [eax]
00403623 push ebx
00403624 mov ebx,dword ptr [ecx]
registers:
EAX = 01BC3420 EBX = 00418214 ECX = 00000000 EDX = 00402124
ESI = 00402124 EDI = 01B93A30 EIP = 00403624 ESP = 01F1F78C
EBP = 01F1F7A0 EFL = 00010206
call stack:
httpd.exe!_D9invariant12_d_invariantFC6ObjectZv() + 0x4 bytes
httpd.exe!__d_callfinalizer() + 0x46 bytes
httpd.exe!_D3std2gc13new_finalizerFPvPvZv() + 0x9 bytes
httpd.exe!_D3gcx3Gcx8bigAllocFkZPv() + 0x60 bytes
01cc0000()
system:
WinXP x64 Pro
dmd v0.157
debugger VS2005
The code is hardly readable! I was just playing around with some socket
stuff. It's another test program gone bezerk.
I have no idea why it's crashing. I see "bigAlloc" and it must be the
allocation of the 480KB needed for the document (std.file.read).
L.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.zip
Type: application/octet-stream
Size: 1394 bytes
Desc: not available
Url : http://lists.puremagic.com/pipermail/digitalmars-d-bugs/attachments/20060523/d6de0627/attachment.obj
More information about the Digitalmars-d-bugs
mailing list