crash in Streamable*Item with file module
Bug #996084 reported by
Dennis Knochenwefel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Chris Hillery |
Bug Description
I was trying to
1. read a data file
2. get the md5 of the file content
3. return both the md5 and content in one XML node:
<file>
Executing the complete example (see attachment) with any data.txt file leads to a crash. It seems that the streamreleaser in ~StreamableBase
Related branches
lp:~zorba-coders/zorba/bug-996084-reuse-stream
- Chris Hillery: Approve
- Dennis Knochenwefel: Approve
- William Candillon: Approve
- Matthias Brantner: Approve
-
Diff: 435 lines (+198/-22)18 files modifiedChangeLog (+2/-0)
modules/com/zorba-xquery/www/modules/converters/base64.xq (+21/-1)
src/functions/pregenerated/func_base64.cpp (+13/-0)
src/functions/pregenerated/function_enum.h (+1/-0)
src/runtime/base64/base64_impl.cpp (+66/-11)
src/runtime/spec/base64/base64.xml (+6/-1)
src/store/api/item_factory.h (+13/-0)
src/store/naive/atomic_items.cpp (+30/-0)
src/store/naive/atomic_items.h (+6/-9)
src/store/naive/simple_item_factory.cpp (+8/-0)
src/store/naive/simple_item_factory.h (+4/-0)
test/rbkt/ExpQueryResults/zorba/base64/decode_iso-8859-1.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/base64/decode_iso-8859-1_file.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/base64/reuse-stream.xml.res (+1/-0)
test/rbkt/Queries/zorba/base64/decode_iso-8859-1.xq (+3/-0)
test/rbkt/Queries/zorba/base64/decode_iso-8859-1_file.xq (+5/-0)
test/rbkt/Queries/zorba/base64/iso-8859-1.txt (+1/-0)
test/rbkt/Queries/zorba/base64/reuse-stream.xq (+16/-0)
description: | updated |
Changed in zorba: | |
status: | In Progress → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I will take a look.
Matthias: should this be marked for 2.5?