[ofa-general] [OPENSM] fix console segfault corner casem

Al Chu chu11 at llnl.gov
Thu Sep 4 10:00:58 PDT 2008


Hey Sasha,

I thought of a way to make it slightly cleaner.  New patch attached.

Al

On Wed, 2008-09-03 at 11:21 -0700, Al Chu wrote:
> Hey Sasha,
> 
> If the call to osm_console_init() fails (most typically b/c bind fails
> b/c the port is already used), we can fall through into osm_console()
> and segfault b/c a bunch of stuff isn't initialized properly.  Can be
> handled multiple ways.  The patch below makes osm_console_init() return
> a non-void so we can recognize if an error occurred.
> 
> Al
> 
> _______________________________________________
> general mailing list
> general at lists.openfabrics.org
> http:// lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> 
> To unsubscribe, please visit http:// openib.org/mailman/listinfo/openib-general
-- 
Albert Chu
chu11 at llnl.gov
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-segfault-corner-case-when-osm_console_init-fails.patch
Type: text/x-patch
Size: 3494 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20080904/c6fedf16/attachment.bin>


More information about the general mailing list