FOTS: try-catch tests that SEG FAULT
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Critical
|
Ghislain Fourny |
Bug Description
The test cases "try-catch-
<test-case name="try-
<description>If a function call occurs within a try clause, errors raised by evaluating the corresponding function are caught by the try/catch expression.
<created by="Ghislain Fourny" on="2011-07-28"/>
<environment ref="err"/>
<test>try { function() { fn:error() } () } catch err:FOER0000 { 0 }</test>
<result>
<
</result>
</test-case>
<test-case name="try-
<description>If a function call occurs within a try clause, errors raised by evaluating the corresponding function are caught by the try/catch expression.
<created by="Ghislain Fourny" on="2011-07-28"/>
<environment ref="err"/>
<test>try { function() { 1 div 0 } () } catch err:FOAR0001 { 0 }</test>
<result>
<
</result>
</test-case>
Related branches
- Markos Zaharioudakis: Approve
- Sorin Marian Nasoi: Approve
-
Diff: 80 lines (+29/-2)5 files modifiedsrc/diagnostics/xquery_stack_trace.cpp (+17/-2)
test/rbkt/ExpQueryResults/zorba/HigherOrder/hof-040.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/HigherOrder/hof-041.xml.res (+1/-0)
test/rbkt/Queries/zorba/HigherOrder/hof-040.xq (+5/-0)
test/rbkt/Queries/zorba/HigherOrder/hof-041.xq (+5/-0)
tags: |
added: fots-seg-fault removed: fots |
Changed in zorba: | |
importance: | Undecided → Critical |
milestone: | none → 2.8 |
Changed in zorba: | |
status: | In Progress → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
It crashes because the function called is anonymous and the stack trace expects a function name.