Public bug reported:

The following query crashes zorba
import module namespace ddl = 
"http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl";;
import module namespace dml = 
"http://www.zorba-xquery.com/modules/store/dynamic/collections/dml";;

ddl:create(xs:QName("ddl:test2"),(<center1/>,<oldlast/>));

dml:insert-nodes-first(xs:QName("ddl:test2"), (<c1/>,<c2/>));
dml:collection(xs:QName("ddl:test2"))/self::node()
  
zorba: /zorba/repository/pul-xdm/src/store/naive/node_items.cpp:345: long int 
zorba::simplestore::XmlNode::compareInSameTree(const 
zorba::simplestore::XmlNode*, const zorba::simplestore::XmlNode*) const: 
Assertion `n1->getTree() == n2->getTree()' faile

** Affects: zorba
     Importance: Critical
         Status: New

** Changed in: zorba
   Importance: Undecided => Critical

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

Title:
  Assertion failed with insert into in a collection

Status in Zorba - The XQuery Processor:
  New

Bug description:
  The following query crashes zorba
  import module namespace ddl = 
"http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl";;
  import module namespace dml = 
"http://www.zorba-xquery.com/modules/store/dynamic/collections/dml";;

  ddl:create(xs:QName("ddl:test2"),(<center1/>,<oldlast/>));

  dml:insert-nodes-first(xs:QName("ddl:test2"), (<c1/>,<c2/>));
  dml:collection(xs:QName("ddl:test2"))/self::node()
    
  zorba: /zorba/repository/pul-xdm/src/store/naive/node_items.cpp:345: long int 
zorba::simplestore::XmlNode::compareInSameTree(const 
zorba::simplestore::XmlNode*, const zorba::simplestore::XmlNode*) const: 
Assertion `n1->getTree() == n2->getTree()' faile

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/871629/+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