test converters/base64/binaryReadWrite.xq fails with plan serializer

Bug #924205 reported by Daniel Turcanu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Undecided
Matthias Brantner

Bug Description

The test "converters/base64/binaryReadWrite.xq" fails with plan serializer in debug mode. In release mode on Win32 it seems to work.
There is an assert in materialize_clause::clone() .
The stack for the assert is:

  zorba_simplestore.dll!zorba::assertion_failed(const char * condition, const char * file, int line) Line 66 + 0x4c bytes C++
> zorba_simplestore.dll!zorba::materialize_clause::clone(std::map<zorba::expr const *,zorba::rchandle<zorba::expr>,std::less<zorba::expr const *>,std::allocator<std::pair<zorba::expr const * const,zorba::rchandle<zorba::expr> > > > & subst) Line 806 + 0x1d bytes C++
  zorba_simplestore.dll!zorba::flwor_expr::clone(std::map<zorba::expr const *,zorba::rchandle<zorba::expr>,std::less<zorba::expr const *>,std::allocator<std::pair<zorba::expr const * const,zorba::rchandle<zorba::expr> > > > & subst) Line 1225 + 0x30 bytes C++
  zorba_simplestore.dll!zorba::InlineFunctions::rewritePost(zorba::expr * node, zorba::RewriterContext & rCtx) Line 1083 + 0x3a bytes C++
  zorba_simplestore.dll!zorba::PrePostRewriteRule::apply(zorba::RewriterContext & rCtx, zorba::expr * curExpr, bool & modified) Line 60 + 0x1e bytes C++
  zorba_simplestore.dll!zorba::PrePostRewriteRule::apply(zorba::RewriterContext & rCtx, zorba::expr * curExpr, bool & modified) Line 51 + 0x31 bytes C++
  zorba_simplestore.dll!zorba::PrePostRewriteRule::apply(zorba::RewriterContext & rCtx, zorba::expr * curExpr, bool & modified) Line 51 + 0x31 bytes C++
  zorba_simplestore.dll!zorba::PrePostRewriteRule::apply(zorba::RewriterContext & rCtx, zorba::expr * curExpr, bool & modified) Line 51 + 0x31 bytes C++
  zorba_simplestore.dll!zorba::PrePostRewriteRule::apply(zorba::RewriterContext & rCtx, zorba::expr * curExpr, bool & modified) Line 51 + 0x31 bytes C++
  zorba_simplestore.dll!zorba::PrePostRewriteRule::apply(zorba::RewriterContext & rCtx, zorba::expr * curExpr, bool & modified) Line 51 + 0x31 bytes C++
  zorba_simplestore.dll!zorba::RuleMajorDriver::rewrite(zorba::RewriterContext & rCtx) Line 61 + 0x55 bytes C++
  zorba_simplestore.dll!zorba::DefaultOptimizer::rewrite(zorba::RewriterContext & rCtx) Line 83 + 0xf bytes C++
  zorba_simplestore.dll!zorba::user_function::getPlan(zorba::CompilerCB * ccb, unsigned int & planStateSize) Line 388 + 0x4d bytes C++
  zorba_simplestore.dll!zorba::user_function::prepare_for_serialize(zorba::CompilerCB * compilerCB) Line 102 + 0x14 bytes C++
  zorba_simplestore.dll!zorba::CompilerCB::prepare_for_serialize() Line 182 C++
  zorba_simplestore.dll!zorba::XQueryImpl::serialize(zorba::serialization::Archiver & ar) Line 200 C++
  zorba_simplestore.dll!zorba::XQueryImpl::saveExecutionPlan(std::basic_ostream<char,std::char_traits<char> > & os, Zorba_binary_plan_format_t archive_format, Zorba_save_plan_options_t save_options) Line 922 C++

Related branches

Changed in zorba:
assignee: nobody → Markos Zaharioudakis (markos-za)
Changed in zorba:
assignee: Markos Zaharioudakis (markos-za) → Matthias Brantner (matthias-brantner)
milestone: none → 2.2
Changed in zorba:
status: New → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.