---

** [tickets:#2107] immtool: immcfg finalizes admo even when admo is not 
initialized**

**Status:** accepted
**Milestone:** 5.1.1
**Created:** Mon Oct 10, 2016 03:46 AM UTC by Hung Nguyen
**Last Updated:** Mon Oct 10, 2016 03:46 AM UTC
**Owner:** Hung Nguyen


The transaction mode in immcfg command fails with error SA_AIS_ERR_BAD_HANDLE 
when exiting
The bug can be reproduced with following test case:

~~~
SC-1:~ # echo "" | immcfg
error - saImmOmAdminOwnerFinalize FAILED: SA_AIS_ERR_BAD_HANDLE (9)
SC-1:~ # echo $?
1
~~~

See also ltrace below. It shows that saImmOmAdminOwnerFinalize() is called even 
though saImmOmAdminOwnerInitialize() has *never* been called, therefore handle 
must be invalid.
~~~
SC-1:~ # echo "" | ltrace immcfg
__libc_start_main(0x4046f0, 1, 0x7ffd7991aca8, 0x415a90 <unfinished ...>
_ZNSt8ios_base4InitC1Ev(0x61ea68, 0x7ffd7991aca8, 0x7ffd7991acb8, 5)        = 0
__cxa_atexit(0x7febc7b07250, 0x61ea68, 0x61e588, 0x7ffd7991aaa0)            = 0
__cxa_atexit(0x40b5b0, 0x61ea00, 0x61e588, 6)                               = 0
setenv("SA_ENABLE_EXTENDED_NAMES", "1", 1)                                  = 0
osaf_extended_name_init(0x250bdd0, 0x7ffd7991ae68, 0, 0x7ffd7991cfca)       = 
0x7febc84d3148
getopt_long(1, 0x7ffd7991aca8, "a:c:f:t:dhmvuL:o:X:", 0x7ffd7991a7a0, 0)    = -1
saImmOmInitialize(0x61ea88, 0, 0x7ffd7991a520, 0)                           = 1
fileno(0x7febc6f1c4e0)                                                      = 0
__fxstat(1, 0, 0x7ffd7991a690)                                              = 0
__getdelim(0x7ffd7991a558, 0x7ffd7991a550, 10, 0x7febc6f1c4e0)              = 1
strlen("\n")                                                                = 1
strlen("\n")                                                                = 1
free(0x252eac0)                                                             = 
<void>
__getdelim(0x7ffd7991a558, 0x7ffd7991a550, 10, 0x7febc6f1c4e0)              = -1
free(0x252eac0)                                                             = 
<void>
saImmOmAdminOwnerFinalize(0, 0, 0x7febc6f1b658, 0)                          = 9
saf_error(9, 0, 0x7febc8256398, 0)                                          = 
0x7febc82b2a5f
__fprintf_chk(0x7febc6f1c060, 1, 0x417030, 0x7febc82b2a5ferror - 
saImmOmAdminOwnerFinalize FAILED: SA_AIS_ERR_BAD_HANDLE (9))                =68
saImmOmFinalize(0x38530002010f, 68, 0, -1)                                  = 1
+++ exited (status 1) +++
~~~


---

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.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to