- **status**: unassigned --> assigned
- **assigned_to**: Nagendra Kumar


---

** [tickets:#1365] amfd: accesses null pointer during node failover**

**Status:** assigned
**Milestone:** 4.5.2
**Created:** Mon May 04, 2015 07:34 AM UTC by Nagendra Kumar
**Last Updated:** Mon May 04, 2015 07:34 AM UTC
**Owner:** Nagendra Kumar

In once of the incidences, we observed that node id was not available at amfd 
data base during node failover and it logged below:
osafamfd[12539]: ER FAILOVER StandBy --> Active FAILED, node 2010f not found
----------------------
The code snap is :
        if (NULL == (my_node = avd_node_find_nodeid(cb->node_id_avd))) {
                LOG_ER("FAILOVER StandBy --> Active FAILED, node %x not found", 
cb->node_id_avd);
                goto done;
        }
-----------------------

And then execution jumps to goto done, where Amfd accesses my_node, which is 
null:
---------------------
done:
        if (NCSCC_RC_SUCCESS != status)
                opensaf_reboot(my_node->node_info.nodeId, (char 
*)my_node->node_info.executionEnvironment.value,
                                "FAILOVER failed");
-------------------------------

This code needs some modification so that amfd doesn't access the null pointer.



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to