Posted on 2009-03-31 23:00
S.l.e!ep.¢% 阅读(1812)
评论(5) 编辑 收藏 引用 所属分类:
WinDbg
内存崩溃的BUG
上次没查出是什么原因,这次继续
0:000> u eip
mswsock!WSPSend+0x243:
719c594a 8b4004 mov eax,dword ptr [eax+4]
719c594d 8b4d14 mov ecx,dword ptr [ebp+14h]
719c5950 8901 mov dword ptr [ecx],eax
719c5952 834dfcff or dword ptr [ebp-4],0FFFFFFFFh
719c5956 803dd8729f7100 cmp byte ptr [mswsock!SockAsyncSelectCalled (719f72d8)],0
719c595d 0f8591ae0000 jne mswsock!WSPSend+0x27f (719d07f4)
719c5963 837de400 cmp dword ptr [ebp-1Ch],0
719c5967 0f85dfae0000 jne mswsock!WSPSend+0x2d1 (719d084c)
0:000> r
eax=034c0fd8 ebx=00000000 ecx=0012e444 edx=7c92eb94 esi=00000000 edi=00000000
eip=719c594a esp=0012e474 ebp=0012e4d0 iopl=0 nv up ei pl zr na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000246
mswsock!WSPSend+0x243:
719c594a 8b4004 mov eax,dword ptr [eax+4] ds:0023:034c0fdc=????????
0:000> !address [eax+4]
034bd000 : 034bd000 - 00007000
Type 00000000
Protect 00000001 PAGE_NOACCESS
State 00010000 MEM_FREE
Usage RegionUsageFree
从上面的粗体看,应该是在调用 WSPSend 前就出错了,
难道是传参数是出的错? 有谁能解释下原因?