Valgrind has detected an invalid read from OpenSAF 5.22.06
Object /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
Function __memcpy_chk
File/Line
Object /usr/lib64/libopensaf_core.so.0.2.0
Function memcpy
File/Line /usr/include/bits/string3.h:53
Object /usr/lib64/libopensaf_core.so.0.2.0
Function ncs_patricia_tree_getnext
File/Line opensaf/src/base/patricia.c:491
Object /usr/lib64/libopensaf_core.so.0.2.0
Function mds_subtn_res_tbl_query_next_active
File/Line opensaf/src/mds/mds_c_db.c:2680
Object /usr/lib64/libopensaf_core.so.0.2.0
Function mds_mcm_svc_down
File/Line opensaf/src/mds/mds_c_api.c:3862
Object /usr/lib64/libopensaf_core.so.0.2.0
Function mdtm_process_discovery_events
File/Line opensaf/src/mds/mds_dt_tipc.c:1431
Object /usr/lib64/libopensaf_core.so.0.2.0
Function mdtm_process_recv_events
File/Line opensaf/src/mds/mds_dt_tipc.c:943
Object /lib64/libpthread-2.22.so
Function start_thread
File/Line
Object /lib64/libc-2.22.so
Function clone
File/Line
Object /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
Function free
File/Line
Object /usr/lib64/libopensaf_core.so.0.2.0
Function mds_subtn_res_tbl_del
File/Line opensaf/src/mds/mds_c_db.c:2051
Object /usr/lib64/libopensaf_core.so.0.2.0
Function mds_mcm_svc_down
File/Line opensaf/src/mds/mds_c_api.c:3862
Object /usr/lib64/libopensaf_core.so.0.2.0
Function mdtm_process_discovery_events
File/Line opensaf/src/mds/mds_dt_tipc.c:1431
Object /usr/lib64/libopensaf_core.so.0.2.0
Function mdtm_process_recv_events
File/Line opensaf/src/mds/mds_dt_tipc.c:943
Object /lib64/libpthread-2.22.so
Function start_thread
File/Line
Object /lib64/libc-2.22.so
Function clone
File/Line
Diff:
Reproduced in develop branch.
Reproduce steps:
1. Apply the test case patch
2. Build and deploy OpenSAF.
3. Run the following command inside a node:
valgrind --error-exitcode=1 --leak-check=no mdstest 4 13
Last edit: Hieu Hong Hoang 2022-11-01
commit 02037580ba403cb0afc66afb1e70c46c7210e21b (HEAD -> develop, ticket-3324)
Author: hieu.h.hoang hieu.h.hoang@dektech.com.au
Date: Thu Nov 3 10:07:09 2022 +0700
commit f5b653c6a77b0d43b647ef8930403645ff147bcd
Author: hieu.h.hoang hieu.h.hoang@dektech.com.au
Date: Thu Nov 3 09:56:53 2022 +0700
commit 81e23dd92464fbb8e880e48e38c033f5b02084d9
Author: hieu.h.hoang hieu.h.hoang@dektech.com.au
Date: Mon Oct 31 14:23:17 2022 +0700