- **Milestone**: 4.6.2 --> 4.7.2


---

** [tickets:#1803] imm: "CcbAugment with 2 OIs" testcase crashes**

**Status:** assigned
**Milestone:** 4.7.2
**Created:** Tue May 03, 2016 09:33 AM UTC by Hung Nguyen
**Last Updated:** Tue May 03, 2016 11:05 AM UTC
**Owner:** Hung Nguyen


Not always reproducible

~~~~
root@SC-1:~# /hostfs/immoitest 6 4

Suite 6: Augmented CCBs
immoitest: test_saImmOiAugmentCcbInitialize.c:717: 
saImmOiCcbAugmentInitialize_04: Assertion `callbackCounter == 6' failed.
Aborted (core dumped)
~~~~

---

Analysis:
Increment of 'callbackCounter' in the OI callbacks is not atomic.
Even when the 2 OIs receives 6 callbacks in total, 'callbackCounter' may not be 
6.

~~~
    /* Wait for 2 completed and 2 apply callbacks */
    while(callbackCounter != 6 && threadCounter == 2)
        usleep(500);
    assert(callbackCounter == 6);
~~~

In that case, the OI threads will exit after 2 seconds (poll time out).
That results in the while() loop stopping (threadCounter != 2) and assertion 
failing.

'callbackCounter' and 'threadCounter" should be thread-safe.


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net 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.
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to