http site crashes zorba

Bug #867171 reported by Daniel Turcanu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Confirmed
High
Nicolae Brinza

Bug Description

When I try to load the page http://www.xqueryfunctions.com/xq/functx_fragment-from-uri.html there are two errors (from libxml?) on the console, then Zorba crashes with an assertion failure.

The test looks like:
import module namespace http = "http://expath.org/ns/http-client";
variable $load-result;
$load-result := http:send-request(<http:request method="GET" href="http://www.xqueryfunctions.com/xq/functx_fragment-from-uri.html"/>);
$load-result

and the output is:

I/O error : encoder error
xmlParseChunk: encoder error
zorba: /home/ceej/zo/src/src/store/naive/loader_fast.cpp:485: virtual store::Item_t zorba::simplestore::FastXmlLoader::loadXml(const zstring &, const zstring &, std::istream &): Assertion `thePathStack.empty()' failed.
zsh: abort (core dumped) bin/zorba -f -q /tmp/foo.xq

Revision history for this message
Chris Hillery (ceejatec) wrote :

Matthias - could use some hints on this one. I know you're a bit familiar with the "strings in string pool" error - what code puts strings in the pool, and how are they supposed to be taken out?

Revision history for this message
Daniel Turcanu (danielturcanu) wrote :

The namespaces are put in string pool.
Probably some node items are not freed when throwing that error.

Changed in zorba:
milestone: none → 2.5
Changed in zorba:
milestone: 2.5 → 2.8
Chris Hillery (ceejatec)
Changed in zorba:
status: New → Confirmed
assignee: Matthias Brantner (matthias-brantner) → Chris Hillery (ceejatec)
milestone: 2.8 → 2.9
Chris Hillery (ceejatec)
tags: removed: core-runtime
Revision history for this message
Chris Hillery (ceejatec) wrote :

Disregard earlier comments about the string pool. The symptoms are now as described in the updated Description. Assigning to Nicolae.

description: updated
description: updated
Changed in zorba:
assignee: Chris Hillery (ceejatec) → Nicolae Brinza (nbrinza)
tags: added: xml-parser
tags: added: segfault
Changed in zorba:
milestone: 2.9 → 3.0
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.