[Xapian-devel] xapian csharp bindings crash

Greg freediving at gmail.com
Sat Jun 25 16:37:09 BST 2011


We're running xapian on our windows web machine, and we're having
intermittent crashes from time to time, I've managed to capture two
DUMP-s of the processes on two different occasions. There was some
issue with a mismatched .pdb since I've compiled it a few times in
development since the production server was updated so I can't match
those.

However, in both cases the faulting module was _XapianSharp.dll, the
windows exception is c0000005 (Access violation), the following is
what I managed to get from windbg:

FAULTING_IP:
_XapianSharp!CSharp_TermGenerator_SetFlags__SWIG_1+f2ca5
000007fe`e3d8533e 8b440208        mov     eax,dword ptr [rdx+rax+8]

EXCEPTION_RECORD:  ffffffffffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 000007fee3d8533e
(_XapianSharp!CSharp_TermGenerator_SetFlags__SWIG_1+0x00000000000f2ca5)
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]: 0000000000000000
   Parameter[1]: 000000001dcb0058
Attempt to read from address 000000001dcb0058

PROCESS_NAME:  w3wp.exe

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx
referenced memory at 0x%08lx. The memory could not be %s.

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx
referenced memory at 0x%08lx. The memory could not be %s.

EXCEPTION_PARAMETER1:  0000000000000000

EXCEPTION_PARAMETER2:  000000001dcb0058

READ_ADDRESS:  000000001dcb0058

FOLLOWUP_IP:
_XapianSharp!CSharp_TermGenerator_SetFlags__SWIG_1+f2ca5
000007fe`e3d8533e 8b440208        mov     eax,dword ptr [rdx+rax+8]

I still have the dump files I could upload if they'll help, I'll also
upload the latest compiled binaries to our production so that next
crash will have proper pdb-s. In any case it looks to be an issue with
pointer access in CSharp_TermGenerator_SetFlags__SWIG_1.

Any help would be much appreciated, thanks.



More information about the Xapian-devel mailing list