FOTS: HOF tests Seg Fault

Bug #947051 reported by Sorin Marian Nasoi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Critical
Nicolae Brinza

Bug Description

The following HOF tests in misc/HigherOrderFunctions.xml from FOTS result in a Segmentation Fault:
- "xqhof7"
xquery version '3.0';
declare namespace o = 'http://www.zorba-xquery.com/options/features';
declare option o:enable 'hof';
concat#3("one", "two")

- "xqhof13"
xquery version '3.0';
declare namespace o = 'http://www.zorba-xquery.com/options/features';
declare option o:enable 'hof';
let $f := function($a) { node-name(.), $a }
return <a/>/$f(5)

- "xqhof14"
xquery version '3.0';
declare namespace o = 'http://www.zorba-xquery.com/options/features';
declare option o:enable 'hof';
let $f := name#0
return <a/>/$f()

- test set "prod-InstanceofExp", test case "instanceof131"

Here is the actual test run:

import module namespace xqxq = 'http://www.zorba-xquery.com/modules/xqxq';
variable $queryID := xqxq:prepare-main-module('xquery version ''3.0'';

declare namespace op = ''http://www.zorba-xquery.com/options/features'';
declare namespace f = ''http://www.zorba-xquery.com/features'';
declare option op:enable ''f:hof'';

         name#0 instance of function(item()) as xs:string
       ');

xqxq:evaluate($queryID)

the importance is set to HIGH because Zorba Seg. Faults.

Related branches

Changed in zorba:
milestone: none → 2.8
importance: High → Critical
Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

The following test results in a Seg Fault also:

test set "prod-InstanceofExp", test case "instanceof131"

Here is the actual test run:

import module namespace xqxq = 'http://www.zorba-xquery.com/modules/xqxq';
variable $queryID := xqxq:prepare-main-module('xquery version ''3.0'';

declare namespace op = ''http://www.zorba-xquery.com/options/features'';
declare namespace f = ''http://www.zorba-xquery.com/features'';
declare option op:enable ''f:hof'';

         name#0 instance of function(item()) as xs:string
       ');

xqxq:evaluate($queryID)

description: updated
Chris Hillery (ceejatec)
tags: added: test
tags: added: fots-seg-fault
removed: fots test
Changed in zorba:
milestone: 2.8 → 2.9
Changed in zorba:
status: New → Fix Committed
Chris Hillery (ceejatec)
tags: removed: fots-seg-fault
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.