- **status**: review --> fixed
---
** [tickets:#715] AMFD: errors reported in valgrind**
**Status:** fixed
**Created:** Mon Jan 13, 2014 06:44 AM UTC by Gary Lee
**Last Updated:** Thu Feb 06, 2014 12:52 PM UTC
**Owner:** Gary Lee
A number of errors are reported when running the opensaf-4.4.x branch under
valgrind.
Some heap variables are not freed:
saAmfCSIDependencies in csi.cc
saAmfSIActiveWeight, saAmfSIStandbyWeight, saAmfSvcDefActiveWeight,
saAmfSvcDefStandbyWeight in si.cc
Also, there are some mismatched free() / delete / delete [], including:
~~~~
==335== Mismatched free() / delete / delete []
==335== at 0x4C2A4BC: operator delete(void*) (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==335== by 0x47829B: d2n_msg_free(avsv_dnd_msg*) (util.cc:1684)
==335== by 0x42FFB7: avd_d2n_msg_dequeue(cl_cb_tag*) (ndmsg.cc:239)
==335== by 0x42DCAD: process_event(cl_cb_tag*, avd_evt_tag*) (main.cc:807)
==335== by 0x40750B: main (main.cc:698)
==335== Address 0x7e4ee20 is 0 bytes inside a block of size 544 alloc'd
==335== at 0x4C2AC27: operator new[](unsigned long) (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==335== by 0x47717A: avd_snd_pg_resp_msg(cl_cb_tag*, avd_avnd_tag*,
avd_csi_tag*, avsv_n2d_pg_track_act_msg_info_tag*) (util.cc:1041)
==335== by 0x43792F: avd_pg_trk_act_evh(cl_cb_tag*, avd_evt_tag*) (pg.cc:106)
==335== by 0x42DC85: process_event(cl_cb_tag*, avd_evt_tag*) (main.cc:775)
==335== by 0x40750B: main (main.cc:698)
==334== Mismatched free() / delete / delete []
==334== at 0x4C2A4BC: operator delete(void*) (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==334== by 0x4781F6: d2n_msg_free(avsv_dnd_msg*) (util.cc:1658)
==334== by 0x42FFB7: avd_d2n_msg_dequeue(cl_cb_tag*) (ndmsg.cc:239)
==334== by 0x407630: main (main.cc:748)
==334== Address 0x7e4a9e0 is 0 bytes inside a block of size 1,056 alloc'd
==334== at 0x4C2AC27: operator new[](unsigned long) (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==334== by 0x47903A: avd_snd_susi_msg(cl_cb_tag*, avd_su_tag*,
avd_su_si_rel_tag*, AVSV_SUSI_ACT, bool, avd_comp_csi_rel_tag*) (util.cc:714)
==334== by 0x4617A8: avd_new_assgn_susi(cl_cb_tag*, avd_su_tag*,
avd_si_tag*, SaAmfHAStateT, bool, avd_su_si_rel_tag**) (sgproc.cc:205)
==334== by 0x43BF44: avd_sg_2n_su_chose_asgn(cl_cb_tag*, avd_sg_tag*)
(sg_2n_fsm.cc:607)
==334== by 0x43C43A: avd_sg_2n_su_insvc_func(cl_cb_tag*, avd_su_tag*)
(sg_2n_fsm.cc:1463)
==334== by 0x4727A8: su_admin_op_cb(unsigned long long, unsigned long long,
SaNameT const*, unsigned long long, SaImmAdminOperationParamsT_2 const**)
(su.cc:987)
==334== by 0x42CA6B: admin_operation_cb(unsigned long long, unsigned long
long, SaNameT const*, unsigned long long, SaImmAdminOperationParamsT_2 const**)
(imm.cc:649)
==334== by 0x54E40C9: imma_process_callback_info (imma_proc.c:1901)
==334== by 0x54E6664: imma_hdl_callbk_dispatch_all (imma_proc.c:1688)
==334== by 0x54D91A0: saImmOiDispatch (imma_oi_api.c:543)
==334== by 0x4075FF: main (main.cc:724)
~~~~
---
Sent from sourceforge.net because [email protected] 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.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets