Hi Shu Wang,
                I have couple of questions.

1.      Is application calling saNtfNotificationFree() in the callback 
SaNtfNotificationCallbackT for freeing the delivered the notification. Refer 
Section 3.18.2.3 SaNtfNotificationCallbackT.
2.      For every allocated API saNtf<*>NotificationAllocate(), is application 
calling free api?

I run ntfsv tests at tests/ntfsv/ntftest using valgrind, but didn't get any 
memory leak.
I run as below:
export NTFDTOOL="/usr/bin/valgrind --leak-check=full 
--log-file=/tmp/ntfd.valgrind --trace-children=yes"
$NTFDTOOL  ./tests/ntfsv/ntftest

Please run this command and let me know.

Thanks
-Nagu

> -----Original Message-----
> From: Shu Wang [mailto:[email protected]]
> Sent: 20 August 2014 23:34
> To: [email protected]
> Cc: Lisa Ann Lentz-Liddell
> Subject: [users] Memory leak in libSaNtf.so.0.1.2?
> 
> Hi,
> We have a process that we have seen memory grows significantly in
> libSaNtf.so.0.1.2.  Is there any memory leak in libSaNtf.so.0.1.2?
> Here is the  valgrind output:
> 
> --------------------------------------------------------------------------------
>   n        time(i)         total(B)   useful-heap(B) extra-heap(B)    
> stacks(B)
> --------------------------------------------------------------------------------
> 54  9,847,694,871      271,852,368      231,268,546    40,583,822            0
> 85.07% (231,268,546B) (heap allocation functions) malloc/new/new[], --alloc-
> fns, etc.
> ->21.14% (57,481,884B) 0x382421246F: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> ->21.14% (57,481,884B) 0x3824212453: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> ->15.74% (42,777,216B) 0x382420AB28: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> ->07.87% (21,388,608B) 0x382420A87C: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> ->06.68% (18,158,037B) 0x3824212649: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> 
> --------------------------------------------------------------------------------
>   n        time(i)         total(B)   useful-heap(B) extra-heap(B)    
> stacks(B)
> --------------------------------------------------------------------------------
> 57 10,155,385,504      280,142,152      238,265,670    41,876,482            0
> 85.05% (238,265,670B) (heap allocation functions) malloc/new/new[], --alloc-
> fns, etc.
> ->21.18% (59,322,456B) 0x3824212453: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> ->21.18% (59,322,456B) 0x382421246F: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> ->15.76% (44,146,944B) 0x382420AB28: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> ->07.88% (22,073,472B) 0x382420A87C: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> ->06.69% (18,739,458B) 0x3824212649: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> 
> here is the detail from massif output:
> --------------------------------------------------------------------------------
>   n        time(i)         total(B)   useful-heap(B) extra-heap(B)    
> stacks(B)
> --------------------------------------------------------------------------------
> 57 10,155,385,504      280,142,152      238,265,670    41,876,482            0
> 85.05% (238,265,670B) (heap allocation functions) malloc/new/new[], --alloc-
> fns, etc.
> ->21.18% (59,322,456B) 0x3824212453: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> | ->21.18% (59,322,456B) 0x382421012A: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> |   ->21.18% (59,322,456B) 0x38242106CD: ??? (in
> /usr/lib64/libSaNtf.so.0.1.2)
> |     ->21.18% (59,322,456B) 0x382420AB6B: ??? (in
> /usr/lib64/libSaNtf.so.0.1.2)
> |       ->21.18% (59,322,456B) 0x382420A632: ??? (in
> /usr/lib64/libSaNtf.so.0.1.2)
> |         ->21.18% (59,322,456B) 0x3822A3C058: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |           ->21.18% (59,322,456B) 0x3822A3D5B0: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |             ->21.18% (59,322,456B) 0x3822A3DB21: mds_mcm_ll_data_rcv (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |               ->21.18% (59,322,456B) 0x3822A36BF2:
> mdtm_process_recv_message_common (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |                 ->21.18% (59,322,456B) 0x3822A36DEA: mdtm_process_recv_data
> (in /usr/lib64/libopensaf_core.so.0.2.0)
> |                   ->21.18% (59,322,456B) 0x3822A4F49F: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |                     ->21.18% (59,322,456B) 0x343880673B: start_thread (in
> /lib64/libpthread-2.5.so)
> |                       ->21.18% (59,322,456B) 0x3437CD44BB: clone (in 
> /lib64/libc-
> 2.5.so)
> |
> ->21.18% (59,322,456B) 0x382421246F: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> | ->21.18% (59,322,456B) 0x382421012A: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> |   ->21.18% (59,322,456B) 0x38242106CD: ??? (in
> /usr/lib64/libSaNtf.so.0.1.2)
> |     ->21.18% (59,322,456B) 0x382420AB6B: ??? (in
> /usr/lib64/libSaNtf.so.0.1.2)
> |       ->21.18% (59,322,456B) 0x382420A632: ??? (in
> /usr/lib64/libSaNtf.so.0.1.2)
> |         ->21.18% (59,322,456B) 0x3822A3C058: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |           ->21.18% (59,322,456B) 0x3822A3D5B0: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |             ->21.18% (59,322,456B) 0x3822A3DB21: mds_mcm_ll_data_rcv (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |               ->21.18% (59,322,456B) 0x3822A36BF2:
> mdtm_process_recv_message_common (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |                 ->21.18% (59,322,456B) 0x3822A36DEA: mdtm_process_recv_data
> (in /usr/lib64/libopensaf_core.so.0.2.0)
> |                   ->21.18% (59,322,456B) 0x3822A4F49F: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |                     ->21.18% (59,322,456B) 0x343880673B: start_thread (in
> /lib64/libpthread-2.5.so)
> |                       ->21.18% (59,322,456B) 0x3437CD44BB: clone (in 
> /lib64/libc-
> 2.5.so)
> |
> ->15.76% (44,146,944B) 0x382420AB28: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> | ->15.76% (44,146,944B) 0x382420A632: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> |   ->15.76% (44,146,944B) 0x3822A3C058: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |     ->15.76% (44,146,944B) 0x3822A3D5B0: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |       ->15.76% (44,146,944B) 0x3822A3DB21: mds_mcm_ll_data_rcv (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |         ->15.76% (44,146,944B) 0x3822A36BF2:
> mdtm_process_recv_message_common (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |           ->15.76% (44,146,944B) 0x3822A36DEA: mdtm_process_recv_data (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |             ->15.76% (44,146,944B) 0x3822A4F49F: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |               ->15.76% (44,146,944B) 0x343880673B: start_thread (in
> /lib64/libpthread-2.5.so)
> |                 ->15.76% (44,146,944B) 0x3437CD44BB: clone (in 
> /lib64/libc-2.5.so)
> |
> ->07.88% (22,073,472B) 0x382420A87C: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> | ->07.88% (22,073,472B) 0x382420A632: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> |   ->07.88% (22,073,472B) 0x3822A3C058: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |     ->07.88% (22,073,472B) 0x3822A3D5B0: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |     | ->07.88% (22,073,472B) 0x3822A3DB21: mds_mcm_ll_data_rcv (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |     |   ->07.88% (22,073,472B) 0x3822A36BF2:
> mdtm_process_recv_message_common (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |     |     ->07.88% (22,073,472B) 0x3822A36DEA: mdtm_process_recv_data (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |     |       ->07.88% (22,073,472B) 0x3822A4F49F: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |     |         ->07.88% (22,073,472B) 0x343880673B: start_thread (in
> /lib64/libpthread-2.5.so)
> |     |           ->07.88% (22,073,472B) 0x3437CD44BB: clone (in 
> /lib64/libc-2.5.so)
> |     |
> |     ->00.00% (0B) in 1+ places, all below ms_print's threshold (01.00%)
> |
> ->06.69% (18,739,458B) 0x3824212649: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> | ->06.69% (18,739,458B) 0x382421012A: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> |   ->06.69% (18,739,458B) 0x38242106CD: ??? (in
> /usr/lib64/libSaNtf.so.0.1.2)
> |     ->06.69% (18,739,458B) 0x382420AB6B: ??? (in
> /usr/lib64/libSaNtf.so.0.1.2)
> |       ->06.69% (18,739,458B) 0x382420A632: ??? (in
> /usr/lib64/libSaNtf.so.0.1.2)
> |         ->06.69% (18,739,458B) 0x3822A3C058: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |           ->06.69% (18,739,458B) 0x3822A3D5B0: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |             ->06.69% (18,739,458B) 0x3822A3DB21: mds_mcm_ll_data_rcv (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |               ->06.69% (18,739,458B) 0x3822A36BF2:
> mdtm_process_recv_message_common (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |                 ->06.69% (18,739,458B) 0x3822A36DEA: mdtm_process_recv_data
> (in /usr/lib64/libopensaf_core.so.0.2.0)
> |                   ->06.69% (18,739,458B) 0x3822A4F49F: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |                     ->06.69% (18,739,458B) 0x343880673B: start_thread (in
> /lib64/libpthread-2.5.so)
> |                       ->06.69% (18,739,458B) 0x3437CD44BB: clone (in 
> /lib64/libc-
> 2.5.so)
> |
> ->06.65% (18,640,897B) in 512 places, all below massif's threshold (01.00%)
> |
> ->03.54% (9,925,398B) 0x3824210AC9: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> | ->03.54% (9,925,398B) 0x382420AB6B: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> |   ->03.54% (9,925,398B) 0x382420A632: ??? (in /usr/lib64/libSaNtf.so.0.1.2)
> |     ->03.54% (9,925,398B) 0x3822A3C058: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |       ->03.54% (9,925,398B) 0x3822A3D5B0: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |         ->03.54% (9,925,398B) 0x3822A3DB21: mds_mcm_ll_data_rcv (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |           ->03.54% (9,925,398B) 0x3822A36BF2:
> mdtm_process_recv_message_common (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |             ->03.54% (9,925,398B) 0x3822A36DEA: mdtm_process_recv_data (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |               ->03.54% (9,925,398B) 0x3822A4F49F: ??? (in
> /usr/lib64/libopensaf_core.so.0.2.0)
> |                 ->03.54% (9,925,398B) 0x343880673B: start_thread (in
> /lib64/libpthread-2.5.so)
> |                   ->03.54% (9,925,398B) 0x3437CD44BB: clone (in 
> /lib64/libc-2.5.so)
> |
> 
> The following memory is stable:
> ->02.18% (6,094,589B) 0x93488A6: GUmallocStandard (in
> /raid0/rtcc/local/HA_ROOT/distribution/RB-
> 6.1.5.104.rc16/RB/lib/libGnvPFU.so)
>   ->01.74% (4,870,500B) 0x8AECC50: GDBallocateBulkStructure (in
> /raid0/rtcc/local/HA_ROOT/distribution/RB-
> 6.1.5.104.rc16/RB/lib/libGnvGDB.so)
>   | ->01.68% (4,710,000B) 0x7BA0F2C: DREPloadCostCodeList (in
> /raid0/rtcc/local/HA_ROOT/distribution/RB-
> 6.1.5.104.rc16/RB/lib/libGnvDREP.so)
>   | | ->01.68% (4,710,000B) 0x7B96F59: DREPloadRateCatMap (in
> /raid0/rtcc/local/HA_ROOT/distribution/RB-
> 6.1.5.104.rc16/RB/lib/libGnvDREP.so)
>   | |   ->01.68% (4,710,000B) 0x7B92120: DREPloadCatalogues (in
> /raid0/rtcc/local/HA_ROOT/distribution/RB-
> 6.1.5.104.rc16/RB/lib/libGnvDREP.so)
>   | |     ->01.68% (4,710,000B) 0x7B93157:
> DREPloadDataAndRegisterRepository (in
> /raid0/rtcc/local/HA_ROOT/distribution/RB-
> 6.1.5.104.rc16/RB/lib/libGnvDREP.so)
>   | |       ->01.68% (4,710,000B) 0x41202A: BPMworkMain (in
> /raid0/rtcc/local/HA_ROOT/distribution/RB-6.1.5.104.rc16/RB/bin/BPM)
>   | |         ->01.68% (4,710,000B) 0x4C8E8F4: TMPIinternalMain (in
> /raid0/rtcc/local/HA_ROOT/distribution/RB-
> 6.1.5.104.rc16/RB/lib/libGnvTMPI.so)
>   | |           ->01.68% (4,710,000B) 0x411BFF: TMPImain (in
> /raid0/rtcc/local/HA_ROOT/distribution/RB-6.1.5.104.rc16/RB/bin/BPM)
>   | |             ->01.68% (4,710,000B) 0x3437C1D992: (below main) (in 
> /lib64/libc-
> 2.5.so)
>   | |
>   | ->00.06% (160,500B) in 1+ places, all below ms_print's threshold (01.00%)
>   |
>   ->00.44% (1,224,089B) in 1+ places, all below ms_print's threshold (01.00%)
> 
> Thank you!
> 
> Shu Wang | Senior Analyst | +1(407)708-5117 or x3917|
> www.NetCracker.com
> Proven Partner to Communications Service Providers
> 
> 
> 
> 
> ________________________________
> The information transmitted herein is intended only for the person or entity 
> to
> which it is addressed and may contain confidential, proprietary and/or
> privileged material. Any review, retransmission, dissemination or other use 
> of,
> or taking of any action in reliance upon, this information by persons or 
> entities
> other than the intended recipient is prohibited. If you received this in 
> error,
> please contact the sender and delete the material from any computer.
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Opensaf-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensaf-users

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Opensaf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-users

Reply via email to