Menu

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

4.6.2
fixed
None
defect
imm
nd
major
2016-04-28
2016-04-22
Hung Nguyen
No

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.

Related

Tickets: #1776
Wiki: ChangeLog-4.6.2

Discussion

  • Hung Nguyen

    Hung Nguyen - 2016-04-22
    • status: unassigned --> accepted
    • assigned_to: Hung Nguyen
     
  • Hung Nguyen

    Hung Nguyen - 2016-04-26
    • status: accepted --> review
     
  • Hung Nguyen

    Hung Nguyen - 2016-04-28
    • status: review --> fixed
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2019-07-04
    • Attachments has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +0,0 @@
    -src.zip (3.0 kB; application/x-zip-compressed)
    
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2019-07-04
     

Log in to post a comment.