zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #04795
[Bug 928631] Re: wrong static context in built-in function in full-text module
When I run the test ft-module-tokenize-1.xq, it dumps core:
#0 0x000000011163b356 in zorba::store::ItemHandle<zorba::store::Item>::operator=<zorba::simplestore::TokenItem> (this=0x0, rhs=0x7fe7e868d290) at item_handle.h:127
#1 0x000000011162d13e in zorba::simplestore::BasicItemFactory::createToken (this=0x7fe7e8407060, result=@0x0, value=@0x7fff6f7eba08) at simple_item_factory.cpp:169
#2 0x00000001113a0c6e in zorba::Validator::realValidationValue (result=@0x7fff6f7ec2a8, sourceNode=@0x7fff6f7eba40, typeName=@0x7fff6f7eba08, typeManager=0x7fe7e8407060, validationMode=zorba::ParseConstants::val_strict, sctx=0x7fff6f7ebe90, loc=@0x7fff6f7eb9e0) at validate.cpp:141
#3 0x000000011139b6e2 in zorba::Validator::effectiveValidationValue (result=@0x7fff6f7ec2a8, sourceNode=@0x7fff6f7eba40, typeName=@0x7fff6f7eba08, typeManager=0x7fe7e8407060, validationMode=zorba::ParseConstants::val_strict, sctx=0x7fff6f7ebe90, loc=@0x7fff6f7eb9e0) at validate.cpp:77
#4 0x00000001103611a2 in zorba::static_context::validate (this=0x7fff6f7ebe90, rootElement=0x7fe7e8691450, validatedResult=@0x7fff6f7ec2a8, targetNamespace=@0x7fff6f7ebaf8, validationMode=zorba::StaticContextConsts::strict_validation) at static_context.cpp:1749
#5 0x0000000110361553 in zorba::static_context::validate (this=0x7fff6f7ebe90, rootElement=0x7fe7e8691450, validatedResult=@0x7fff6f7ec2a8, validationMode=zorba::StaticContextConsts::strict_validation) at static_context.cpp:1705
#6 0x0000000110ac3a80 in zorba::TokenizeIterator::nextImpl (this=0x7fe7e86ac730, result=@0x7fff6f7ec2a8, plan_state=@0x7fe7e8696590) at ft_module_impl.cpp:361
#7 0x00000001105098f4 in zorba::Batcher<zorba::TokenizeIterator>::produceNext (this=0x7fe7e86ac730, result=@0x7fff6f7ec2a8, planState=@0x7fe7e8696590) at plan_iterator.h:531
#8 0x0000000110e3c135 in zorba::PlanIterator::consumeNext (result=@0x7fff6f7ec2a8, iter=0x7fe7e86ac730, planState=@0x7fe7e8696590) at plan_iterator.cpp:124
#9 0x0000000110e3a7b1 in zorba::PlanWrapper::next (this=0x7fe7e868d190, result=@0x7fff6f7ec2a8) at plan_wrapper.cpp:149
#10 0x000000010fd1ad86 in zorba::serializer::serialize (this=0x7fff6f7ec638, aObject=@0x7fff6f7ec560, aOStream=@0x7fff71e75f70, aHandler=0x0) at serializer.cpp:2257
#11 0x000000010fd1b055 in zorba::serializer::serialize (this=0x7fff6f7ec638, aObject=@0x7fff6f7ec708, aOStream=@0x7fff71e75f70) at serializer.cpp:2215
#12 0x000000010fc4c82f in zorba::XQueryImpl::serialize (this=0x7fe7e86843b0, os=@0x7fff71e75f70, aWrapper=@0x7fff6f7ec7c8, opt=0x7fff6f7eca90) at xqueryimpl.cpp:1291
#13 0x000000010fc4dba3 in zorba::XQueryImpl::execute (this=0x7fe7e86843b0, os=@0x7fff71e75f70, opt=0x7fff6f7eca90) at xqueryimpl.cpp:1117
#14 0x000000010fbf48d4 in compileAndExecute (zorbaInstance=0x111f20840, properties=@0x7fff6f7ed990, staticContext=@0x7fff6f7ed6e8, qfilepath=@0x7fff6f7ed700, qfile=@0x7fe7e8683c40, outputStream=@0x7fff71e75f70, timing=@0x7fff6f7ed2d8) at zorbacmd.cpp:634
#15 0x000000010fbf898b in main (argc=7, argv=0x7fff6f7ee150) at zorbacmd.cpp:906
** Changed in: zorba
Status: Fix Committed => In Progress
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/928631
Title:
wrong static context in built-in function in full-text module
Status in Zorba - The XQuery Processor:
In Progress
Bug description:
The error isn't raised if the schema is actually imported in the module that
invokes the function which does the validation. This probably means that
the static context of the function is the static context resulting from compiling
the importing module (instead the static context of the full-text module itself).
Alternatively, the in-scope element declarations could also become part
of all the static contexts of the query. I think we have had this discussion
a couple of times and I keep forgetting what we decided.
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/928631/+subscriptions
References