- **status**: review --> assigned


---

** [tickets:#3335] imm: Valgrind reported errors**

**Status:** assigned
**Milestone:** 5.23.07
**Created:** Mon Apr 10, 2023 03:06 AM UTC by PhanTranQuocDat
**Last Updated:** Mon Apr 10, 2023 04:03 AM UTC
**Owner:** PhanTranQuocDat


Valgrind detects memleaks:

/var/lib/lxc/SC-2/rootfs/var/log/opensaf/immd.valgrind
==417== 8,072 (56 direct, 8,016 indirect) bytes in 1 blocks are definitely lost 
in loss record 108 of 111
==417==    at 0x4C31B0F: malloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==417==    by 0x52ACC2B: sysf_alloc_pkt (sysf_mem.c:429)
==417==    by 0x529BA1F: ncs_enc_init_space_pp (hj_ubaid.c:144)
==417==    by 0x52C9996: mdtm_fill_data (mds_dt_common.c:1454)
==417==    by 0x52CACCD: mdtm_process_recv_message_common (mds_dt_common.c:544)
==417==    by 0x52CB071: mdtm_process_recv_data (mds_dt_common.c:1126)
==417==    by 0x52D5B8E: mdtm_process_recv_events (mds_dt_tipc.c:1144)
==417==    by 0x55106DA: start_thread (pthread_create.c:463)
==417==    by 0x584961E: clone (clone.S:95) 

/var/lib/lxc/SC-1/rootfs/var/log/opensaf/immd.valgrind
==417== 7 bytes in 1 blocks are definitely lost in loss record 6 of 117
==417==    at 0x4C33B25: calloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==417==    by 0x4E430B1: immsv_evt_dec_inline_string (immsv_evt.c:238)
==417==    by 0x1172C4: mbcsv_dec_async_update (immd_mbcsv.c:1128)
==417==    by 0x1172C4: immd_mbcsv_decode_proc (immd_mbcsv.c:1402)
==417==    by 0x1172C4: immd_mbcsv_callback (immd_mbcsv.c:411)
==417==    by 0x52B1335: ncs_mbscv_rcv_decode (mbcsv_act.c:409)
==417==    by 0x52B14D0: ncs_mbcsv_rcv_async_update (mbcsv_act.c:460)
==417==    by 0x52B829F: mbcsv_process_events (mbcsv_pr_evts.c:166)
==417==    by 0x52B83BA: mbcsv_hdl_dispatch_all (mbcsv_pr_evts.c:271)
==417==    by 0x52B2A19: mbcsv_process_dispatch_request (mbcsv_api.c:426)

--
==417== 8 bytes in 1 blocks are definitely lost in loss record 15 of 117
==417==    at 0x4C33B25: calloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==417==    by 0x4E430B1: immsv_evt_dec_inline_string (immsv_evt.c:238)
==417==    by 0x117288: mbcsv_dec_async_update (immd_mbcsv.c:1119)
==417==    by 0x117288: immd_mbcsv_decode_proc (immd_mbcsv.c:1402)
==417==    by 0x117288: immd_mbcsv_callback (immd_mbcsv.c:411)
==417==    by 0x52B1335: ncs_mbscv_rcv_decode (mbcsv_act.c:409)
==417==    by 0x52B14D0: ncs_mbcsv_rcv_async_update (mbcsv_act.c:460)
==417==    by 0x52B829F: mbcsv_process_events (mbcsv_pr_evts.c:166)
==417==    by 0x52B83BA: mbcsv_hdl_dispatch_all (mbcsv_pr_evts.c:271)
==417==    by 0x52B2A19: mbcsv_process_dispatch_request (mbcsv_api.c:426)

--
==417== 16 bytes in 1 blocks are definitely lost in loss record 20 of 117
==417==    at 0x4C33B25: calloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==417==    by 0x4E430B1: immsv_evt_dec_inline_string (immsv_evt.c:238)
==417==    by 0x11724C: mbcsv_dec_async_update (immd_mbcsv.c:1110)
==417==    by 0x11724C: immd_mbcsv_decode_proc (immd_mbcsv.c:1402)
==417==    by 0x11724C: immd_mbcsv_callback (immd_mbcsv.c:411)
==417==    by 0x52B1335: ncs_mbscv_rcv_decode (mbcsv_act.c:409)
==417==    by 0x52B14D0: ncs_mbcsv_rcv_async_update (mbcsv_act.c:460)
==417==    by 0x52B829F: mbcsv_process_events (mbcsv_pr_evts.c:166)
==417==    by 0x52B83BA: mbcsv_hdl_dispatch_all (mbcsv_pr_evts.c:271)
==417==    by 0x52B2A19: mbcsv_process_dispatch_request (mbcsv_api.c:426) 


---

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

Reply via email to