XQDB: Assertion `str.size() == length' failed.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
David Graf |
Bug Description
I am able to produce an assertion in xqdb on ubuntu 10.04 64bit.
Query:
for $x in (1,2,3)
let $y := $x+1
return $y
Protocol:
./bin/xqdb -f -q debugger.xq
Communication port: 28028
Zorba executable: ./bin/zorba
Zorba arguments: -d -f -q debugger.xq
Zorba XQuery Debugger Server
Copyright 2006-2009 The FLWOR Foundation.
License: Apache License 2.0: <http://
Established connection with XQuery client zorba
(xqdb) break -f debugger.xq -l 2
set breakpoint with id 1 and state enabled
(xqdb) run
<?xml version="1.0" encoding="UTF-8"?>
break in query body at /home/dagraf/
2 o| let $y := $x+1
(xqdb) print -c x
Error: Error while evaluating expression.
(xqdb) print -c $x
Segmentation fault
xqdb: /home/dagraf/
Aborted
Changed in zorba: | |
status: | In Progress → Confirmed |
Changed in zorba: | |
milestone: | 2.2 → 2.5 |
Changed in zorba: | |
status: | Confirmed → In Progress |
assignee: | Markos Zaharioudakis (markos-za) → David Graf (davidagraf) |
Changed in zorba: | |
status: | In Progress → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
The error generated by the command:
print -c x
will cause a second evaluation command to fail whatever that is (even if a correct expression), for example:
print -c $x