pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pgagarinov@alliedtesting.com
To: pgsql-bugs@postgresql.org
Subject: Calling xlst_process with certain arguments causes server crash
Date: Mon, 4 Jun 2012 12:57:42 +0000
Message-ID: <DDAE57CA020DB347B405A6E6829F4B79112277D6@MAIL2A.alliedtesting.com> (raw)

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="{@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:





Peter Gagarinov | Head of Modelling and Analytics

Allied Testing

view thread (5+ messages)  latest in thread

Message-ID: <DDAE57CA020DB347B405A6E6829F4B79112277D6@MAIL2A.alliedtesting.com>
Permalink:  ../DDAE57CA020DB347B405A6E6829F4B79112277D6@MAIL2A.alliedtesting.com/
Also on:    postgresql.org/message-id/DDAE57CA020DB347B405A6E6829F4B79112277D6@MAIL2A.alliedtesting.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pgagarinov@alliedtesting.com
  Subject: Re: Calling xlst_process with certain arguments causes server crash
  In-Reply-To: <DDAE57CA020DB347B405A6E6829F4B79112277D6@MAIL2A.alliedtesting.com>
  References: <DDAE57CA020DB347B405A6E6829F4B79112277D6@MAIL2A.alliedtesting.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox