I looks like this bug has been fixed already. Not sure in what release.

** Changed in: zorba
       Status: New => Fix Committed

You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.

  Serialization of Tumbling Window For fails

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:

  The serialization of a tumbling window for is broken. The assertion at
  src/zorbaserialization/class_serializer.h:399 doesn't pass. The
  problem can be reproduced by extending the plan_serialization unit
  test with the following diff:

  === modified file 'test/unit/guestbook.xq'
  --- test/unit/guestbook.xq    2011-08-12 16:07:57 +0000
  +++ test/unit/guestbook.xq    2011-10-12 13:06:44 +0000
  @@ -37,6 +37,14 @@
         return  1
  +declare function guestbook:window() {
  +  let $x := 1 to 1000
  +  for tumbling window $w in $x  
  +      start at $s when fn:true()
  +      end at $e when $e - $s eq 51
  +  return <window>{ $w }</window> 
   declare %ann:sequential function guestbook:init() {

  === modified file 'test/unit/guestbook_main.xq'
  --- test/unit/guestbook_main.xq       2011-08-05 02:21:55 +0000
  +++ test/unit/guestbook_main.xq       2011-10-12 12:58:13 +0000
  @@ -18,4 +18,4 @@
   import module namespace refl = 
  -guestbook:init(), refl:eval("guestbook:list()")
  +guestbook:init(), refl:eval("guestbook:list()"), 

  the test result is:

  ctest -R plan_seri -V
  UpdateCTestConfiguration  from :/home/dagraf/zorba/build/DartConfiguration.tcl
  Parse Config file:/home/dagraf/zorba/build/DartConfiguration.tcl
   Add coverage exclude regular expressions.
   Add coverage exclude: mapm.*
  UpdateCTestConfiguration  from :/home/dagraf/zorba/build/DartConfiguration.tcl
  Parse Config file:/home/dagraf/zorba/build/DartConfiguration.tcl
  Test project /home/dagraf/zorba/build
  Constructing a list of tests
  Done constructing a list of tests
  Checking test dependency graph...
  test 2041
      Start 2041: test/unit/plan_serializer

  2041: Test command: /home/dagraf/zorba/build/test/unit/UnitTests 
  2041: Test timeout computed to be: 1500
  2041: <//home/dagraf/zorba/build/test/unit/guestbook.xq>:27,25: Zorba static 
warning [zwarn:ZWST0003]: "guestbook:list": function declared sequential, but 
has non-sequential body; raised at 
  2041: UnitTests: /home/dagraf/zorba/sandbox/src/zorbatypes/rchandle.h:111: 
virtual void 
Assertion `strstr(typeid(*this).name(), "SimpleRCObject")' failed.
  1/1 Test #2041: test/unit/plan_serializer ........***Exception: SegFault  
0.08 sec

  0% tests passed, 1 tests failed out of 1

  Total Test time (real) =   0.17 sec

  The following tests FAILED:
        2041 - test/unit/plan_serializer (SEGFAULT)
  Errors while running CTest

To manage notifications about this bug go to:

Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to