Hi elunlen,
Can you please give more clarification on this ticket as requested by Krishna.
I have ran valgrind on smf and discovered memory leak errors. However, the 
errors are not in the area suspected by elunlen. However, the absence of 
valgrind reported errors in the area indicated by elunlen is not the evidence 
that there is no possible memory leak.

Following are examples of valgrind reported memory leak
==335== 53 bytes in 1 blocks are definitely lost in loss record 1 of 2
==335==    at 0x4C2DB8F: malloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==335==    by 0x527ADAC: daemonize (daemon.c:295)
==335==    by 0x109817: main (smfnd_main.c:223)
==335== 
==335== LEAK SUMMARY:
==335==    definitely lost: 53 bytes in 1 blocks
==335==    indirectly lost: 0 bytes in 0 blocks
==335==      possibly lost: 0 bytes in 0 blocks
==335==    still reachable: 72,704 bytes in 1 blocks
==335==         suppressed: 0 bytes in 0 blocks
==335== Reachable blocks (those to which a pointer was found) are not shown.
==335== To see them, rerun with: --leak-check=full --show-leak-kinds=all

==335== 53 bytes in 1 blocks are definitely lost in loss record 1 of 2
==335==    at 0x4C2DB8F: malloc (in 
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==335==    by 0x64DADAC: daemonize (daemon.c:295)
==335==    by 0x13C74D: main (smfd_main.cc:463)

Other leaks will be updated to this ticket.
Best Regards,
Thanh


---

** [tickets:#2727] smf: Smfnd incorrect handling of client list. Possible 
memory leek**

**Status:** assigned
**Milestone:** future
**Created:** Mon Dec 04, 2017 11:37 AM UTC by elunlen
**Last Updated:** Mon Aug 26, 2019 04:18 AM UTC
**Owner:** Thanh Nguyen


>From TBD in smf node director smfnd_mds.c mds_svc_event()
Need to clean up the cb->cbk_list, otherwise there will be memory leak. For the 
time being we are storing only count of agents, not the adest of agents and 
hence it is not possible to clean up cbk_list.


---

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.
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to