Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 739CFC955BC for ; Mon, 4 Jun 2012 17:33:25 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sbdxq-00063M-PP for pgsql-bugs@postgresql.org; Mon, 04 Jun 2012 20:33:24 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q54KX5uT017408; Mon, 4 Jun 2012 16:33:06 -0400 (EDT) To: pgagarinov@alliedtesting.com cc: pgsql-bugs@postgresql.org Subject: Re: Calling xlst_process with certain arguments causes server crash In-reply-to: References: Comments: In-reply-to message dated "Mon, 04 Jun 2012 13:00:45 -0000" Date: Mon, 04 Jun 2012 16:33:05 -0400 Message-ID: <17407.1338841985@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/27 X-Sequence-Number: 33254 writes: > It looks like calling xlst_process as follows causes a crash: Hm, apparently xsltApplyStylesheet returns a NULL in this example, and we're passing that on to xsltSaveResultToString which is not expecting any such thing. I presume we need another error check here, but what should the error say exactly? Can we get any info more detailed than "failed to apply stylesheet"? regards, tom lane