- **Comment**:

This may be caused by the #305 patch, "skip processing of ccb completed cbk at 
standby amfd [#305]"




---

** [tickets:#947] AMF: Segmentation violation in *__ccb_apply_cb at 
CCBUTIL_DELETE**

**Status:** review
**Milestone:** 4.3.3
**Created:** Fri Jun 27, 2014 01:17 PM UTC by hano
**Last Updated:** Fri Jun 27, 2014 01:47 PM UTC
**Owner:** nobody

Segmentation violations are encountered in sutcomptype_ccb_apply_cb et al.

At:
case CCBUTIL_DELETE:
        comp_type = comptype_db->find(Amf::to_string(&opdata->objectName));
        if (NULL != comp_type->list_of_comp) {

if not found, comp_type is 0 which is not checked. opdata->userData is set
to comp_type, now 0. This results in segmentation violation later in
sutcomptype_ccb_apply_cb.

To correct this:
 case CCBUTIL_DELETE:
        sutcomptype = sutcomptype_db->find(Amf::to_string(&opdata->objectName));
        if (sutcomptype == 0)
            goto done;

why the object is not found should be investigated, are there problems with
std::string vs. SaNameT, i.e garbage etc. in SaNameT? /Hans 


---

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.
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to