Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 01C44C955B9 for ; Mon, 4 Jun 2012 10:01:04 -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 1SbWu6-0005TG-Np for pgsql-bugs@postgresql.org; Mon, 04 Jun 2012 13:01:04 +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 17:00:45 +0400 From: To: Subject: Re: Calling xlst_process with certain arguments causes server crash Thread-Topic: Calling xlst_process with certain arguments causes server crash Thread-Index: Ac1CUTeYF1oP8He8R66+doF7PSsZmQAAHI7A Date: Mon, 4 Jun 2012 13:00:45 +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_DDAE57CA020DB347B405A6E6829F4B79112287E5MAIL2Aalliedtes_" MIME-Version: 1.0 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/21 X-Sequence-Number: 33248 --_000_DDAE57CA020DB347B405A6E6829F4B79112287E5MAIL2Aalliedtes_ 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: 2012-06-04 16:32:40.927 MSDLOG: server process (PID 4512) was terminated b= y exception 0xC0000005 2012-06-04 16:32:40.927 MSDHINT: See C include file "ntstatus.h" for a des= cription of the hexadecimal value. 2012-06-04 16:32:40.927 MSDLOG: terminating any other active server proces= ses Could you please help to figure out how it can be fixed? Thanks, Peter Peter Gagarinov | Head of Modelling and Analytics Allied Testing --_000_DDAE57CA020DB347B405A6E6829F4B79112287E5MAIL2Aalliedtes_ 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.org/1999/XSL/Transform&= quot; 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= :

 

2012-06-04 16:32:40.92= 7 MSDLOG:  server process (PID 4512) was terminated by exception 0xC00= 00005

2012-06-04 16:32:40.92= 7 MSDHINT:  See C include file "ntstatus.h" for a descriptio= n of the hexadecimal value.

2012-06-04 16:32:40.92= 7 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 Modell= ing and Analytics<= o:p>

 

Allied Testing

 

--_000_DDAE57CA020DB347B405A6E6829F4B79112287E5MAIL2Aalliedtes_--