segmentation fault when using fetch and parse in one flwor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Markos Zaharioudakis |
Bug Description
Zorba destroys input stream produced by fetch:content too early if optimization is on.
example query:
import module namespace fetch = "http://
import module namespace parse-xml = "http://
import schema namespace opt = "http://
let $xmlcontent := fetch:content(
let $contents := parse-xml:parse(
return $contents
file:xml:
any random xml file
executions:
$ ~/zorba/
<?xml version="1.0" encoding="UTF-8"?>
<a/>
$ ~/zorba/
<?xml version="1.0" encoding="UTF-8"?>
Segmentation fault (core dumped)
Changed in zorba: | |
importance: | Undecided → High |
assignee: | Matthias Brantner (matthias-brantner) → Markos Zaharioudakis (markos-za) |
Changed in zorba: | |
milestone: | none → 2.9 |
tags: | added: string-streaming |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
It works fine for me. Given that the bug was opened a year ago, it has probably been fixed already.