← Back to team overview

zorba-coders team mailing list archive

[Bug 1002313] Re: Plan Serializer test fails

 

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

** Changed in: zorba
     Assignee: Matthias Brantner (matthias-brantner) => Markos Zaharioudakis (markos-za)

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

Title:
  Plan Serializer test fails

Status in Zorba - The XQuery Processor:
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1002313/+subscriptions


References