---
** [tickets:#2312] logtest: Log test Segmentation faults if System
controller name is other that SC-1 /SC-2 **
**Status:** unassigned
**Milestone:** 5.2.FC
**Created:** Fri Feb 17, 2017 06:41 AM UTC by A V Mahesh (AVM)
**Last Updated:** Fri Feb 17, 2017 06:41 AM UTC
**Owner:** nobody
configure diffrent name for Systmen controlers
(/usr/share/opensaf/immxml/nodes.cfg )
and created imm.xml and run logtest
=============================================================
/usr/share/opensaf/immxml # cat /usr/share/opensaf/immxml/nodes.cfg
SC fm1 SC-1
SC fm2 PL-1
PL PL-3 PL-3
PL PL-4 PL-4
SC-1:~ # /usr/bin/logtest 4
Suite 4: LOG OI tests, stream objects
1 PASSED CCB Object Modify saLogStreamFileName;
2 PASSED CCB Object Modify saLogStreamPathName, ERR not allowed;
3 PASSED CCB Object Modify saLogStreamMaxLogFileSize;
.............................
20 PASSED Log Service Administration API, change sev filter, ERR invalid
param name;
21 PASSED Log Service Administration API, no change in sev filter, ERR NO
OP;
22 PASSED Log Service Administration API, invalid opId;
Segmentation fault
SC-1:~ #
/================================================================================
14 PASSED CCB Object Modify saLogStreamSeverityFilter;
Detaching after fork from child process 22461.
15 PASSED saImmOiRtAttrUpdateCallback;
Detaching after fork from child process 22465.
16 PASSED Log Service Administration API, change sev filter for app
stream OK;
Detaching after fork from child process 22469.
17 PASSED Log Service Administration API, change sev filter, ERR invalid
stream;
Detaching after fork from child process 22473.
18 PASSED Log Service Administration API, change sev filter, ERR invalid
arg type;
Detaching after fork from child process 22477.
19 PASSED Log Service Administration API, change sev filter, ERR invalid
severity;
Detaching after fork from child process 22481.
20 PASSED Log Service Administration API, change sev filter, ERR invalid
param name;
Detaching after fork from child process 22485.
Detaching after fork from child process 22489.
21 PASSED Log Service Administration API, no change in sev filter, ERR NO
OP;
Detaching after fork from child process 22493.
22 PASSED Log Service Administration API, invalid opId;
Program received signal SIGSEGV, Segmentation fault.
0x000055555555db50 in get_active_sc () at src/log/apitest/logtest.c:312
312 src/log/apitest/logtest.c: No such file or directory.
in src/log/apitest/logtest.c
(gdb) bt
/#0 0x000055555555db50 in get_active_sc () at src/log/apitest/logtest.c:312
/#1 0x0000555555562ddc in saLogOi_116 () at src/log/apitest/tet_LogOiOps.c:582
/#2 0x0000555555570855 in run_test_case ()
/#3 0x0000555555570cf4 in test_run ()
/#4 0x000055555555bcad in main () at src/log/apitest/logtest.c:569
(gdb) dir /avm/staging-publish/
Source directories searched: /avm/staging-publish:$cdir:$cwd
(gdb) bt
/#0 0x000055555555db50 in get_active_sc () at src/log/apitest/logtest.c:312
/#1 0x0000555555562ddc in saLogOi_116 () at src/log/apitest/tet_LogOiOps.c:582
/#2 0x0000555555570855 in run_test_case ()
/#3 0x0000555555570cf4 in test_run ()
/#4 0x000055555555bcad in main () at src/log/apitest/logtest.c:569
(gdb)
src/log/apitest # grep -r "SC-" *
logtest.c: * @return 1 SC-1, 2 SC-2
logtest.c: SaConstStringT objname = "safSu=SC-1,safSg=2N,safApp=OpenSAF";
logtest.c: /* Checking SC-1 */
logtestfr.c: * @return 1 SC-1, 2 SC-2
logtestfr.c: SaNameT objectName1 = { /* Read object for SC-1 */
logtestfr.c: .value = "safSu=SC-1,safSg=2N,safApp=OpenSAF",
logtestfr.c: .length = strlen("safSu=SC-1,safSg=2N,safApp=OpenSAF")
+ 1
logtestfr.c: /* Checking SC-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