Plan Serializer test fails due to HOF

Bug #1002313 reported by William Candillon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Critical
Nicolae Brinza

Bug Description

The following queries:
declare namespace an = "http://www.zorba-xquery.com/annotations";
declare namespace o = "http://www.zorba-xquery.com/options/features";
declare option o:enable "hof";

declare %private variable $handlers := ();

declare %an:sequential function local:add($handler)
{
  $handlers := ($handlers, $handler);
};

declare function local:emit()
{
  for $h in $handlers
  return $h()
};
declare %an:sequential function local:test()
{
  local:add(local:handle#1);
  local:emit()
};

declare function local:handle($message)
{
  trace($message, "message")
};

local:test()

Fails with the plan serializer (segfault)

Tags: hof

Related branches

Revision history for this message
William Candillon (wcandillon) wrote :

Assign to you for dispatching.

Changed in zorba:
milestone: none → 2.5
assignee: nobody → Matthias Brantner (matthias-brantner)
Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

The problem doesn't seem to be related to plan serialization. Instead, it's a problem with higher-order functions which are still have experimental status.

Changed in zorba:
milestone: 2.5 → none
tags: added: hof
Changed in zorba:
importance: Undecided → High
assignee: Matthias Brantner (matthias-brantner) → Markos Zaharioudakis (markos-za)
Changed in zorba:
milestone: none → 2.7
Changed in zorba:
assignee: Markos Zaharioudakis (markos-za) → Nicolae Brinza (nbrinza)
Chris Hillery (ceejatec)
summary: - Plan Serializer test fails
+ Plan Serializer test fails due to HOF
Chris Hillery (ceejatec)
Changed in zorba:
milestone: 2.7 → none
Changed in zorba:
importance: High → Critical
milestone: none → 2.8
Changed in zorba:
milestone: 2.8 → 2.9
Revision history for this message
Nicolae Brinza (nbrinza) wrote :

Fixed in the trunk. Added test as hof-101.xq

Changed in zorba:
status: New → Fix Committed
Chris Hillery (ceejatec)
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.