dataflow_annotations.cpp: assertion failed

Bug #980526 reported by Matthias Brantner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Markos Zaharioudakis

Bug Description

Compiling the following query and library module trigger an assertion:

Zorba error [zerr:ZXQP0002]: "varExpr->get_udf() == udfCaller->theFo->get_func()": assertion failed; raised at /home/mbrantner/zorba/sandbox/src/compiler/rewriter/tools/dataflow_annotations.cpp:841

response.xq

xquery version "3.0";

module namespace resp = "http://www.28msec.com/modules/response";

declare namespace ann = "http://www.zorba-xquery.com/annotations";

declare %fn:private variable $resp:serialization-params
  as element(serialization-parameters) := resp:serializer-defaults-xml();

declare function resp:serializer-defaults-xml()
as element(serialization-parameters)
{
  <serialization-parameters/>
};

declare %ann:sequential function resp:set-serialization-parameters(
  $params as element(serialization-parameters)
) as empty-sequence()
{
  $resp:serialization-params := $params;
};

declare %ann:sequential function resp:set-redirect(
  $url as xs:string)
  as empty-sequence()
{
  1
};

main.xq

import module namespace refl = "http://www.zorba-xquery.com/modules/reflection";
import module namespace res = "http://www.28msec.com/modules/response" at "response.xq";

declare namespace ann = "http://www.zorba-xquery.com/annotations";

declare %ann:sequential function local:save()
{
  variable $tmp := refl:eval-s("blub");
  res:set-redirect("/wiki");
};

local:save()

Revision history for this message
Markos Zaharioudakis (markos-za) wrote :

I hope the fix works for the larger Sausalito programs as well.

Changed in zorba:
status: New → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
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.