FOTS: cast tests end in Seg Fault

Bug #1070722 reported by Sorin Marian Nasoi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Critical
Ghislain Fourny

Bug Description

"CastAsNamespaceSensitiveType-4", "CastAsNamespaceSensitiveType-5" test cases from "prod-CastExpr" end in Seg Fault:

Here are the actual tests that are run:
"CastAsNamespaceSensitiveType-4"

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'';

      declare function local:clarkname($q as xs:NOTATION) as xs:string {
        $q
      };
      local:clarkname(xs:untypedAtomic("xs:integer"))

    ');

xqxq:evaluate($queryID)

"CastAsNamespaceSensitiveType-5"

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'';

      declare function local:clarkname($q as xs:NOTATION) as xs:string {
        $q
      };
      local:clarkname(<tag>xs:integer</tag>)

    ');

xqxq:evaluate($queryID)

Related branches

tags: added: fots-seg-fault
removed: fots
Changed in zorba:
importance: Undecided → Critical
milestone: none → 2.8
Revision history for this message
Ghislain Fourny (gislenius) wrote :

It seems to be a typo in the casting code (confusion between type code and type itself in the ErrorInfo object).

Changed in zorba:
status: New → In Progress
Revision history for this message
Ghislain Fourny (gislenius) wrote :

I think that the error code returned after fixing this typo is not the correct one though. I raised a bug (1076407).

Revision history for this message
Ghislain Fourny (gislenius) wrote :
Changed in zorba:
status: In Progress → Fix Committed
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.