edamame:bin jimg$ 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 ==47807== Memcheck, a memory error detector ==47807== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==47807== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info ==47807== Command: ./beslistener -c ../etc/bes/bes.conf ==47807== --47807-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option --47807-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 2 times) --47807-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 4 times) --47807-- UNKNOWN mach_msg unhandled MACH_SEND_TRAILER option (repeated 8 times) ==47807== ==47807== HEAP SUMMARY: ==47807== in use at exit: 1,450,041 bytes in 7,584 blocks ==47807== total heap usage: 139,784 allocs, 132,200 frees, 39,913,982 bytes allocated ==47807== ==47807== 312 bytes in 39 blocks are definitely lost in loss record 5,960 of 6,233 ==47807== at 0x100035EA1: malloc (vg_replace_malloc.c:303) ==47807== by 0x10076E7DD: operator new(unsigned long) (in /usr/lib/libc++.1.dylib) ==47807== by 0x1131C791E: agg_util::DDSLoader::makeResponseForType(agg_util::DDSLoader::ResponseType) (DDSLoader.cc:347) ==47807== by 0x11335D68D: ncml_module::NetcdfElement::createResponseObject(agg_util::DDSLoader::ResponseType) (NetcdfElement.cc:273) ==47807== by 0x113303995: ncml_module::NCMLParser::addChildDatasetToCurrentDataset(ncml_module::NetcdfElement*) (NCMLParser.cc:534) ==47807== by 0x113301959: ncml_module::NCMLParser::pushCurrentDataset(ncml_module::NetcdfElement*) (NCMLParser.cc:461) ==47807== by 0x113351A96: ncml_module::NetcdfElement::handleBegin() (NetcdfElement.cc:152) ==47807== by 0x1132F1BF1: ncml_module::NCMLParser::processStartNCMLElement(std::__1::basic_string, std::__1::allocator > const&, ncml_module::XMLAttributeMap const&) (NCMLParser.cc:1162) ==47807== by 0x1132F8C21: ncml_module::NCMLParser::onStartElementWithNamespace(std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, std::__1::basic_string, std::__1::allocator > const&, ncml_module::XMLAttributeMap const&, ncml_module::XMLNamespaceMap const&) (NCMLParser.cc:294) ==47807== by 0x11339B64E: ncmlSax2StartElementNs(void*, unsigned char const*, unsigned char const*, unsigned char const*, int, unsigned char const**, int, int, unsigned char const**) (SaxParserWrapper.cc:224) ==47807== by 0x100351154: xmlParseStartTag2 (in /usr/lib/libxml2.2.dylib) ==47807== by 0x10034FB1F: xmlParseElement (in /usr/lib/libxml2.2.dylib) ==47807== ==47807== ==47807== 800 bytes in 20 blocks are possibly lost in loss record 6,074 of 6,233 ==47807== at 0x100036877: calloc (vg_replace_malloc.c:715) ==47807== by 0x100CB5464: map_images_nolock (in /usr/lib/libobjc.A.dylib) ==47807== by 0x100CC7C6C: batchFinalizeOnTwoThreads(_malloc_zone_t*, void (*)(auto_zone_cursor*, void (*)(void*, void*), void*), auto_zone_cursor*, unsigned long) (in /usr/lib/libobjc.A.dylib) ==47807== by 0x7FFF5FC04829: dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) (in /usr/lib/dyld) ==47807== by 0x7FFF5FC0E7EA: ImageLoader::link(ImageLoader::LinkContext const&, bool, bool, bool, ImageLoader::RPathChain const&) (in /usr/lib/dyld) ==47807== by 0x7FFF5FC04A11: dyld::link(ImageLoader*, bool, bool, ImageLoader::RPathChain const&) (in /usr/lib/dyld) ==47807== by 0x7FFF5FC0C29E: dlopen (in /usr/lib/dyld) ==47807== by 0x10091279B: dlopen (in /usr/lib/system/libdyld.dylib) ==47807== by 0x10017DD93: BESPlugin::get_lib() (BESPlugin.h:134) ==47807== by 0x10017B4A6: BESPlugin::instantiate() (BESPlugin.h:175) ==47807== by 0x1001765D7: BESPluginFactory::get(std::__1::basic_string, std::__1::allocator > const&) (BESPluginFactory.h:155) ==47807== by 0x100174834: BESModuleApp::loadModules() (BESModuleApp.cc:174) ==47807== ==47807== 5,120 bytes in 20 blocks are definitely lost in loss record 6,215 of 6,233 ==47807== at 0x100035EA1: malloc (vg_replace_malloc.c:303) ==47807== by 0x10035A45A: xmlInitParserCtxt (in /usr/lib/libxml2.2.dylib) ==47807== by 0x10035AE34: xmlNewParserCtxt (in /usr/lib/libxml2.2.dylib) ==47807== by 0x1003566D9: xmlCreateURLParserCtxt (in /usr/lib/libxml2.2.dylib) ==47807== by 0x113394A74: ncml_module::SaxParserWrapper::setupParser(std::__1::basic_string, std::__1::allocator > const&) (SaxParserWrapper.cc:481) ==47807== by 0x1133947CC: ncml_module::SaxParserWrapper::parse(std::__1::basic_string, std::__1::allocator > const&) (SaxParserWrapper.cc:329) ==47807== by 0x1132EFF13: ncml_module::NCMLParser::parseInto(std::__1::basic_string, std::__1::allocator > const&, agg_util::DDSLoader::ResponseType, BESDapResponse*) (NCMLParser.cc:185) ==47807== by 0x113329F62: ncml_module::NCMLRequestHandler::ncml_build_dds(BESDataHandlerInterface&) (NCMLRequestHandler.cc:257) ==47807== by 0x10012A7F8: BESRequestHandlerList::execute_current(BESDataHandlerInterface&) (BESRequestHandlerList.cc:267) ==47807== by 0x10012A173: BESRequestHandlerList::execute_each(BESDataHandlerInterface&) (BESRequestHandlerList.cc:166) ==47807== by 0x102793CBC: BESDDSResponseHandler::execute(BESDataHandlerInterface&) (BESDDSResponseHandler.cc:94) ==47807== by 0x10009ABE3: BESInterface::execute_data_request_plan() (BESInterface.cc:560) ==47807== ==47807== LEAK SUMMARY: ==47807== definitely lost: 9,992 bytes in 80 blocks ==47807== indirectly lost: 513,608 bytes in 5,396 blocks ==47807== possibly lost: 800 bytes in 20 blocks ==47807== still reachable: 623,612 bytes in 1,759 blocks ==47807== suppressed: 302,029 bytes in 329 blocks ==47807== Reachable blocks (those to which a pointer was found) are not shown. ==47807== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==47807== ==47807== For counts of detected and suppressed errors, rerun with: -v ==47807== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 15604 from 119) edamame:bin jimg$ fg -bash: fg: current: no such job edamame:bin jimg$ emacs [1]+ Stopped emacs edamame:bin jimg$