Memory leaks in the ncml module

Description

Attached are runs of the beslistener is 'single' mode that show various leaks. These may not be important, but this pretty time-consuming to capture, so I'm saving it off.

After setting the bes to single mode (in bes.conf) I used

in the bin directory, to start the server and

to read from it. The attached file shows '-r 20' and the size of the leak will vary with -r N. I also made a valgrind suppressions file that captures the things that don't change as N changes. These might be leaks, but they are static in size.

Environment

None

Activity

Show:
Slav Korolev
January 30, 2019, 5:56 PM

1. edit /Users/vskorole/opendap/hyrax/build/etc/bes/bes.conf line 238:
BES.ProcessManagerMethod=single

2. cd /Users/vskorole/opendap/hyrax/build/bin

valgrind --leak-check=yes --max-stackframe=2144888 --gen-suppressions=yes --suppressions=../../bes/vg_osx_supp.txt --suppressions=../../bes/vg_bes_supp.txt ./beslistener -c ../etc/bes/bes.conf

mbp-vskorole:bin vskorole$ valgrind --leak-check=yes --max-stackframe=2144888 --gen-suppressions=yes --suppressions=../../bes/vg_osx_supp.txt --suppressions=../../bes/vg_bes_supp.txt ./beslistener -c ../etc/bes/bes.conf
==54950== Memcheck, a memory error detector
==54950== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==54950== Using Valgrind-3.15.0.GIT and LibVEX; rerun with -h for copyright info
==54950== Command: ./beslistener -c ../etc/bes/bes.conf
==54950==
==54950== FATAL: can't open suppressions file "../../bes/vg_osx_supp.txt"

3. ./besctl start

4. ./bescmdln -i /Users/vskorole/opendap/hyrax/bes/modules/ncml_module/tests/agg_with_mem_cache_test.bescmd -r 10

Ten times:
Dataset {
Float32 lat[lat = 3];
Float32 lon[lon = 4];
Grid {
Array:
Float64 P[time = 59][lat = 3][lon = 4];
Maps:
Int32 time[time = 59];
Float32 lat[lat = 3];
Float32 lon[lon = 4];
} P;
Grid {
Array:
Float64 T[time = 59][lat = 3][lon = 4];
Maps:
Int32 time[time = 59];
Float32 lat[lat = 3];
Float32 lon[lon = 4];
} T;
Int32 time[time = 59];
} aggExisting.ncml;

Slav Korolev
February 2, 2019, 12:07 AM
Edited

Item 2 above has been made like this:
mbp-vskorole:~ vskorole$ cd /Users/vskorole/opendap/hyrax/build/bin
mbp-vskorole:bin vskorole$ valgrind --leak-check=yes ./beslistener -c ../etc/bes/bes.conf

Output of this command is attached:


Output from command in item 4 has been the same.

James Gallagher
February 4, 2019, 5:46 PM

Looking at this output, there are no errors/leaks reported in our code. Or I am missing something... Let's discuss this at our Monday meeting.

Assignee

Slav Korolev

Reporter

James Gallagher

Labels

None

Fix versions

None

Time remaining

0m

Story Points

None

Epic Link

Priority

High
Configure