Re: Calling xlst_process with certain arguments causes server crash

From: <pgagarinov(at)alliedtesting(dot)com>
To: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Calling xlst_process with certain arguments causes server crash
Date: 2012-06-04 13:00:45
Message-ID: DDAE57CA020DB347B405A6E6829F4B79112287E5@MAIL2A.alliedtesting.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello,

It looks like calling xlst_process as follows causes a crash:

select xslt_process('<root xml_tb_version="2.0" type="struct" >
<ttm type="int32" >60</ttm>
<delta type="double" >0.75</delta>
<ttm2 type="int32" >30</ttm2>
<delta2 type="double" >0.75</delta2>
<expMonthNum type="int32" >1</expMonthNum>
<assetComb type="cell" >
<item type="char" >calendar spread</item>
</assetComb>
</root>','<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes"/>

<xsl:template match="//root/*">
<elem type="{(at)type}" name="{name()}">
<xsl:value-of select="."/>
<xsl:attribute name="href">
result.asp?value=<xsl:value-of select="."/>
</xsl:attribute>
</elem>
</xsl:template>

</xsl:stylesheet>','')

After the crash pglog contains the following records:

2012-06-04 16:32:40.927 MSDLOG: server process (PID 4512) was terminated by exception 0xC0000005
2012-06-04 16:32:40.927 MSDHINT: See C include file "ntstatus.h" for a description of the hexadecimal value.
2012-06-04 16:32:40.927 MSDLOG: terminating any other active server processes

Could you please help to figure out how it can be fixed?

Thanks,
Peter

Peter Gagarinov | Head of Modelling and Analytics

Allied Testing

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Kevin Grittner 2012-06-04 14:19:56 Re: BUG #6669: unique index w/ multiple columns and NULLs
Previous Message pgagarinov 2012-06-04 12:57:42 Calling xlst_process with certain arguments causes server crash