Socket crashes on AccessViolationException when the peer side aborts (net2.0 beta2)

Hi,

I experienced a weird problem with socket on my machine. On my colleague's it works like a charm.
When I have socket, waiting for incomming data (after I called BeginReceive) and the peer side aborts - eg. I kill the telnet.exe who I used as a client, the socket throws AccessViolationException on unknown module.

The crash itself is in
> imon.dll!20b0cd39()

did anyone experienced something similar, or it's problem on my machine?

regards
georgem

[485 byte] By [georgem] at [2008-2-20]
# 1
Could you tell us a little more info?
Do you have a call stack?
Can you send me your code that produces the issue?
Or even a dump file?
DurgaprasadGorti at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 2
I sent you an email with stack dump, code and compiled executable.

georgem at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 3
Did you find something?

regards
georgem

georgem at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 4

I spoke with Durga and he did not get the e-mail. Can you resend the stack trace and repro?

JonCole at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 5
Of course I can Smile. I sent it to the address, mr. Durgaprasad Gorti presents here on the pages dgorti@... If there's another address, I have no problem to send it there.

I didn't received any error notification or something.

georgem at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 6
Thats the correct address to use. Just be sure to strip off the (PleaseDontSpam) stuff.
MikeFlasko at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 7
I did. Was the e-mail already delivered? I used two independet mail servers to send it, so you can get two copies (sorry)
georgem at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 8

My Apologies. I did get this. Due to a filter it moved email from unknown addresses to a differnet folder and I missed it.

DurgaprasadGorti at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 9
Hi,

did you find something from the info I sent, or the fault is somewhere on my side?

georgem at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 10

Is it possible for you to resend this? Sorry for the confusion.
send this to Durgaprasad.Gorti@dontspam.microsoft.com.dontspam

DurgaprasadGorti at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 11
done, resent
georgem at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 12
sorry for being annoying, but just checking, if you received that email
georgem at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 13

Yes I got it, I am just not getting time to look into it.

DurgaprasadGorti at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 14

Unfortunately, I can't get this to repro on my side using a current build and the dump file you sent contains only a mini dump and is not enough information for me to debug this. Can you run under a debugger and catch the exception? Native debuggers can be found at:

http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx

You can then lauch your app, attach Windbg.exe to the process (comes with the above mentioned install package). Once Windbg.exe is attached to your application, cause the error to occur. You should see an AccessViolation message in Windbg.exe's command window. Run the command

.dump -f c:\SocketAccessViolation.dmp

Please send a zipped copy of that dmp file to Durga. Also, do you have access to a more recent build? If so, please run with a newer version and see if it still fails with the error.

JonCole at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...

.NET Development

Site Classified