[openib-general] Re: [PATCH] osm_mcast_mgr: using deleted handle caused segmentation fault

Hal Rosenstock halr at voltaire.com
Mon Mar 20 09:22:51 PST 2006


Hi Ofer,

On Mon, 2006-03-20 at 07:53, Ofer Gigi wrote:
> Hi Hal,
> 
> In osm_mcast_mgr.c the line 
> 
> osm_mgrp_send_delete_notice( p_mgr->p_subn, p_mgr->p_log, p_mgrp );
> 
> caused segmentation fault since the handle p_mgrp was already deleted while the 
> function was called.
> 
> The fix inserted the line above into the protected section.
> 
> The bug was found while running 
> osmtest -f m -M 3
> and running opensm compiled with "efence" - memory allocation tool.
> 
> Thanks
> 
> Ofer G.
> 
> Signed-off-by:  Ofer Gigi <oferg at mellanox.co.il>

Thanks! Applied (to both trunk and 1.0 branch).

-- Hal




More information about the general mailing list