From the ticket description, I can't find the exact issue. I am not able to
reproduce a case where immnd is down and it is returning TRY_AGAIN to the
Amfnd. During Immnd down case, Imm API call stuck at Imma at the following
location:
"immutil_saImmOmInitialize->initialize_common->imma_startup->imma_create->imma_sync_with_immnd"
The log it prints is "Blocking first client".
I could reproduce the following scenario of chicken-egg:
After killing Immnd and performing unlock-in any SU at the same time, Amfnd
stucks at Imma call and Immnd waits for Amfnd to instantiate. So, both waits
for each other.
So, I have a fix for this scenario. I have created a separate thread for SU
instantiaion to happen. Since SU getting instantiation is first step, so it
doesn't interfare with existing main thread, so no need of having any mutex
among the main thread and another thread.
What are the opinion? Can I float the patch as I am not able to reproduce the
issue mentioned in the ticket and there is no logs provided.
Thanks
-Nagu
---
** [tickets:#517] Amfnd: coredumps when calling immutil_saImmOmInitialize**
**Status:** accepted
**Milestone:** 5.0.FC
**Created:** Wed Jul 24, 2013 08:29 AM UTC by Hans Nordebäck
**Last Updated:** Fri Jan 08, 2016 10:41 AM UTC
**Owner:** Nagendra Kumar
avnd_comp_config_get_su calls immutil_saImmOmInitialize and
ImmutilWrapperProfile is not set by avnd so default values are used and immutil
calls abort at errors.
There are two problems here, immutil should not do abort and the other problem
is that immutil do sleeps in try again loops. Avnd is event based and immutil
is configurable but errors and try-again logic has to be managed by avnd.
(gdb) bt
#0 0x00007ffac238cb35 in raise () from /lib64/libc.so.6
#1 0x00007ffac238e111 in abort () from /lib64/libc.so.6
#2 0x00000000004051e8 in defaultImmutilError (fmt=0x43fc70 "saImmOmInitialize
FAILED, rc = %d") at ../../../../../osaf/tools/safimm/src/immutil.c:70
#3 0x00000000004065e4 in immutil_saImmOmInitialize (immHandle=0x7fff7098d380,
immCallbacks=0x0, version=0x7fff7098d3a0)
at ../../../../../osaf/tools/safimm/src/immutil.c:1126
#4 0x0000000000422551 in avnd_comp_config_get_su (su=0x66d8d0) at
avnd_compdb.c:1743
#5 0x0000000000436560 in avnd_evt_avd_su_pres_evh (cb=0x6578c0,
evt=<optimized out>) at avnd_susm.c:1236
#6 0x000000000042ffe0 in avnd_evt_process (evt=<optimized out>) at
avnd_proc.c:278
#7 avnd_main_process () at avnd_proc.c:219
#8 0x0000000000408805 in main (argc=1, argv=0x7fff7098d578) at amfnd_main.c:71
---
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.------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets