FOTS: GroupBy test results in Seg Fault

Bug #947079 reported by Sorin Marian Nasoi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Invalid
High
Sorin Marian Nasoi

Bug Description

The following test from the
prod/GroupByClause.xml
results in a Segmentation Fault :

- "group-005"
xquery version '3.0';
declare namespace o = 'http://www.zorba-xquery.com/options/features';
declare option o:enable 'hof';
  for $x in //employee
  let $key := $x/hours
  group by $key
  return <group hours="{$key}" avHours="{avg($x/hours)}"/>

Tags: fots
Changed in zorba:
assignee: nobody → Markos Zaharioudakis (markos-za)
milestone: none → 2.5
Revision history for this message
Markos Zaharioudakis (markos-za) wrote :

The query does not segfault for me. It returns an error saying that the context item is not defined, which is correct because the query has this expr: //employee

Does the FOTS driver set the context item somehow? If yes, than I need the xml which is assigned to the context item.

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

Hi Markos,
works-mod.xml is the context item for this query.

Running the query in Zorba and assigning the context item results in the correct error case:
type error [err:XPTY0004]: singleton expected

However, if the same exact results in a SEG FAULT when run with the Zorba FOTS driver.
I am reassigning the bug to me for further investigation.

Changed in zorba:
assignee: Markos Zaharioudakis (markos-za) → Sorin Marian Nasoi (sorin.marian.nasoi)
Changed in zorba:
milestone: 2.5 → 2.7
Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

Checked in r10934 and the problem was fixed: marking the bug as INVALID.

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