Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 742D4C955B9 for ; Mon, 4 Jun 2012 09:58:12 -0300 (ADT) Received: from mail1a.alliedtesting.com ([80.249.134.186] helo=mail2a.alliedtesting.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SbWrF-0005Oe-B4 for pgsql-bugs@postgresql.org; Mon, 04 Jun 2012 12:58:11 +0000 Received: from mail2a.alliedtesting.com ([fe80::a0eb:5608:4cb8:97dd]) by MAIL2A.alliedtesting.com ([fe80::a0eb:5608:4cb8:97dd%17]) with mapi id 14.02.0247.003; Mon, 4 Jun 2012 16:57:43 +0400 From: To: Subject: Calling xlst_process with certain arguments causes server crash Thread-Topic: Calling xlst_process with certain arguments causes server crash Thread-Index: Ac1CUTeYF1oP8He8R66+doF7PSsZmQ== Date: Mon, 4 Jun 2012 12:57:42 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.134.32] Content-Type: multipart/alternative; boundary="_000_DDAE57CA020DB347B405A6E6829F4B79112277D6MAIL2Aalliedtes_" MIME-Version: 1.0 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/19 X-Sequence-Number: 33246 --_000_DDAE57CA020DB347B405A6E6829F4B79112277D6MAIL2Aalliedtes_ Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Hello, It looks like calling xlst_process as follows causes a crash: select xslt_process(' 60 0.75 30 0.75 1 calendar spread ',' result.asp?value=3D ','') After the crash pglog contains the following records: Peter Gagarinov | Head of Modelling and Analytics Allied Testing --_000_DDAE57CA020DB347B405A6E6829F4B79112277D6MAIL2Aalliedtes_ Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable

Hello,

 

It looks like calling xlst_process as follows causes= a crash:

 

select xslt_process('<root xml_tb_version=3D"= ;2.0" type=3D"struct" >

<ttm type=3D"int32" >60</ttm><= o:p>

<delta type=3D"double" >0.75</del= ta>

<ttm2 type=3D"int32" >30</ttm2>= ;

<delta2 type=3D"double" >0.75</de= lta2>

<expMonthNum type=3D"int32" >1</e= xpMonthNum>

<assetComb type=3D"cell" >

        &nbs= p;      <item type=3D"char" >calen= dar spread</item>

</assetComb>

</root>','<?xml version=3D"1.0" e= ncoding=3D"UTF-8"?>

<xsl:stylesheet xmlns:xsl=3D"http://www.w3.o= rg/1999/XSL/Transform" version=3D"1.0">

  <xsl:output method=3D"xml" inden= t=3D"yes"/>

  <xsl:template match=3D"//root/*&= quot;>

    <elem type=3D"{@type}&quo= t; name=3D"{name()}">

      <xsl:value-of sele= ct=3D"."/>

      <xsl:attribute nam= e=3D"href">

        &nbs= p; result.asp?value=3D<xsl:value-of select=3D"."/>

      </xsl:attribute>= ;     

    </elem>

  </xsl:template>

</xsl:stylesheet>','')

 

After the crash pglog contains the following records= :

 

 

 

 

 

Peter Gagarinov | Head of Modell= ing and Analytics<= o:p>

 

Allied Testing

 

--_000_DDAE57CA020DB347B405A6E6829F4B79112277D6MAIL2Aalliedtes_--