zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #25242
Re: [Merge] lp:~zorba-coders/zorba/bug-942161 into lp:zorba
Review: Needs Information
The functionality looks great.
Is there a way to remove the following problem reported by valgrind?
valgrind --tool=memcheck --leak-check=full --show-reachable=yes ./bin/zorba -q '"üöä"' -z "encoding=ISO-8859-1" -z "method=text" > foo
==20323== Memcheck, a memory error detector
==20323== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==20323== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==20323== Command: ./bin/zorba -q "üöä" -z encoding=ISO-8859-1 -z method=text
==20323==
==20323==
==20323== HEAP SUMMARY:
==20323== in use at exit: 24 bytes in 1 blocks
==20323== total heap usage: 23,089 allocs, 23,088 frees, 10,513,203 bytes allocated
==20323==
==20323== 24 bytes in 1 blocks are still reachable in loss record 1 of 1
==20323== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==20323== by 0x6CB52D5: std::ios_base::register_callback(void (*)(std::ios_base::event, std::ios_base&, int), int) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
==20323== by 0x550118E: bool zorba::transcode::attach<char, std::char_traits<char> >(std::basic_ios<char, std::char_traits<char> >&, char const*) (transcode_stream.h:153)
==20323== by 0x54FF4BF: zorba::serializer::attach_transcoder(std::ostream&) (serializer.cpp:2622)
==20323== by 0x54FC72C: zorba::serializer::text_emitter::text_emitter(zorba::serializer*, std::ostream&) (serializer.cpp:2020)
==20323== by 0x54FF202: zorba::serializer::setup(std::ostream&, bool) (serializer.cpp:2593)
==20323== by 0x54FF5BF: zorba::serializer::serialize(zorba::rchandle<zorba::store::Iterator>, std::ostream&, zorba::SAX2_ContentHandler*, bool) (serializer.cpp:2652)
==20323== by 0x54FF50E: zorba::serializer::serialize(zorba::rchandle<zorba::store::Iterator>, std::ostream&, bool) (serializer.cpp:2634)
==20323== by 0x54994D3: zorba::XQueryImpl::serialize(std::ostream&, zorba::rchandle<zorba::PlanWrapper>&, Zorba_SerializerOptions const*) (xqueryimpl.cpp:1323)
==20323== by 0x5498747: zorba::XQueryImpl::execute(std::ostream&, Zorba_SerializerOptions const*) (xqueryimpl.cpp:1149)
==20323== by 0x4156AA: compileAndExecute(zorba::Zorba*, zorba::XmlDataManager*, ZorbaCMDProperties const&, zorba::SmartPtr<zorba::StaticContext>&, std::string const&, std::istream&, std::ostream&, TimingInfo&) (zorbacmd.cpp:871)
==20323== by 0x416D01: main (zorbacmd.cpp:1204)
--
https://code.launchpad.net/~zorba-coders/zorba/bug-942161/+merge/179969
Your team Zorba Coders is subscribed to branch lp:zorba.
References