FOTS: try-catch tests that SEG FAULT

Bug #1070706 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

The test cases "try-catch-function-call-3", "try-catch-function-call-4" from "prod-TryCatchExpr" test set end in Seg Fault.

  <test-case name="try-catch-function-call-3">
    <description>If a function call occurs within a try clause, errors raised by evaluating the corresponding function are caught by the try/catch expression.</description>
    <created by="Ghislain Fourny" on="2011-07-28"/>
    <environment ref="err"/>
    <test>try { function() { fn:error() } () } catch err:FOER0000 { 0 }</test>
    <result>
      <assert-eq>0</assert-eq>
    </result>
  </test-case>

  <test-case name="try-catch-function-call-4">
    <description>If a function call occurs within a try clause, errors raised by evaluating the corresponding function are caught by the try/catch expression.</description>
    <created by="Ghislain Fourny" on="2011-07-28"/>
    <environment ref="err"/>
    <test>try { function() { 1 div 0 } () } catch err:FOAR0001 { 0 }</test>
    <result>
      <assert-eq>0</assert-eq>
    </result>
  </test-case>

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 crashes because the function called is anonymous and the stack trace expects a function name.

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