Assertion failed with document delete
Bug #859522 reported by
Federico Cavalieri
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Medium
|
Federico Cavalieri |
Bug Description
The following query causes an assertion failure.
import module namespace doc = "http://
doc:put("foo", document { <foo>bar</foo> });
(
doc:remove("foo"),
doc:remove("foo")
);
Changed in zorba: | |
status: | New → Fix Released |
Changed in zorba: | |
status: | Fix Released → Fix Committed |
milestone: | none → 2.1 |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
<?xml version="1.0" encoding="UTF-8"?> //zorba/ test/foo" : document already exists in store; raised at /zorba/ repository/ pulprocessing/ src/store/ naive/simple_ store.cpp: 1125 M1710-linux: /zorba/ build/pulproces sing$ bin/zorba -f -q /zorba/ test/test13. xq build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(+0xeda63b) [0x1d3b63b] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZN5zorba16as sertion_ failedEPKcS1_ i+0x22) [0x1d3b6fe] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZN5zorba11si mplestore17UpdD eleteDocument5a pplyEv+ 0xbf) [0x255e151] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZN5zorba11si mplestore9apply ListERSt6vector IPNS0_15UpdateP rimitiveESaIS3_ EE+0x57) [0x2542030] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZN5zorba11si mplestore7PULIm pl12applyUpdate sEb+0xf3) [0x2546f55] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZN5zorba13ap ply_updatesEPNS _10CompilerCBEP NS_15dynamic_ contextEPNS_ 14static_ contextEPNS_ 5store3PULERKNS _8QueryLocE+ 0x371) [0x221f574] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZNK5zorba13A pplyIterator8ne xtImplERNS_ 5store10ItemHan dleINS1_ 4ItemEEERNS_ 9PlanStateE+ 0x1d5) [0x221f075] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZNK5zorba7Ba tcherINS_ 13ApplyIterator EE11produceNext ERNS_5store10It emHandleINS3_ 4ItemEEERNS_ 9PlanStateE+ 0x9f) [0x22233f9] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZN5zorba12Pl anIterator11con sumeNextERNS_ 5store10ItemHan dleINS1_ 4ItemEEEPKS0_ RNS_9PlanStateE +0x79) [0x2206b77] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZNK5zorba18S equentialIterat or8nextImplERNS _5store10ItemHa ndleINS1_ 4ItemEEERNS_ 9PlanStateE+ 0xec) [0x23c3982] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZNK5zorba7Ba tcherINS_ 18SequentialIte ratorEE11produc eNextERNS_ 5store10ItemHan dleINS3_ 4ItemEEERNS_ 9PlanStateE+ 0x9f) [0x23d2b69] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZN5zorba12Pl anIterator11con sumeNextERNS_ 5store10ItemHan dleINS1_ 4ItemEEEPKS0_ RNS_9PlanStateE +0x79) [0x2206b77] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZN5zorba11Pl anWrapper4nextE RNS_5store10Ite mHandleINS1_ 4ItemEEE+ 0xa0) [0x220655e] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZN5zorba10se rializer9serial izeENS_ 8rchandleINS_ 5store8Iterator EEERSoPNS_ 19SAX2_ ContentHandlerE +0x295) [0x19e684f] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZN5zorba10se rializer9serial izeENS_ 8rchandleINS_ 5store8Iterator EEERSo+ 0x46) [0x19e6590] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZN5zorba10XQ ueryImpl9serial izeERSoRNS_ 8rchandleINS_ 11PlanWrapperEE EPK23Zorba_ SerializerOptio ns+0x9c) [0x198bce0] build/pulproces sing/src/ libzorba_ simplestore. so.2.0. 1(_ZN5zorba10XQ ueryImpl7execut eERSoPK23Zorba_ SerializerOptio ns+0xcd) [0x198b0eb] _Z17compileAndE xecutePN5zorba5 ZorbaERK18Zorba CMDPropertiesRN S_8SmartPtrINS_ 13StaticContext EEERKSsRSiRSoR1 0TimingInfo+ 0x4e4) [0x805a3e2] main+0xd41) [0x805b6cc] linux-gnu/ libc.so. 6(__libc_ star...
Zorba API error [zerr:ZAPI0020]: "file:/
battlezone@
<?xml version="1.0" encoding="UTF-8"?>
/zorba/
/zorba/
/zorba/
/zorba/
/zorba/
/zorba/
/zorba/
/zorba/
/zorba/
/zorba/
/zorba/
/zorba/
/zorba/
/zorba/
/zorba/
/zorba/
/zorba/
bin/zorba(
bin/zorba(
/lib/i386-