Bugs item #2812767, was opened at 2009-06-26 14:08
Message generated for change (Comment added) made by nielsnes
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2812767&group_id=56967
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: XML
Group: SQL "stable"
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Gábor (feherg)
>Assigned to: Sjoerd Mullender (sjoerd)
Summary: xmlagg() causes segmentation fault
Initial Comment:
Operating System: openSUSE 11.1
Compiler: gcc-4.3-34.243
Parser tools: package lex is not installed; flex-2.5.35-43.23; package yacc is
not installed; bison-2.3-127.26
More tools: autoconf-2.63-1.136; automake-1.10.1-4.284; libtool-2.2.6-1.35
MonetDB version: May2009 from source (with a recent head checkout of buildtools)
Loaded MonetDB modules: sql; xml; batxml; geom;
The following query causes a segmentation fault at the server side:
select xmlelement(name a, xmlagg(xmlelement(name b, x))) from test;
where test is:
CREATE TABLE "test"."test" (
"x" varchar(64)
);
Before the query, funcs.sql from the xml test suite was run on the schema.
----------------------------------------------------------------------
>Comment By: Niels Nes (nielsnes)
Date: 2009-08-06 19:36
Message:
the xml.agg(bat) -> xml function is missing it should simple aggregate all
xml input from the bat into a single value. As is done by the implemented
group versions. This version has a single group, ie all values.
----------------------------------------------------------------------
Comment By: Sjoerd Mullender (sjoerd)
Date: 2009-08-06 15:10
Message:
The query plan for this test
(sql/src/test/sql_xml/Tests/xmlelement_segfault.SF-2812767.sql) show
_26 := xml.element("a",nil:xml,nil:xml,_25);
sql.exportValue(1,".","element_a","xml",0,0,13,_26,"");
Since _25 is a BAT[oid,xml], the batxml version of xml.element is called,
and it produces another BAT[oid,xml]. This means that I would expect
sql.exportResult should be called to produce the result, not
sql.exportValue. This latter function produces the segfault since it gets
a BAT where it expects a single value.
Assigning to Niels, since he probably knows instantly what's wrong.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2812767&group_id=56967
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs