- **status**: accepted --> review


---

** [tickets:#1776] imm: IMMND crashes when receiving update-rt-attribute 
response after it is timed out**

**Status:** review
**Milestone:** 4.6.2
**Created:** Fri Apr 22, 2016 04:50 AM UTC by Hung Nguyen
**Last Updated:** Fri Apr 22, 2016 11:40 AM UTC
**Owner:** Hung Nguyen
**Attachments:**

- [src.zip](https://sourceforge.net/p/opensaf/tickets/1776/attachment/src.zip) 
(3.0 kB; application/x-zip-compressed)


Source code of test application is attached to this ticket.

Import the 'Test' class and create some objects of it.
root@SC-1:~# immcfg -f test_class.xml
root@SC-1:~# immpopulate -p 10 Test

Run the OI. The OI has a sleep of 7 seconds in SaImmOiRtAttrUpdateCallbackT.
root@SC-1:~# ./test_oi &

Try to read all objects of 'Test' class
root@SC-1:~# ./test_search

IMMND crashes when receiving respose from the OI.
Apr 22 11:27:51 SC-2 osafimmnd[431]: immnd_evt.c:1080: search_req_continue: 
Assertion 'strncmp((const char *)rsp->objectName.buf, (const char 
*)reply->runtimeAttrs.objectName.buf, rsp->objectName.size) == 0' failed.

-----
Analysis:

When the upcall to OI is timed out, IMMND erases the Continuation from the 
sSearchReqContinuationMap but it still keeps the search-node (and the searchOp).

On the search client, after getting timeout, it doesn't finalize the search 
handle and continues to do SearchNext().
That makes the searchOp in IMMND pop out a new object and store it to 
mLastResult.

When the response from OI arrives at IMMND, it fails to assert because a new 
object in searchOp has been popped out.




---

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.
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to