[ofw] [bug] Assert in opensm 3.3.11
    Leonid Keller 
    leonid at mellanox.co.il
       
    Sat Oct 15 11:23:13 PDT 2011
    
    
  
Hi Stan,
I got an assert in Win8 on setvbuf (see below).
It states that size should be at least 2.
Also MSDN agrees with that:
size
Buffer size in bytes. Allowable range: 2 <= size <= INT_MAX (2147483647)
Here is the suggested patch.
Index: main.c
===================================================================
--- main.c             (revision 8962)
+++ main.c          (revision 8963)
@@ -732,7 +732,7 @@
                };
                /* force stdout to be line-buffered */
-              setvbuf(stdout, NULL, _IOLBF, 0);
+             setvbuf(stdout, NULL, _IOLBF, 1024);
                /* Make sure that the opensm and complib were compiled using
                   same modes (debug/free) */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20111015/db1d1b7a/attachment.html>
    
    
More information about the ofw
mailing list