Assertion failed with simple content element with comments
Bug #857842 reported by
Federico Cavalieri
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Cezar Andrei |
Bug Description
The following query causes an assertion failure at line 3465 in node_items.cpp
import schema namespace s = "http://
let $hostInfo :=<xqdoc xmlns="http://
<control>
</control>
<module type="library">
</module>
</xqdoc>
return
validate { $hostInfo }
If i understand correctly the validator should construct only one text child for <date> with value "TSF4J5UJ"
Related branches
lp:~zorba-coders/zorba/bug857842-textWithComment
- Matthias Brantner: Approve
- Cezar Andrei: Approve
-
Diff: 682 lines (+280/-136)11 files modifiedChangeLog (+1/-0)
src/api/xmldatamanagerimpl.cpp (+6/-9)
src/compiler/parsetree/parsenode_print_xqdoc_visitor.cpp (+6/-4)
src/compiler/translator/translator.cpp (+2/-2)
src/runtime/strings/strings_impl.cpp (+3/-3)
src/types/root_typemanager.cpp (+7/-8)
src/types/schema/validate.cpp (+224/-104)
src/types/schema/validate.h (+20/-0)
src/util/http_util.cpp (+4/-3)
src/zorbamisc/ns_consts.h (+2/-0)
src/zorbaserialization/serialize_zorba_types.cpp (+5/-3)
visibility: | private → public |
Changed in zorba: | |
importance: | Undecided → High |
assignee: | nobody → Cezar Andrei (cezar-andrei) |
Changed in zorba: | |
milestone: | none → 2.1 |
Changed in zorba: | |
milestone: | 2.1 → 2.2 |
Changed in zorba: | |
milestone: | 2.2 → 2.5 |
Changed in zorba: | |
status: | New → In Progress |
Changed in zorba: | |
status: | In Progress → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
2005: Test command: /zorba/ build/markos/ test/rbkt/ testdriver "zorba/ misc/validate2. xq" validate2 www.xqdoc. org/1.0"; www.xqdoc. org/1.0"> ?processinginst ruction aaa?>TS4J<!-- -->5UJ</date> N/A</version> build/markos/ src/libzorba_ simplestore. so.2.0. 1(+0xe62a03) [0x141ea03] build/markos/ src/libzorba_ simplestore. so.2.0. 1(_ZN5zorba16as sertion_ failedEPKcS1_ i+0x22) [0x141eac6] build/markos/ src/libzorba_ simplestore. so.2.0. 1(_ZN5zorba11si mplestore8TextN odeC2EPNS0_ 12InternalNodeE RNS_5store10Ite mHandleINS4_ 4ItemEEEb+ 0x1d6) [0x1b9cf68] build/markos/ src/libzorba_ simplestore. so.2.0. 1(_ZN5zorba11si mplestore11Node Factory14create TextNodeEPNS0_ 12InternalNodeE RNS_5store10Ite mHandleINS4_ 4ItemEEEb+ 0x48) [0x1bb061e] build/markos/ src/libzorba_ simplestore. so.2.0. 1(_ZN5zorba11si mplestore16Basi cItemFactory14c reateTextNodeER NS_5store10Item HandleINS2_ 4ItemEEEPS4_ S6_+0x78) [0x1bf0d92] build/markos/ src/libzorba_ simplestore. so.2.0. 1(_ZN5zorba9Val idator15process ChildrenEPKNS_ 14static_ contextEPNS_ 11TypeManagerER NS_20EventSchem aValidatorEPNS_ 5store4ItemENS_ 8rchandleINS8_ 8IteratorEEERKN S_8QueryLocE+ 0x37e) [0x1adaa68] build/markos/ src/libzorba_ simplestore. so.2.0. 1(_ZN5zorba9Val idator14process ElementEPKNS_ 14static_ contextEPNS_ 11TypeManagerER NS_20EventSchem aValidatorEPNS_ 5store4ItemERKN S8_10ItemHandle IS9_EERKNS_ 8QueryLocE+ 0x4a6) [0x1ada018] build/markos/ src/libzorba_ simplestore. so.2.0. 1(_ZN5zorba9Val idator15process ChildrenEPKNS_ 14static_ contextEPNS_ 11TypeManagerER NS_20EventSchem aValidatorEPNS_ 5store4ItemENS_ 8rchandleINS8_ 8IteratorEEERKN S_8QueryLocE+ 0xa5) [0x1ada78f] build/markos/ src/libzorba_ simplestore. so.2.0. 1(_ZN5zorba9Val idator14process ElementEPKNS_ 14static_ contextEPNS_ 11TypeManagerER NS_20EventSchem aValidatorEPNS_ 5store4ItemERKN S8_10ItemHandle IS9_EERKNS_ 8QueryLocE+ 0x4a6) [0x1ada018] build/markos/ src/libzorba_ simplestore. so.2.0. 1(_ZN5zorba9Val idator15process ChildrenEPKNS_ 14static_ contextEPNS_ 11TypeManagerER NS_20EventSchem aValidatorEPNS_ 5store4ItemENS_ 8rchandleINS8_ 8IteratorEEERKN S_8QueryLocE+ 0xa5) [0x1ada78f] build/markos/ src/libzorba_ simplestore. so.2.0. 1(_ZN5zorba9Val idator14process ElementEPKNS_ 14static_ contextEPNS_ 11TypeManagerER NS_20EventSchem aValidatorEPNS_ 5store4ItemERKN S8_10ItemHandle IS9_EERKNS_ 8QueryLocE+ 0x4a6) [0x1ada018] build/markos/ src/libzorba_ simplestore. so.2.0. 1(_ZN5zorba9Val idator19realVal idationValueERN S_5store10ItemH andleINS1_ 4ItemEEERKS4_ S7_PNS_ 11TypeManagerEN S_14ParseConsta nts17validation _mode_tEPKNS_ 14static_ contextERKNS_ 8QueryLocE+ 0x7ea) [0x1ad98fc] build/markos/ src/libzorba_ simplestore. so.2.0. 1(_ZN5zorba9Val idator24effecti veValidationVal ueERNS_ ...
2005: Test timeout computed to be: 1500
2005: test zorba/misc/
2005: === Query: ===
2005:
2005: import schema namespace s = "http://
2005:
2005: let $hostInfo :=<xqdoc xmlns="http://
2005: <control>
2005: <date><
2005: <version>
2005: </control>
2005: <module type="library">
2005: <uri>DGQEb8Q</uri>
2005: </module>
2005: </xqdoc>
2005:
2005: return
2005: validate { $hostInfo }
2005:
2005: === end of Query ===
2005: /zorba/
2005: /zorba/
2005: /zorba/
2005: /zorba/
2005: /zorba/
2005: /zorba/
2005: /zorba/
2005: /zorba/
2005: /zorba/
2005: /zorba/
2005: /zorba/
2005: /zorba/
2005: /zorba/