Re: [BUGS] Calling xlst_process with certain arguments causes server crash

2012-06-05 Thread pgagarinov
-Original Message- From: Tom Lane [mailto:t...@sss.pgh.pa.us] Sent: Tuesday, June 05, 2012 4:16 AM To: Peter Gagarinov Cc: pgsql-bugs@postgresql.org Subject: Re: [BUGS] Calling xlst_process with certain arguments causes server crash I wrote: > Hm, apparently xsltApplyStylesheet ret

Re: [BUGS] Calling xlst_process with certain arguments causes server crash

2012-06-04 Thread Tom Lane
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 tha

Re: [BUGS] Calling xlst_process with certain arguments causes server crash

2012-06-04 Thread Tom Lane
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 er

Re: [BUGS] Calling xlst_process with certain arguments causes server crash

2012-06-04 Thread pgagarinov
Hello, It looks like calling xlst_process as follows causes a crash: select xslt_process(' 60 0.75 30 0.75 1 calendar spread ',' http://www.w3.org/1999/XSL/Transform"; version="1.0"> result.asp?value= ','') After the crash pglo