Start testing: Dec 23 02:50 PST
----------------------------------------------------------
3755/4573 Testing: zorba_sqlite_module/test6.xq
3755/4573 Test: zorba_sqlite_module/test6.xq
Command: "/home/ceej/utils/bin/valgrind" "--tool=memcheck" "--leak-check=full" 
"--track-fds=yes" "--num-callers=50" "--track-origins=yes" 
"--keep-unloaded-syms=yes" "/home/ceej/zo/src/build/test/rbkt/testdriver" 
"--rbkt-src" "/home/ceej/zo/all_modules/sqlite-module/test" "--module-path" 
"/home/ceej/zo/src/build/URI_PATH/:" "test6.xq"
Directory: /home/ceej/zo/src/build/zorba_modules/zorba_sqlite_module
"zorba_sqlite_module/test6.xq" start time: Dec 23 02:50 PST
Output:
----------------------------------------------------------
==616== Memcheck, a memory error detector
==616== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==616== Using Valgrind-3.8.0.SVN and LibVEX; rerun with -h for copyright info
==616== Command: /home/ceej/zo/src/build/test/rbkt/testdriver --rbkt-src 
/home/ceej/zo/all_modules/sqlite-module/test --module-path 
/home/ceej/zo/src/build/URI_PATH/: test6.xq
==616== 
test test6
=== Query: ===
import module namespace s = "http://www.zorba-xquery.com/modules/sqlite";;

let $db := s:connect("small2.db")

return {
  variable $comm := s:commit($db);
  variable $roll := s:rollback($db);
  variable $dis := s:disconnect($db);
    
  ( $comm = $roll, $comm = $db )
}
=== end of Query ===
=== Result: ===
true true
=== end of result ===
testdriver: success (non-canonical result # 1 matches)
testdriver: test runtime was 5305441us
testdriver: success
==616== Invalid read of size 4
==616==    at 0xBB82554: ??? (in /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6)
==616==    by 0xBBA34FE: sqlite3_close (in 
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6)
==616==    by 0xB933E61: zorba::sqlite::ConnMap::destroy() 
(sqlite_module.cpp:196)
==616==    by 0x60158AC: zorba::dynamic_context::~dynamic_context() 
(dynamic_context.cpp:171)
==616==    by 0x5C0EDF0: zorba::XQueryImpl::close() (xqueryimpl.cpp:1491)
==616==    by 0x5C06939: zorba::XQueryImpl::~XQueryImpl() (xqueryimpl.cpp:177)
==616==    by 0x5C06897: zorba::XQueryImpl::~XQueryImpl() (xqueryimpl.cpp:176)
==616==    by 0x5C032AD: zorba::SmartObject::free() (smart_ptr.cpp:29)
==616==    by 0x4231D6: zorba::SmartObject::removeReference() (smart_ptr.h:44)
==616==    by 0x42441F: zorba::SmartPtr<zorba::XQuery>::~SmartPtr() 
(smart_ptr.h:82)
==616==    by 0x422BA4: zorba::SmartPtr<zorba::XQuery>::~SmartPtr() 
(smart_ptr.h:80)
==616==    by 0x41FEC9: main (testdriver.cpp:599)
==616==  Address 0xb6aca90 is 80 bytes inside a block of size 880 free'd
==616==    at 0x4C2A654: free (vg_replace_malloc.c:427)
==616==    by 0xBB6868F: sqlite3_free (in 
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6)
==616==    by 0xBBA381A: sqlite3_close (in 
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6)
==616==    by 0xB9394AF: 
zorba::sqlite::DisconnectFunction::evaluate(std::vector<zorba::ItemSequence*, 
std::allocator<zorba::ItemSequence*> > const&, zorba::StaticContext const*, 
zorba::DynamicContext const*) const (sqlite_module.cpp:876)
==616==    by 0x668FA9F: 
zorba::ExtFunctionCallIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (fncall_iterator.cpp:788)
==616==    by 0x669250A: 
zorba::Batcher<zorba::ExtFunctionCallIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==616==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==616==    by 0x66BF854: 
zorba::TreatIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanState&) const (sequencetypes.cpp:566)
==616==    by 0x66C39EA: 
zorba::Batcher<zorba::TreatIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==616==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==616==    by 0x66DAC56: 
zorba::CtxVarDeclareIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (var_iterators.cpp:109)
==616==    by 0x66E154A: 
zorba::Batcher<zorba::CtxVarDeclareIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==616==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==616==    by 0x67CDBA9: 
zorba::SequentialIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (scripting.cpp:96)
==616==    by 0x67CFA7A: 
zorba::Batcher<zorba::SequentialIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==616==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==616==    by 0x666BD19: 
zorba::flwor::FLWORIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (flwor_iterator.cpp:1044)
==616==    by 0x667584A: 
zorba::Batcher<zorba::flwor::FLWORIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==616==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==616==    by 0x6608346: 
zorba::PlanWrapper::next(zorba::store::ItemHandle<zorba::store::Item>&) 
(plan_wrapper.cpp:151)
==616==    by 0x5C96388: 
zorba::serializer::serialize(zorba::rchandle<zorba::store::Iterator>, 
std::ostream&, zorba::SAX2_ContentHandler*, bool) (serializer.cpp:2678)
==616==    by 0x5C95F7D: 
zorba::serializer::serialize(zorba::rchandle<zorba::store::Iterator>, 
std::ostream&, bool) (serializer.cpp:2627)
==616==    by 0x5C0D674: zorba::XQueryImpl::serialize(std::ostream&, 
zorba::rchandle<zorba::PlanWrapper>&, Zorba_SerializerOptions const*) 
(xqueryimpl.cpp:1336)
==616==    by 0x5C0D241: zorba::XQueryImpl::execute(std::ostream&, 
Zorba_SerializerOptions const*) (xqueryimpl.cpp:1162)
==616==    by 0x41EDFB: main (testdriver.cpp:454)
==616== 
==616== 






Start testing: Dec 23 02:53 PST
----------------------------------------------------------
3758/4573 Testing: zorba_sqlite_module/test9.xq
3758/4573 Test: zorba_sqlite_module/test9.xq
Command: "/home/ceej/utils/bin/valgrind" "--tool=memcheck" "--leak-check=full" 
"--track-fds=yes" "--num-callers=50" "--track-origins=yes" 
"--keep-unloaded-syms=yes" "/home/ceej/zo/src/build/test/rbkt/testdriver" 
"--rbkt-src" "/home/ceej/zo/all_modules/sqlite-module/test" "--module-path" 
"/home/ceej/zo/src/build/URI_PATH/:" "test9.xq"
Directory: /home/ceej/zo/src/build/zorba_modules/zorba_sqlite_module
"zorba_sqlite_module/test9.xq" start time: Dec 23 02:53 PST
Output:
----------------------------------------------------------
==655== Memcheck, a memory error detector
==655== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==655== Using Valgrind-3.8.0.SVN and LibVEX; rerun with -h for copyright info
==655== Command: /home/ceej/zo/src/build/test/rbkt/testdriver --rbkt-src 
/home/ceej/zo/all_modules/sqlite-module/test --module-path 
/home/ceej/zo/src/build/URI_PATH/: test9.xq
==655== 
test test9
=== Query: ===
import module namespace s =
  "http://www.zorba-xquery.com/modules/sqlite";;

let $xml := 
<root>
  <food><name>carrot</name><calories>80</calories></food>
  <food><name>tomato</name><calories>45</calories></food>
</root>
let $db := s:connect("")
let $inst := s:execute-update($db, "CREATE TABLE smalltable (id INTEGER primary 
key asc, name TEXT not null, calories TEXT)")
let $prep-stmt := s:prepare-statement($db, "INSERT INTO smalltable (name, 
calories) VALUES (?, ?)")

for $e in $xml//food
let $name := $e//name
let $calories := $e//calories
return {
  s:set-string($prep-stmt, 1, $name);
  s:set-string($prep-stmt, 2, $calories);
  s:execute-update-prepared($prep-stmt)
}
=== end of Query ===
==655== Invalid read of size 2
==655==    at 0x4C2CD20: memcpy@@GLIBC_2.14 (mc_replace_strmem.c:838)
==655==    by 0xBBB1EF6: ??? (in /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6)
==655==    by 0xBBB5450: sqlite3_step (in 
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6)
==655==    by 0xB936831: zorba::sqlite::JSONItemSequence::JSONIterator::open() 
(sqlite_module.cpp:640)
==655==    by 0xB93D6FF: 
zorba::sqlite::ExecuteUpdatePreparedFunction::evaluate(std::vector<zorba::ItemSequence*,
 std::allocator<zorba::ItemSequence*> > const&, zorba::StaticContext const*, 
zorba::DynamicContext const*) const (sqlite_module.cpp:1276)
==655==    by 0x668FA9F: 
zorba::ExtFunctionCallIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (fncall_iterator.cpp:788)
==655==    by 0x669250A: 
zorba::Batcher<zorba::ExtFunctionCallIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x66BF854: 
zorba::TreatIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanState&) const (sequencetypes.cpp:566)
==655==    by 0x66C39EA: 
zorba::Batcher<zorba::TreatIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x67CDBA9: 
zorba::SequentialIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (scripting.cpp:96)
==655==    by 0x67CFA7A: 
zorba::Batcher<zorba::SequentialIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x666C6F2: 
zorba::flwor::FLWORIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (flwor_iterator.cpp:1172)
==655==    by 0x667584A: 
zorba::Batcher<zorba::flwor::FLWORIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x6608346: 
zorba::PlanWrapper::next(zorba::store::ItemHandle<zorba::store::Item>&) 
(plan_wrapper.cpp:151)
==655==    by 0x5C96388: 
zorba::serializer::serialize(zorba::rchandle<zorba::store::Iterator>, 
std::ostream&, zorba::SAX2_ContentHandler*, bool) (serializer.cpp:2678)
==655==    by 0x5C95F7D: 
zorba::serializer::serialize(zorba::rchandle<zorba::store::Iterator>, 
std::ostream&, bool) (serializer.cpp:2627)
==655==    by 0x5C0D674: zorba::XQueryImpl::serialize(std::ostream&, 
zorba::rchandle<zorba::PlanWrapper>&, Zorba_SerializerOptions const*) 
(xqueryimpl.cpp:1336)
==655==    by 0x5C0D241: zorba::XQueryImpl::execute(std::ostream&, 
Zorba_SerializerOptions const*) (xqueryimpl.cpp:1162)
==655==    by 0x41EDFB: main (testdriver.cpp:454)

==655==  Address 0xb703dfc is 28 bytes inside a block of size 31 free'd
==655==    at 0x4C2A366: operator delete(void*) (vg_replace_malloc.c:457)
==655==    by 0x9FC5C12: std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::~basic_string() (in 
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
==655==    by 0xB93C857: 
zorba::sqlite::SetStringFunction::evaluate(std::vector<zorba::ItemSequence*, 
std::allocator<zorba::ItemSequence*> > const&, zorba::StaticContext const*, 
zorba::DynamicContext const*) const (sqlite_module.cpp:1178)
==655==    by 0x668FA9F: 
zorba::ExtFunctionCallIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (fncall_iterator.cpp:788)
==655==    by 0x669250A: 
zorba::Batcher<zorba::ExtFunctionCallIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x66BF854: 
zorba::TreatIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanState&) const (sequencetypes.cpp:566)
==655==    by 0x66C39EA: 
zorba::Batcher<zorba::TreatIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x66245C0: 
zorba::ApplyIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanState&) const (apply_updates.cpp:105)
==655==    by 0x662609A: 
zorba::Batcher<zorba::ApplyIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x67CDBA9: 
zorba::SequentialIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (scripting.cpp:96)
==655==    by 0x67CFA7A: 
zorba::Batcher<zorba::SequentialIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x666C6F2: 
zorba::flwor::FLWORIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (flwor_iterator.cpp:1172)
==655==    by 0x667584A: 
zorba::Batcher<zorba::flwor::FLWORIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x6608346: 
zorba::PlanWrapper::next(zorba::store::ItemHandle<zorba::store::Item>&) 
(plan_wrapper.cpp:151)
==655==    by 0x5C96388: 
zorba::serializer::serialize(zorba::rchandle<zorba::store::Iterator>, 
std::ostream&, zorba::SAX2_ContentHandler*, bool) (serializer.cpp:2678)
==655==    by 0x5C95F7D: 
zorba::serializer::serialize(zorba::rchandle<zorba::store::Iterator>, 
std::ostream&, bool) (serializer.cpp:2627)
==655==    by 0x5C0D674: zorba::XQueryImpl::serialize(std::ostream&, 
zorba::rchandle<zorba::PlanWrapper>&, Zorba_SerializerOptions const*) 
(xqueryimpl.cpp:1336)
==655==    by 0x5C0D241: zorba::XQueryImpl::execute(std::ostream&, 
Zorba_SerializerOptions const*) (xqueryimpl.cpp:1162)
==655==    by 0x41EDFB: main (testdriver.cpp:454)
==655== 
==655== Invalid read of size 2
==655==    at 0x4C2CD34: memcpy@@GLIBC_2.14 (mc_replace_strmem.c:838)
==655==    by 0xBBB1EF6: ??? (in /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6)
==655==    by 0xBBB5450: sqlite3_step (in 
/usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6)
==655==    by 0xB936831: zorba::sqlite::JSONItemSequence::JSONIterator::open() 
(sqlite_module.cpp:640)
==655==    by 0xB93D6FF: 
zorba::sqlite::ExecuteUpdatePreparedFunction::evaluate(std::vector<zorba::ItemSequence*,
 std::allocator<zorba::ItemSequence*> > const&, zorba::StaticContext const*, 
zorba::DynamicContext const*) const (sqlite_module.cpp:1276)
==655==    by 0x668FA9F: 
zorba::ExtFunctionCallIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (fncall_iterator.cpp:788)
==655==    by 0x669250A: 
zorba::Batcher<zorba::ExtFunctionCallIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x66BF854: 
zorba::TreatIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanState&) const (sequencetypes.cpp:566)
==655==    by 0x66C39EA: 
zorba::Batcher<zorba::TreatIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x67CDBA9: 
zorba::SequentialIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (scripting.cpp:96)
==655==    by 0x67CFA7A: 
zorba::Batcher<zorba::SequentialIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x666C6F2: 
zorba::flwor::FLWORIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (flwor_iterator.cpp:1172)
==655==    by 0x667584A: 
zorba::Batcher<zorba::flwor::FLWORIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x6608346: 
zorba::PlanWrapper::next(zorba::store::ItemHandle<zorba::store::Item>&) 
(plan_wrapper.cpp:151)
==655==    by 0x5C96388: 
zorba::serializer::serialize(zorba::rchandle<zorba::store::Iterator>, 
std::ostream&, zorba::SAX2_ContentHandler*, bool) (serializer.cpp:2678)
==655==    by 0x5C95F7D: 
zorba::serializer::serialize(zorba::rchandle<zorba::store::Iterator>, 
std::ostream&, bool) (serializer.cpp:2627)
==655==    by 0x5C0D674: zorba::XQueryImpl::serialize(std::ostream&, 
zorba::rchandle<zorba::PlanWrapper>&, Zorba_SerializerOptions const*) 
(xqueryimpl.cpp:1336)
==655==    by 0x5C0D241: zorba::XQueryImpl::execute(std::ostream&, 
Zorba_SerializerOptions const*) (xqueryimpl.cpp:1162)
==655==    by 0x41EDFB: main (testdriver.cpp:454)

==655==  Address 0xb703df8 is 24 bytes inside a block of size 31 free'd
==655==    at 0x4C2A366: operator delete(void*) (vg_replace_malloc.c:457)
==655==    by 0x9FC5C12: std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::~basic_string() (in 
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
==655==    by 0xB93C857: 
zorba::sqlite::SetStringFunction::evaluate(std::vector<zorba::ItemSequence*, 
std::allocator<zorba::ItemSequence*> > const&, zorba::StaticContext const*, 
zorba::DynamicContext const*) const (sqlite_module.cpp:1178)
==655==    by 0x668FA9F: 
zorba::ExtFunctionCallIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (fncall_iterator.cpp:788)
==655==    by 0x669250A: 
zorba::Batcher<zorba::ExtFunctionCallIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x66BF854: 
zorba::TreatIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanState&) const (sequencetypes.cpp:566)
==655==    by 0x66C39EA: 
zorba::Batcher<zorba::TreatIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x66245C0: 
zorba::ApplyIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanState&) const (apply_updates.cpp:105)
==655==    by 0x662609A: 
zorba::Batcher<zorba::ApplyIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x67CDBA9: 
zorba::SequentialIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (scripting.cpp:96)
==655==    by 0x67CFA7A: 
zorba::Batcher<zorba::SequentialIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x666C6F2: 
zorba::flwor::FLWORIterator::nextImpl(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (flwor_iterator.cpp:1172)
==655==    by 0x667584A: 
zorba::Batcher<zorba::flwor::FLWORIterator>::produceNext(zorba::store::ItemHandle<zorba::store::Item>&,
 zorba::PlanState&) const (plan_iterator.h:535)
==655==    by 0x6608AE6: 
zorba::PlanIterator::consumeNext(zorba::store::ItemHandle<zorba::store::Item>&, 
zorba::PlanIterator const*, zorba::PlanState&) (plan_iterator.cpp:109)
==655==    by 0x6608346: 
zorba::PlanWrapper::next(zorba::store::ItemHandle<zorba::store::Item>&) 
(plan_wrapper.cpp:151)
==655==    by 0x5C96388: 
zorba::serializer::serialize(zorba::rchandle<zorba::store::Iterator>, 
std::ostream&, zorba::SAX2_ContentHandler*, bool) (serializer.cpp:2678)
==655==    by 0x5C95F7D: 
zorba::serializer::serialize(zorba::rchandle<zorba::store::Iterator>, 
std::ostream&, bool) (serializer.cpp:2627)
==655==    by 0x5C0D674: zorba::XQueryImpl::serialize(std::ostream&, 
zorba::rchandle<zorba::PlanWrapper>&, Zorba_SerializerOptions const*) 
(xqueryimpl.cpp:1336)
==655==    by 0x5C0D241: zorba::XQueryImpl::execute(std::ostream&, 
Zorba_SerializerOptions const*) (xqueryimpl.cpp:1162)
==655==    by 0x41EDFB: main (testdriver.cpp:454)
==655== 

-- 
https://code.launchpad.net/~zorba-coders/zorba/zorba-for-sqlite/+merge/139108
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to