[Openib-windows] Running WSD applications with application verifier enabled

Tzachi Dar tzachid at mellanox.co.il
Sun Jun 11 01:53:14 PDT 2006


Hi Fab,
 
While running applications with application verifier enabled the
verifier complains about setting a NULL event on the function
IBSPEnumNetworkEvents.
 
It seems that replacing the line (~880)
 
ResetEvent( hEventObject );
 
with the lines
 if( hEventObject != NULL )
 {
  ResetEvent( hEventObject );
 }

stops this problem.
 
So, can you please apply the following patch?
Thanks
Tzachi
 
 
Index: ibspdll.c
===================================================================
--- ibspdll.c (revision 380)
+++ ibspdll.c (working copy)
@@ -874,7 +874,10 @@
 
  IBSP_ENTER( IBSP_DBG_NEV );
 
- ResetEvent( hEventObject );
+ if( hEventObject != NULL)
+ {
+  ResetEvent( hEventObject );
+ }
 
  lpNetworkEvents->lNetworkEvents =
   InterlockedExchange( &socket_info->network_events, 0 );

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060611/49e5c97b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WSD_event.patch
Type: application/octet-stream
Size: 408 bytes
Desc: WSD_event.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20060611/49e5c97b/attachment.obj>


More information about the ofw mailing list