BUG #5079: postgres killed by signal 11 when executing xslt_process function from xml2 contrib module.

Lists: pgsql-bugs
From: "dolejsi jiri" <dolejsi(at)mail(dot)ctk(dot)cz>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5079: postgres killed by signal 11 when executing xslt_process function from xml2 contrib module.
Date: 2009-09-24 11:34:17
Message-ID: 200909241134.n8OBYHYc063993@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 5079
Logged by: dolejsi jiri
Email address: dolejsi(at)mail(dot)ctk(dot)cz
PostgreSQL version: 8.4.1
Operating system: FreeBSD 5.4 or Centos 5.3
Description: postgres killed by signal 11 when executing xslt_process
function from xml2 contrib module.
Details:

executing following query 2 times crashes postgres server:
select xslt_process('<aaa/>',$$<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>$$)::xml;


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "dolejsi jiri" <dolejsi(at)mail(dot)ctk(dot)cz>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5079: postgres killed by signal 11 when executing xslt_process function from xml2 contrib module.
Date: 2009-09-27 04:59:11
Message-ID: 16195.1254027551@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

"dolejsi jiri" <dolejsi(at)mail(dot)ctk(dot)cz> writes:
> executing following query 2 times crashes postgres server:

The stack trace is

#0 0x0000003d7e42e989 in xmlCleanupCharEncodingHandlers ()
from /usr/lib64/libxml2.so.2
#1 0x0000003d7e437725 in xmlCleanupParser () from /usr/lib64/libxml2.so.2
#2 0x00007fac004e270d in xslt_process (fcinfo=0x7fff59701da0)
at xslt_proc.c:124
#3 0x0000000000566154 in ExecMakeFunctionResult (
fcache=<value optimized out>, econtext=<value optimized out>,
isNull=0x7fff5970222f "", isDone=0x0) at execQual.c:1686
#4 0x000000000056141c in ExecEvalExprSwitchContext (expression=0x7,
econtext=0x0, isNull=0x1c258a0 '\177' <repeats 200 times>...,
isDone=0x1c25870) at execQual.c:4030

which is probably sufficient evidence that this is another variant
of the known memory management issues with contrib/xml2:
http://archives.postgresql.org/message-id/4A6A276A.6090405@dunslane.net

So far no one has mustered the interest/energy to fix it.

regards, tom lane