Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 17E64C955BE for ; Mon, 4 Jun 2012 21:16:48 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SbhS1-0006vl-Vd for pgsql-bugs@postgresql.org; Tue, 05 Jun 2012 00:16:47 +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 q550GPR3020759; Mon, 4 Jun 2012 20:16:25 -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: <17407.1338841985@sss.pgh.pa.us> References: <17407.1338841985@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 04 Jun 2012 16:33:05 -0400" Date: Mon, 04 Jun 2012 20:16:25 -0400 Message-ID: <20758.1338855385@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/30 X-Sequence-Number: 33257 I wrote: > 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"? Apparently not -- or at least, if libxslt provides any easy way to extract error reports, it's not evident from the pretty-awful documentation. I've committed a fix that just reports "failed to apply stylesheet". regards, tom lane