← Back to team overview

zorba-coders team mailing list archive

[Bug 944797] Re: Memory leak of tokenizers in simple store

 

** Changed in: zorba
       Status: New => Fix Committed

** Branch linked: lp:~paul-lucas/zorba/bug-944797

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/944797

Title:
  Memory leak of tokenizers in simple store

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  <b>MLK</b> ==3689== 2,032 (48 direct, 1,984 indirect) bytes in 1 blocks are definitely lost in loss record 13 of 13
  ==3689==    at 0x4C27CC1: operator new(unsigned long) (vg_replace_malloc.c:261)
  ==3689==    by 0x5A1081A: zorba::ICU_TokenizerProvider::getTokenizer(zorba::locale::iso639_1::type, zorba::Tokenizer::Numbers&amp;) const (icu_tokenizer.cpp:412)
  ==3689==    by 0x5F11001: zorba::simplestore::XmlNodeTokenizerCallback::push_lang(zorba::locale::iso639_1::type) (node_items.cpp:4666)
  ==3689==    by 0x5F11E7A: zorba::simplestore::XmlNodeTokenizerCallback::XmlNodeTokenizerCallback(zorba::TokenizerProvider const&amp;, zorba::Tokenizer::Numbers&amp;, zorba::locale::iso639_1::type, zorba::FTTokenStore&amp;) (node_items.cpp:4622)
  ==3689==    by 0x5F11FD0: zorba::simplestore::XmlNode::getTokens(zorba::TokenizerProvider const&amp;, zorba::Tokenizer::Numbers&amp;, zorba::locale::iso639_1::type, bool) const (node_items.cpp:4842)
  ==3689==    by 0x5A0C9A9: zorba::FTContainsIterator::nextImpl(zorba::store::ItemHandle&lt;zorba::store::Item&gt;&amp;, zorba::PlanState&amp;) const (full_text_impl.cpp:90)
  ==3689==    by 0x5846103: zorba::PlanIterator::consumeNext(zorba::store::ItemHandle&lt;zorba::store::Item&gt;&amp;, zorba::PlanIterator const*, zorba::PlanState&amp;) (plan_iterator.cpp:124)
  ==3689==    by 0x5844F0F: zorba::PlanWrapper::next(zorba::store::ItemHandle&lt;zorba::store::Item&gt;&amp;) (plan_wrapper.cpp:149)
  ==3689==    by 0x50C4D2E: zorba::serializer::serialize(zorba::rchandle&lt;zorba::store::Iterator&gt;, std::ostream&amp;, zorba::SAX2_ContentHandler*) (serializer.cpp:2303)
  ==3689==    by 0x50C5314: zorba::serializer::serialize(zorba::rchandle&lt;zorba::store::Iterator&gt;, std::ostream&amp;) (serializer.cpp:2261)
  ==3689==    by 0x507362A: zorba::XQueryImpl::serialize(std::ostream&amp;, zorba::rchandle&lt;zorba::PlanWrapper&gt;&amp;, Zorba_SerializerOptions const*) (xqueryimpl.cpp:1291)
  ==3689==    by 0x5073799: zorba::XQueryImpl::execute(std::ostream&amp;, Zorba_SerializerOptions const*) (xqueryimpl.cpp:1117)
  ==3689==    by 0x408183: main (testdriver.cpp:435)

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/944797/+subscriptions


References