- **Milestone**: 4.5.FC --> 4.5.0
---
** [tickets:#980] IMM: immcfg coredump when creating long dn object**
**Status:** unassigned
**Milestone:** 4.5.0
**Created:** Fri Aug 08, 2014 07:38 PM UTC by Minh Hon Chau
**Last Updated:** Fri Aug 08, 2014 07:55 PM UTC
**Owner:** nobody
Coredump on immcfg by following test:
root@uvb:~/ grep EXTENDED /etc/opensaf/immnd.conf
export SA_ENABLE_EXTENDED_NAMES=1
root@uvb:~/ immcfg -m -a longDnsAllowed=1
opensafImm=opensafImm,safApp=safImmService
root@uvb:~/ immcfg -f longdn_class.xml
root@uvb:~/ immcfg -c OsafNtfCmTestCFG stringRdnCfg=abcd
root@uvb:~/ immcfg -a testNameCfg=123 stringRdnCfg=abcd
root@uvb:~/ immlist stringRdnCfg=abcd
Name Type Value(s)
========================================================================
testNameCfg SA_NAME_T 123 (3)
stringRdnCfg SA_STRING_T
stringRdnCfg=abcd
SaImmAttrImplementerName SA_STRING_T <Empty>
SaImmAttrClassName SA_STRING_T OsafNtfCmTestCFG
SaImmAttrAdminOwnerName SA_STRING_T <Empty>
root@uvb:~/ immcfg -a
testNameCfg=1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
1111111111111111 stringRdnCfg=abcd
Aborted (core dumped)
-------------------------------------------------------------------
The longdn_class.xml as below:
"
<imm:IMM-contents xsi:noNamespaceSchemaLocation="SAI-AIS-IMM-XSD-A.01.01.xsd">
<class name="OsafNtfCmTestCFG">
<category>SA_CONFIG</category>
<rdn>
<name>stringRdnCfg</name>
<type>SA_STRING_T</type>
<category>SA_CONFIG</category>
<flag>SA_INITIALIZED</flag>
<flag>SA_NOTIFY</flag>
</rdn>
<attr>
<name>testNameCfg</name>
<type>SA_NAME_T</type>
<category>SA_CONFIG</category>
<flag>SA_MULTI_VALUE</flag>
<flag>SA_NOTIFY</flag>
<flag>SA_WRITABLE</flag>
</attr>
</class>
</imm:IMM-contents>
"
--------------------------------------------------------------------
the backtrace as below:
Core was generated by `immcfg -a
testNameCfg=111111111111111111111111111111111111111111111111111111111'.
Program terminated with signal SIGABRT, Aborted.
\#0 0x00000000415d5f79 in raise () from /lib64/libc.so.6
(gdb) bt
\#0 0x00000000415d5f79 in raise () from /lib64/libc.so.6
\#1 0x00000000415d9388 in abort () from /lib64/libc.so.6
\#2 0x00000000409c5cbe in __osafassert_fail (__file=__file@entry=0x409f9cd1
"osaf_extended_name.c",
__line=__line@entry=130, __func=__func@entry=0x409f9d60 <__FUNCTION__.3257>
"osaf_extended_name_length",
__assertion=__assertion@entry=0x409f9d10 "osaf_extended_names_enabled &&
length >= SA_MAX_UNEXTENDED_NAME_LENGTH")
at sysf_def.c:281
\#3 0x00000000409c3936 in osaf_extended_name_length (name=name@entry=0x62dc60)
at osaf_extended_name.c:129
\#4 0x0000000040c322fd in imma_copyAttrValue (p=0x62d870,
attrValueType=SA_IMM_ATTR_SANAMET, attrValue=0x62dc60)
at imma_init.c:421
\#5 0x0000000040c24e77 in saImmOmCcbObjectModify_2
(ccbHandle=ccbHandle@entry=1406852104797087000,
objectName=objectName@entry=0x61b240, attrMods=attrMods@entry=0x62dc40) at
imma_om_api.c:2349
\#6 0x0000000000412ddc in immutil_saImmOmCcbObjectModify_2
(immCcbHandle=1406852104797087000, objectName=0x61b240,
attrMods=attrMods@entry=0x62dc40) at immutil.c:1540
\#7 0x000000000040d2ee in object_modify
(objectNames=objectNames@entry=0x61b220, optargs=optargs@entry=0x61b010,
optargs_len=optargs_len@entry=1) at imm_cfg.c:589
\#8 0x000000000040e894 in imm_operation (argc=4, argv=<optimised out>) at
imm_cfg.c:1439
\#9 0x00000000415c0ec5 in __libc_start_main () from /lib64/libc.so.6
\#10 0x000000000040378e in _start ()
(gdb) f 2
\#2 0x00000000409c5cbe in __osafassert_fail (__file=__file@entry=0x409f9cd1
"osaf_extended_name.c",
__line=__line@entry=130, __func=__func@entry=0x409f9d60 <__FUNCTION__.3257>
"osaf_extended_name_length",
__assertion=__assertion@entry=0x409f9d10 "osaf_extended_names_enabled &&
length >= SA_MAX_UNEXTENDED_NAME_LENGTH")
at sysf_def.c:281
281 abort();
(gdb) p osaf_extended_names_enabled
$1 = false
(gdb)
---
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.
------------------------------------------------------------------------------
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets