Public bug reported:

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++

** Affects: zorba
     Importance: Undecided
     Assignee: Markos Zaharioudakis (markos-za)
         Status: New

** Changed in: zorba
     Assignee: (unassigned) => Markos Zaharioudakis (markos-za)

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

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

Status in Zorba - The XQuery Processor:
  New

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++

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

-- 
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