changeset:   8396:7c92427bfd93
branch:      opensaf-5.1.x
user:        Hoang Vo <>
date:        Thu Dec 01 15:14:41 2016 +0530
summary:     cpnd: fix error handling while section_hdr_update_fail [#2207]
changeset:   8397:21094b948d29
tag:         tip
parent:      8392:119ad64e95b0
user:        Hoang Vo <>
date:        Thu Dec 01 15:18:01 2016 +0530
summary:     cpnd: fix error handling while section_hdr_update_fail [#2207]


** [tickets:#2207] cpnd: osafckptnd core dump while handling error 

**Status:** review
**Milestone:** 5.2.FC
**Created:** Thu Nov 24, 2016 09:45 AM UTC by Vo Minh Hoang
**Last Updated:** Thu Dec 01, 2016 10:31 AM UTC
**Owner:** Vo Minh Hoang

 (12.7 kB; application/octet-stream)

the steps to add a section is add_db_tree -> update_sec_hdr -> update_ckpt_hdr 
so if an error occur cpsv should handle error in reverse order.
currently, section_hdr_update_fails, cpsv revert ckpt_hdr also that possibly 
cause the problem

Core was generated by `/usr/lib64/opensaf/osafckptnd'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f1846da1109 in __memcpy_sse2_unaligned () from /lib64/
Missing separate debuginfos, use: zypper install 
(gdb) bt
#0  0x00007f1846da1109 in __memcpy_sse2_unaligned () from /lib64/
#1  0x00007f1847f26f25 in memcpy (__len=<optimized out>, __src=<optimized out>, 
__dest=<optimized out>)
    at /usr/include/x86_64-linux-gnu/bits/string3.h:53
#2  ncs_os_posix_shm (req=req@entry=0x7ffd24f978f0) at os_defs.c:859
#3  0x000000000041561d in cpnd_ckpt_hdr_update (cp_node=cp_node@entry=0xa708e0) 
at cpnd_proc.c:1833
#4  0x000000000041b016 in cpnd_ckpt_sec_del (cp_node=cp_node@entry=0xa708e0, 
#5  0x0000000000406190 in cpnd_ckpt_sec_add (cp_node=cp_node@entry=0xa708e0, 
    exp_time=1479906629297747000, gen_flag=gen_flag@entry=0) at cpnd_db.c:473
#6  0x000000000040cfe2 in cpnd_evt_proc_ckpt_sect_create (cb=cb@entry=0x8c77f0,
    evt=evt@entry=0x7f184000a560, sinfo=sinfo@entry=0x7f184000abb8) at 
#7  0x000000000040e7cc in cpnd_process_evt (evt=0x7f184000a550) at 
#8  0x00000000004103bd in cpnd_main_process (cb=cb@entry=0x8c77f0) at 
#9  0x0000000000405383 in main (argc=<optimized out>, argv=<optimized out>) at 

consequence of #2202


Sent from because is 
subscribed to

To unsubscribe from further messages, a project admin can change settings at  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
Opensaf-tickets mailing list

Reply via email to