FileAPI does not like seekable streamable strings

Bug #866969 reported by Gabriel Petrovay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Medium
Matthias Brantner

Bug Description

I have disabled make_xqdoc test since it fails:

2098: <zorba/modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq>:116,9: Zorba error [zerr:XQP0012]: FxCharHeap I/O error; thrown at zorba\src\util\file.cpp:543 =================================================
2098: xqdoc2html:clear-folder#2 ( http://www.zorba-xquery.com/modules/xqdoc2xhtml/ )
2098: zorba/modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq at line 240 column 7
2098: =================================================
2098: xqdoc2html:copy-xhtml-requisites#3 ( http://www.zorba-xquery.com/modules/xqdoc2xhtml/ )
2098: zorba\doc\zorba\xqdoc\src\xqdoc-main.xq at line 9 column 1

Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :

This is caused by the seekable streamable strings.

What happens if:
file:read-text("myfile"); (: opens the file stream :)
file:delete("myfile"); (: fails because the file stream is not closed :)

Revision history for this message
Gabriel Petrovay (gabipetrovay) wrote :

I have enabled back make_xqdoc test and disabled on Windows only:

test/rbkt/zorba/file/createWriteReadDeleteSeries

Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

This is a problem related to streamable strings and scripting. Obviously a resource is not released when the corresponding resource is fully-consued. Just calling reset in the SequentialIterator doesn't solve the problem. Posting until Zorba 2.1

Changed in zorba:
milestone: none → 2.7
Changed in zorba:
milestone: 2.7 → 3.0
tags: removed: core-runtime v2.1
Chris Hillery (ceejatec)
Changed in zorba:
milestone: 3.0 → none
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.