Assertion failure in archiver

Bug #1215963 reported by Federico Cavalieri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Committed
Critical
Matthias Brantner

Bug Description

Calling the plan serializer or compiler on a query which imports a module which imports the archive module causes an assertion failure in zorbaserialization/archiver.cpp:961

How to reproduce:
zorba --compile-plan q1.xq or zorba -s q1.xq

Where q1.xq is

import module namespace x = "http://x.com" at "module.xq";
1

and module.xq is

module namespace x ="http://x.com";
import module namespace archive = "http://zorba.io/modules/archive";

Revision history for this message
Federico Cavalieri (fcavalieri) wrote :

(gdb) bt
#0 zorba::serialization::Archiver::check_allowed_delays (this=0x7fffffffd1d0, parent_field=0x751e00)
    at /home/vagrant/zorba/zorba/src/zorbaserialization/archiver.cpp:961
#1 0x00007ffff734ab28 in zorba::serialization::Archiver::check_allowed_delays (this=0x7fffffffd1d0, parent_field=0x751b80)
    at /home/vagrant/zorba/zorba/src/zorbaserialization/archiver.cpp:985
#2 0x00007ffff734ab28 in zorba::serialization::Archiver::check_allowed_delays (this=0x7fffffffd1d0, parent_field=0x772750)
    at /home/vagrant/zorba/zorba/src/zorbaserialization/archiver.cpp:985
#3 0x00007ffff734ab28 in zorba::serialization::Archiver::check_allowed_delays (this=0x7fffffffd1d0, parent_field=0x758fc0)
    at /home/vagrant/zorba/zorba/src/zorbaserialization/archiver.cpp:985
#4 0x00007ffff734ab28 in zorba::serialization::Archiver::check_allowed_delays (this=0x7fffffffd1d0, parent_field=0x73a8a0)
    at /home/vagrant/zorba/zorba/src/zorbaserialization/archiver.cpp:985
#5 0x00007ffff734a31e in zorba::serialization::Archiver::prepare_serialize_out (this=0x7fffffffd1d0)
    at /home/vagrant/zorba/zorba/src/zorbaserialization/archiver.cpp:692
#6 0x00007ffff734fee2 in zorba::serialization::BinArchiver::serialize_out (this=0x7fffffffd1d0)
    at /home/vagrant/zorba/zorba/src/zorbaserialization/bin_archiver.cpp:163
#7 0x00007ffff6a48087 in zorba::XQueryImpl::saveExecutionPlan (this=0x746550, os=...) at /home/vagrant/zorba/zorba/src/api/xqueryimpl.cpp:951
#8 0x0000000000415679 in compileAndExecute (zorbaInstance=0x7ffff7dd1280, xmlDataMgr=0x6fbd20, properties=..., staticContext=..., qfilepath=...,
    qfile=..., outputStream=..., timing=...) at /home/vagrant/zorba/zorba/bin/zorbacmd.cpp:867
#9 0x0000000000416d02 in main (argc=3, argv=0x7fffffffe388) at /home/vagrant/zorba/zorba/bin/zorbacmd.cpp:1204

Chris Hillery (ceejatec)
Changed in zorba:
milestone: none → 3.0
Revision history for this message
Chris Hillery (ceejatec) wrote :

Markos is implementing a change which will bypass or remove this buggy code.

Changed in zorba:
status: New → Confirmed
status: Confirmed → In Progress
Revision history for this message
Chris Hillery (ceejatec) wrote :

Markos will merge his fix; assigning this bug to Matthias to verify the fix.

Changed in zorba:
assignee: Markos Zaharioudakis (markos-za) → Matthias Brantner (matthias-brantner)
Revision history for this message
Chris Hillery (ceejatec) wrote :

Matthias said this is fixed.

Changed in zorba:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.