zeromq / clrzmq4

ZeroMQ C# namespace (.NET and mono, Windows, Linux and MacOSX, x86 and amd64)
GNU Lesser General Public License v3.0
241 stars 112 forks source link

access violation exception (0xC0000005) #83

Closed nileshbhope closed 6 years ago

nileshbhope commented 7 years ago

I am using simple Publish socket to publish string data. As data is synschronous & no other thread accessing the broadcast method. Still I am getting frequent crash in my program, Below is crash dump report, Please let me know how to resolve this issue.

` Report for QX.MDManagerPID2956Date01_17_2017__Time_02_12_37PM209Second_Chance_Exception_C0000005.dmp Type of Analysis Performed Crash Analysis Machine Name WIN-BFRUTIQ2AQ6 Operating System Unexpected
Number Of Processors 16 Process ID 2956 Process Image C:\Program Files\QXT\Blitz Test1\QX.MDManager.exe System Up-Time 29 day(s) 21:28:56 Process Up-Time 03:51:11

Thread 14 - System ID 5076 Entry point clr!DllUnregisterServerInternal+2a50c Create time 1/17/2017 10:21:35 AM Time spent in user mode 0 Days 0:0:9.578 Time spent in kernel mode 0 Days 0:0:2.15

Full Call Stack

Function Arg 1 Arg 2 Arg 3 Arg 4 Source libzmq+17850 0000000000000000 0000000000000000 000000001d28fd30 000000001d28fb50
libzmq+17895 000000001fd40f90 000000001d28fb50 000000001d28fb50 0000000074ec20da
libzmq+7d83 0000000000000000 000000001fd40f90 000000001fd40e20 0000000074ec5695
libzmq+8085 000000001fd40f90 000000001d28fb50 000000001d28fb50 0000000000000000
libzmq+813b 0000000000000058 0000000000000000 0000000000000000 00000000206dd2d0
libzmq!zmq_msg_set+1113f 0000000000000000 0000000000000058 000000001d28fb50 00000000206dd4b8
libzmq!zmq_msg_set+3eb 0000000000000000 0000000000000000 000000001fd40a40 0000000003be5f40
libzmq!zmq_has+66 000000001c211b70 00000000206dd330 0000000000000000 0000000000000001
0x00007ffd2a175251 000091a7af2662b8 00007ffd899d9000 0000000003be6050 0000000000000001 0x00007ffd2a2816b6 00007ffd2a2b8970 0000000000000001 0000000003be5f2c 000000002329ea88
0x00007ffd2a2812dd 0030003000000032 0000000000000000 00007ffd8939a2f5 00000000206dd148 0x00007ffd2a2811bc 00000000206dec80 000000000377d930 0000000000000000 00000000031b6918
0x00007ffd2a28111e 00007ffd2a13b448 00007ffd2a1413c0 0000000000000020 0000000000000024 0x00007ffd2a281a48 00000000031b6918 0000000003be5e70 0000000000000020 0000000003be55d0
0x00007ffd2a19a4f7 00000000031b6918 88d43ee2e39d0000 0000000000032cde 00000000039803a8 0x00007ffd2a198cf5 00000000206de7c0 00000000206de7b8 00000000206de7b0 0000000000000000
0x00007ffd2a191701 00000000032520a8 0000000000000081 00000000206de558 0000000000000000 0x00007ffd2a0ba846 00000000032520a8 0000000000000000 0000000000000000 0000000000000000
mscorlib_ni+478e45 0000000000000000 0000000000000000 0000000000000000 0000000000000000
mscorlib_ni+478bb9 000000000377d998 0000000000000000 0000000000000000 0000000000000000
mscorlib_ni+478b97 000000000377d930 0000000000000000 0000000000000000 0000000000000000
mscorlib_ni+464291 000000000377d958 0000000000000001 0000000000000000 0000000000000000
clr!DllUnregisterServerInternal+1eb23 0000000000000000 0000000000000000 0000000000000000 0000000000000000
clr!DllUnregisterServerInternal+1e9ee 0000000000000001 0000000000000004 00000000206ded98 00000000206dee58
clr!DllUnregisterServerInternal+233b3 00000000206df210 00000000206df150 00007ffd883fb0d8 000000001c211b70
clr!DllUnregisterServerInternal+6d9 000000000377d958 00000000206df150 000000001c211b70 00007ffd8c235ec8
clr!DllUnregisterServerInternal+3db19 00000000206df150 00007ffd89312b98 0000000000000018 00007ffd8931319a
clr!DllUnregisterServerInternal+3daa0 0000000000000001 0000000000000001 0000000000000000 0000000000000000
clr!DllUnregisterServerInternal+3da11 8000000000000000 000000001c211b70 0000000000000000 0000000000000000
clr!DllUnregisterServerInternal+3db53 000000001c211b70 0000000000000001 0000000000000000 00007ffd00000006
clr!DllUnregisterServerInternal+5ae 000000001c276c50 000000001c211b70 00000000206df1e8 ffffffffe3ded800
clr!DllUnregisterServerInternal+2a582 0000000000000000 0000000000000000 0000000000000000 0000000000000000
kernel32!BaseThreadInitThunk+d 0000000000000000 0000000000000000 0000000000000000 0000000000000000
ntdll!RtlUserThreadStart+1d 0000000000000000 0000000000000000 0000000000000000 0000000000000000

Exception Information LIBZMQ+17850WARNING - DebugDiag was not able to locate debug symbols for libzmq.dll, so the information below may be incomplete.

In QX.MDManagerPID2956Date01_17_2017__Time_02_12_37PM209Second_Chance_Exception_C0000005.dmp the assembly instruction at libzmq+17850 in C:\Program Files\QXT\Blitz Test1\amd64\libzmq.dll from iMatix Corporation has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000000 on thread 14

Module Information Image Name: C:\Program Files\QXT\Blitz Test1\amd64\libzmq.dll Symbol Type: Export Base address: 0x0000000300905a4d Time Stamp: Fri Mar 18 19:24:36 2016 Checksum: 0x0000000000000000 Comments:
COM DLL: False Company Name: iMatix Corporation ISAPIExtension: False File Description: ZeroMQ lightweight messaging kernel ISAPIFilter: False File Version: 4.1.5.0 Managed DLL: False Internal Name: zeromq VB DLL: False Legal Copyright: Copyright (c) 2012 The ZeroMQ Authors. Loaded Image Name: libzmq.dll Legal Trademarks:
Mapped Image Name: Original filename: libzmq.dll Module name: libzmq Private Build:
Single Threaded: False Product Name: ZeroMQ Module Size: 580.00 KBytes Product Version: 4.1.5.0 Symbol File Name: libzmq.dll Special Build: &

`

metadings commented 7 years ago

I'm sorry, this dump says nothing...

Do you have some source code to look on?

metadings commented 6 years ago

I'm closing this issue, this is due to an old compilation of libzmq.dll and has nothing to do with this binding.