http site crashes zorba

Bug #867171 reported by Daniel Turcanu on 2011-08-09
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nicolae Brinza

Bug Description

When I try to load the page there are two errors (from libxml?) on the console, then Zorba crashes with an assertion failure.

The test looks like:
import module namespace http = "";
variable $load-result;
$load-result := http:send-request(<http:request method="GET" href=""/>);

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

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?

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) on 2013-01-22
Changed in zorba:
status: New → Confirmed
assignee: Matthias Brantner (matthias-brantner) → Chris Hillery (ceejatec)
milestone: 2.8 → 2.9
Chris Hillery (ceejatec) on 2013-04-02
tags: removed: core-runtime
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) on 2013-08-09
Changed in zorba:
milestone: 3.0 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers