From siamak.kolahi@gmail.com Tue Dec 1 18:21:12 2009 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 44B7D75017C for ; Tue, 1 Dec 2009 18:21:12 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.521 X-Spam-Level: X-Spam-Status: No, score=-2.521 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_IB=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ceojpYceYnHn for ; Tue, 1 Dec 2009 18:21:02 +0000 (GMT) Received: from mail-iw0-f190.google.com (mail-iw0-f190.google.com [209.85.223.190]) by menubar.gnome.org (Postfix) with ESMTP id 4A75B750064 for ; Tue, 1 Dec 2009 18:20:53 +0000 (GMT) Received: by iwn28 with SMTP id 28so4145966iwn.13 for ; Tue, 01 Dec 2009 10:20:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=c0Cw1PBoCpalBB0f7ss6PlX3IHs0iH3IP3Wj4IP2EB8=; b=TMkmZ4Akp+g/GO8RocEiOPCwdpRJKG+vgsGdkUk7K1TV4hC1plaNPzqesDUlQawuE9 TtI1oUoKmHUyyHFluAxBonMrznpEdcICo1LfQM0iX8bkQhgfH6WnTYwpimerrigwH/+f jAEo1ZLsm+hk2AuJwDfJMyWyWA5BKnMzEclDg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=v47VGsbO3UqHcvGz6WKBLpDCSV48jPSDeOeAz6iO9omqBTcNzW63e0npt5WDGxJOUp 7GVyneUtW1/XEkYzU6R9WXv4p9XOeQifkLBBkRLvIWLlPP0cTHziW/b80AD6IckmtA0F jdukNYRANxiEFBS+nDo2hRP/Zp7wRQC4FY3f8= MIME-Version: 1.0 Received: by 10.231.20.230 with SMTP id g38mr541359ibb.49.1259691652308; Tue, 01 Dec 2009 10:20:52 -0800 (PST) Date: Tue, 1 Dec 2009 13:20:52 -0500 Message-ID: <4e8da30d0912011020i42e31e5fj516a1361f7a4380d@mail.gmail.com> From: Siamak Kolahi To: xslt@gnome.org Content-Type: multipart/alternative; boundary=0015176f13b67661d00479aed138 Subject: [xslt] Question on CVE issues X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2009 18:21:12 -0000 --0015176f13b67661d00479aed138 Content-Type: text/plain; charset=ISO-8859-1 Hi guys, I am new to this list. So first of all salute to every one around. and second is my question on the CVE security issues reported for libxslt below 1.1.24. here is the bugzilla link for it . I had another issue, CVE-2008-2935which I noted its fixed in 1.1.25 so happy smiley for that :) but I could not find in any recent release notes if it has been fixed. so I was wondering if there is any future plans for fixing it. Thanks guys. Siamak --0015176f13b67661d00479aed138 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi guys,

I am new to this list. So first of all salute to every one = around.
and second is my question on the CVE security issues reported fo= r libxslt below 1.1.24. here is the bugzilla link for it.
I had another issue, CVE-2008-2935 which I noted its fixed in 1.1.25 so hap= py smiley for that :)
but I could not find in any recent release notes i= f it has been fixed. so I was wondering if there is any future plans for fi= xing it.

Thanks guys.
Siamak
--0015176f13b67661d00479aed138-- From veillard@paphio.veillard.com Wed Dec 2 13:27:51 2009 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9310075025F for ; Wed, 2 Dec 2009 13:27:51 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.762 X-Spam-Level: X-Spam-Status: No, score=-4.762 tagged_above=-999 required=2 tests=[AWL=1.606, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, TW_BX=0.077, TW_IB=0.077, TW_PM=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZN3VwZBDzxCM for ; Wed, 2 Dec 2009 13:27:42 +0000 (GMT) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by menubar.gnome.org (Postfix) with ESMTP id 7E3C775026A for ; Wed, 2 Dec 2009 13:27:34 +0000 (GMT) Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nB2DRXnM013775 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 2 Dec 2009 08:27:33 -0500 Received: from paphio.veillard.com (vpn2-8-161.ams2.redhat.com [10.36.8.161]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nB2DRUwv001929 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 2 Dec 2009 08:27:32 -0500 Received: from paphio.veillard.com (localhost [127.0.0.1]) by paphio.veillard.com (8.14.3/8.14.3) with ESMTP id nB2DRS4t026727 for ; Wed, 2 Dec 2009 14:27:29 +0100 Received: (from veillard@localhost) by paphio.veillard.com (8.14.3/8.14.3/Submit) id nB2DRSmq026724 for xslt@gnome.org; Wed, 2 Dec 2009 14:27:28 +0100 Date: Wed, 2 Dec 2009 14:27:27 +0100 From: Daniel Veillard To: The Gnome XSLT library mailing-list Message-ID: <20091202132727.GF23641@redhat.com> References: <4AD0A6BD.4080406@aevum.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4AD0A6BD.4080406@aevum.de> User-Agent: Mutt/1.5.20 (2009-08-17) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Subject: Re: [xslt] Status of refactored code X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: veillard@redhat.com, The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2009 13:27:51 -0000 Oops I'm finding old mails today ! On Sat, Oct 10, 2009 at 05:22:37PM +0200, Nick Wellnhofer wrote: > I wonder what's the status of the refactored code in libxslt that can be > enabled by defining XSLT_REFACTORED. It's been there for some years now > and AFAICS it fixes some bugs that are hard to fix without the refactoring. > > I gave it a try about two years ago and I couldn't find any obvious > problems. Hum, Kasimier left before we really validated it fully, if you think it's fine and ready, maybe I should have a look, I won't have much time before the end of year vacations but I should be able to looks at things at the end of December Any additional testing or regression tests you could provide showing the bug fixed would be a good step forward :-) Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ From shigin@rambler-co.ru Wed Dec 2 16:12:04 2009 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AC2A57502D9 for ; Wed, 2 Dec 2009 16:12:04 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.522 X-Spam-Level: X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_SV=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N6Cr3Ay8i0nE for ; Wed, 2 Dec 2009 16:11:53 +0000 (GMT) Received: from yam.park.rambler.ru (yam.park.rambler.ru [81.19.64.116]) by menubar.gnome.org (Postfix) with ESMTP id 6D16475028C for ; Wed, 2 Dec 2009 16:11:44 +0000 (GMT) Received: from [81.19.90.63] (atlas.rambler.ramblermedia.com [81.19.90.63]) by yam.park.rambler.ru (8.14.1/8.14.1) with ESMTP id nB2GBg4D075336 for ; Wed, 2 Dec 2009 19:11:42 +0300 (MSK) (envelope-from shigin@rambler-co.ru) From: Alexander Shigin To: xslt@gnome.org Content-Type: multipart/mixed; boundary="=-uFfdMQ2OGiUEIVi6vUq3" Date: Wed, 02 Dec 2009 19:11:41 +0300 Message-Id: <1259770301.6470.8786.camel@atlas> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Subject: [xslt] [PATCH] xsltproc stringparam X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2009 16:12:04 -0000 --=-uFfdMQ2OGiUEIVi6vUq3 Content-Type: text/plain Content-Transfer-Encoding: 7bit The current documentation refers string parameter can't contain both quote and double-quotes. It confuses me a while ago because it makes me think I can't use parameters with both quotes with XSLT at all. The attached patch allows to use both quotes and changes man page. I can't find any test for xsltproc, if one exist I would be pleased to add test for the case. P. S. I think it would be pretty nice for download page (http://xmlsoft.org/XSLT/downloads.html) to points to current git repository instead of outdated svn one. --=-uFfdMQ2OGiUEIVi6vUq3 Content-Disposition: attachment; filename="strparam.patch" Content-Type: text/x-patch; name="strparam.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit diff --git a/doc/xsltproc.1 b/doc/xsltproc.1 index d94e7a2..5755640 100644 --- a/doc/xsltproc.1 +++ b/doc/xsltproc.1 @@ -310,11 +310,6 @@ Error in one of the documents Unsupported xsl:output method .RE .PP -\fB8\fR -.RS 4 -String parameter contains both quote and double\-quotes -.RE -.PP \fB9\fR .RS 4 Internal processing error diff --git a/doc/xsltproc.xml b/doc/xsltproc.xml index d3849e2..0742b02 100644 --- a/doc/xsltproc.xml +++ b/doc/xsltproc.xml @@ -512,13 +512,6 @@ the XPath expression must be UTF-8 encoded. - 8 - - String parameter contains both quote and double-quotes - - - - 9 Internal processing error diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c index e978a63..63a48e4 100644 --- a/xsltproc/xsltproc.c +++ b/xsltproc/xsltproc.c @@ -8,6 +8,7 @@ #include "libxslt/libxslt.h" #include "libexslt/exslt.h" +#include "libxslt/variables.h" #include #ifdef HAVE_STRING_H #include @@ -96,7 +97,7 @@ static int profile = 0; static int options = XSLT_PARSE_OPTIONS; static const char *params[MAX_PARAMETERS + 1]; static int nbparams = 0; -static xmlChar *strparams[MAX_PARAMETERS + 1]; +static const char *strparams[MAX_PARAMETERS + 1]; static int nbstrparams = 0; static xmlChar *paths[MAX_PATHS + 1]; static int nbpaths = 0; @@ -104,6 +105,13 @@ static char *output = NULL; static int errorno = 0; static const char *writesubtree = NULL; +static void updateContext(xsltTransformContextPtr ctxt) { + xsltSetCtxtParseOptions(ctxt, options); + if (-1 == xsltQuoteUserParams(ctxt, strparams)) { + fputs("can't set stringparams\n", stderr); + } +} + /* * Entity loading control and customization. */ @@ -378,9 +386,15 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) { int j; for (j = 1; j < repeat; j++) { - res = xsltApplyStylesheet(cur, doc, params); + ctxt = xsltNewTransformContext(cur, doc); + if (ctxt == NULL) + return; + updateContext(ctxt); + res = xsltApplyStylesheetUser(cur, doc, params, NULL, + NULL, ctxt); xmlFreeDoc(res); xmlFreeDoc(doc); + xsltFreeTransformContext(ctxt); #ifdef LIBXML_HTML_ENABLED if (html) doc = htmlReadFile(filename, encoding, options); @@ -392,7 +406,7 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) { ctxt = xsltNewTransformContext(cur, doc); if (ctxt == NULL) return; - xsltSetCtxtParseOptions(ctxt, options); + updateContext(ctxt); #ifdef LIBXML_XINCLUDE_ENABLED if (xinclude) ctxt->xinclude = 1; @@ -461,7 +475,7 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) { ctxt = xsltNewTransformContext(cur, doc); if (ctxt == NULL) return; - xsltSetCtxtParseOptions(ctxt, options); + updateContext(ctxt); #ifdef LIBXML_XINCLUDE_ENABLED if (xinclude) ctxt->xinclude = 1; @@ -685,30 +699,11 @@ main(int argc, char **argv) } } else if ((!strcmp(argv[i], "-stringparam")) || (!strcmp(argv[i], "--stringparam"))) { - const xmlChar *string; - xmlChar *value; - i++; - params[nbparams++] = argv[i++]; - string = (const xmlChar *) argv[i]; - if (xmlStrchr(string, '"')) { - if (xmlStrchr(string, '\'')) { - fprintf(stderr, - "stringparam contains both quote and double-quotes !\n"); - return(8); - } - value = xmlStrdup((const xmlChar *)"'"); - value = xmlStrcat(value, string); - value = xmlStrcat(value, (const xmlChar *)"'"); - } else { - value = xmlStrdup((const xmlChar *)"\""); - value = xmlStrcat(value, string); - value = xmlStrcat(value, (const xmlChar *)"\""); - } + strparams[nbstrparams++] = argv[i++]; + strparams[nbstrparams++] = argv[i]; - params[nbparams++] = (const char *) value; - strparams[nbstrparams++] = value; - if (nbparams >= MAX_PARAMETERS) { + if (nbstrparams >= MAX_PARAMETERS) { fprintf(stderr, "too many params increase MAX_PARAMETERS \n"); return (2); } @@ -870,8 +865,6 @@ main(int argc, char **argv) done: if (cur != NULL) xsltFreeStylesheet(cur); - for (i = 0;i < nbstrparams;i++) - xmlFree(strparams[i]); if (output != NULL) xmlFree(output); xsltFreeSecurityPrefs(sec); --=-uFfdMQ2OGiUEIVi6vUq3-- From wellnhofer@aevum.de Wed Dec 2 23:28:25 2009 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C8BEE7502F2 for ; Wed, 2 Dec 2009 23:28:25 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.522 X-Spam-Level: X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_IB=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UOXWKixYnuMK for ; Wed, 2 Dec 2009 23:28:14 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by menubar.gnome.org (Postfix) with ESMTP id C0FC075035E for ; Wed, 2 Dec 2009 23:28:05 +0000 (GMT) Received: from [192.168.2.100] (e181074246.adsl.alicedsl.de [85.181.74.246]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MOELI-1NASqF1aR2-005W0p; Thu, 03 Dec 2009 00:28:03 +0100 Message-ID: <4B16F803.6020101@aevum.de> Date: Thu, 03 Dec 2009 00:28:03 +0100 From: Nick Wellnhofer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091130 Thunderbird/3.0 MIME-Version: 1.0 To: xslt@gnome.org References: <4AD0A6BD.4080406@aevum.de> <20091202132727.GF23641@redhat.com> In-Reply-To: <20091202132727.GF23641@redhat.com> Content-Type: multipart/mixed; boundary="------------000009020304040009010001" X-Provags-ID: V01U2FsdGVkX1+YzyY9c2UMFpK0mv3xB3q8oku4WGY2KWS4fms zs2Z7jtik6xLBOvk3CPUf5dwq76G2vqirrvSMl4JJ6P7SYUCYf 4dbWciGoNDQ2MKxH/4wjQ== Subject: Re: [xslt] Status of refactored code X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Dec 2009 23:28:26 -0000 This is a multi-part message in MIME format. --------------000009020304040009010001 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 02/12/09 14:27, Daniel Veillard wrote: > On Sat, Oct 10, 2009 at 05:22:37PM +0200, Nick Wellnhofer wrote: >> I wonder what's the status of the refactored code in libxslt that can be >> enabled by defining XSLT_REFACTORED. It's been there for some years now >> and AFAICS it fixes some bugs that are hard to fix without the refactoring. >> >> I gave it a try about two years ago and I couldn't find any obvious >> problems. > > Hum, Kasimier left before we really validated it fully, > if you think it's fine and ready, maybe I should have a look, > I won't have much time before the end of year vacations but > I should be able to looks at things at the end of December > > Any additional testing or regression tests you could provide > showing the bug fixed would be a good step forward :-) It fixes some of the bugs assigned to Kasimier in Bugzilla: https://bugzilla.gnome.org/buglist.cgi?query_format=advanced;emailassigned_to1=1;order=Bug%20Number;bug_status=UNCONFIRMED;bug_status=NEW;bug_status=ASSIGNED;bug_status=REOPENED;bug_status=NEEDINFO;email1=kbuchcik;product=libxslt;emailtype1=substring I can't really judge if the refactored code is ready. But I didn't find any problems last time I gave it a try. Attached is a diff of the test output when running the tests with or without the refactored code. The exslt failures definitely look like a problem. REC/test-7.1.1-3 Fixed by the refactored code REC/test-2.5-1 general/bug-114 general/bug-164 general/bug-60 Maybe these are just differently worded error and warning messages. I'm not sure. REC/test-7.1.1 Looks like a result of the fix to bug #341325. general/bug-150 general/bug-71 namespaces/tst5 Different order of namespace declarations exslt/functions/function.8 fails with the following error message: compilation error: file ./function.8.xsl line 22 element param Redefinition of variable or parameter 'in'. compilation error: file ./function.8.xsl line 30 element param Redefinition of variable or parameter 'in'. exslt/math/max.3 fails with a similar message This seems to be a problem in the refactored code wrt params of exslt functions. Parameters of a different functions with the same name are rejected as duplicate. Nick --------------000009020304040009010001 Content-Type: text/plain; name="test_refactored.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="test_refactored.diff" --- test_current.log 2009-12-02 23:35:26.000000000 +0100 +++ test_refactored.log 2009-12-02 23:31:47.000000000 +0100 @@ -9,18 +9,44 @@ make[1]: Leaving directory `/home/nik/src/libxslt/tests/REC2' make[1]: Entering directory `/home/nik/src/libxslt/tests/REC' ## Running REC tests -test-7.1.1-3 result -2c2 < SUCCESS --- > SUCCESS +test-2.5-1 result +1,4c1,2 < compilation error: file ./test-2.5-1.xsl line 6 element exciti= ng-new-1.8-feature < xsltStylePreCompute: unknown xsl:exciting-new-1.8-fe= ature < compilation error: file ./test-2.5-1.xsl line 2 element styleshee= t < xsl:version: only 1.0 features are supported --- > compilation warnin= g: file ./test-2.5-1.xsl line 2 element stylesheet > Warning: the attribu= te xsl:version specifies a value different from '1.0'. Switching to forwa= rds-compatible mode. Only features of XSLT 1.0 are supported by this proc= essor. +test-7.1.1 result +2,8c2,8 < < <= = < < < < = --- > > > > > > > ## Running REC tests without dictionaries -test-7.1.1-3 result -2c2 < SUCCESS --- > SUCCESS +test-2.5-1 result +1,4c1,2 < compilation error: file ./test-2.5-1.xsl line 6 element exciti= ng-new-1.8-feature < xsltStylePreCompute: unknown xsl:exciting-new-1.8-fe= ature < compilation error: file ./test-2.5-1.xsl line 2 element styleshee= t < xsl:version: only 1.0 features are supported --- > compilation warnin= g: file ./test-2.5-1.xsl line 2 element stylesheet > Warning: the attribu= te xsl:version specifies a value different from '1.0'. Switching to forwa= rds-compatible mode. Only features of XSLT 1.0 are supported by this proc= essor. +test-7.1.1 result +2,8c2,8 < < <= = < < < < = --- > > > > > > > make[1]: Leaving directory `/home/nik/src/libxslt/tests/REC' make[1]: Entering directory `/home/nik/src/libxslt/tests/general' ## Running general tests +bug-114 result +0a1,2 > compilation warning: file ./bug-114.xsl line 4 element styleshee= t > Warning: the attribute xsl:version specifies a value different from '= 1.0'. Switching to forwards-compatible mode. Only features of XSLT 1.0 ar= e supported by this processor. +bug-150 result +2c2 < --- > +bug-164 result +0a1,2 > compilation warning: file ./bug-164.xsl line 5 element styleshee= t > Warning: the attribute xsl:version specifies a value different from '= 1.0'. Switching to forwards-compatible mode. Only features of XSLT 1.0 ar= e supported by this processor. +bug-60 result +1,2c1,2 < compilation error: file ./bug-60.xsl line 6 element foo-of < x= sltStylePreCompute: unknown xsl:foo-of --- > compilation warning: file ./= bug-60.xsl line 5 element result > Warning: the attribute xsl:version spe= cifies a value different from '1.0'. Switching to forwards-compatible mod= e. Only features of XSLT 1.0 are supported by this processor. +bug-71 result +2c2 < --- = > ## Running general tests without dictionaries +bug-114 result +0a1,2 > compilation warning: file ./bug-114.xsl line 4 element styleshee= t > Warning: the attribute xsl:version specifies a value different from '= 1.0'. Switching to forwards-compatible mode. Only features of XSLT 1.0 ar= e supported by this processor. +bug-150 result +2c2 < --- > +bug-164 result +0a1,2 > compilation warning: file ./bug-164.xsl line 5 element styleshee= t > Warning: the attribute xsl:version specifies a value different from '= 1.0'. Switching to forwards-compatible mode. Only features of XSLT 1.0 ar= e supported by this processor. +bug-60 result +1,2c1,2 < compilation error: file ./bug-60.xsl line 6 element foo-of < x= sltStylePreCompute: unknown xsl:foo-of --- > compilation warning: file ./= bug-60.xsl line 5 element result > Warning: the attribute xsl:version spe= cifies a value different from '1.0'. Switching to forwards-compatible mod= e. Only features of XSLT 1.0 are supported by this processor. +bug-71 result +2c2 < --- = > make[1]: Leaving directory `/home/nik/src/libxslt/tests/general' make[1]: Entering directory `/home/nik/src/libxslt/tests/namespaces' ## Running namespaces tests +tst5 result +2c2 < --- > make[1]: Leaving directory `/home/nik/src/libxslt/tests/namespaces' make[1]: Entering directory `/home/nik/src/libxslt/tests/keys' ## Running keys tests @@ -143,9 +169,13 @@ make[2]: Leaving directory `/home/nik/src/libxslt/tests/exslt/common' make[2]: Entering directory `/home/nik/src/libxslt/tests/exslt/functions= ' ## Running exslt function tests +function.8 result +Fatal error, no function.8.res\n make[2]: Leaving directory `/home/nik/src/libxslt/tests/exslt/functions'= make[2]: Entering directory `/home/nik/src/libxslt/tests/exslt/math' ## Running exslt math tests +max.3 result +Fatal error, no max.3.res\n make[2]: Leaving directory `/home/nik/src/libxslt/tests/exslt/math' make[2]: Entering directory `/home/nik/src/libxslt/tests/exslt/sets' ## Running exslt sets tests --------------000009020304040009010001-- From dwinkworth@att.net Thu Dec 3 01:33:55 2009 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3E2697500F5 for ; Thu, 3 Dec 2009 01:33:55 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.521 X-Spam-Level: X-Spam-Status: No, score=-2.521 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_IB=0.077, UNPARSEABLE_RELAY=0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oEVmEhJg9K9M for ; Thu, 3 Dec 2009 01:33:45 +0000 (GMT) Received: from smtp103.sbc.mail.ac4.yahoo.com (smtp103.sbc.mail.ac4.yahoo.com [76.13.13.242]) by menubar.gnome.org (Postfix) with SMTP id 1C30A750076 for ; Thu, 3 Dec 2009 01:33:36 +0000 (GMT) Received: (qmail 89221 invoked from network); 3 Dec 2009 01:33:35 -0000 Received: from 76-194-43-66.lightspeed.milwwi.sbcglobal.net (dwinkworth@76.194.43.66 with plain) by smtp103.sbc.mail.ac4.yahoo.com with SMTP; 02 Dec 2009 17:33:35 -0800 PST X-Yahoo-SMTP: 5.cjgvKswBAffHbjmlZWJE_YEsKMPGMIkgE0iYPAfw-- X-YMail-OSG: w0vUiacVM1kHYBq22bo0Xo3CF93J4paumBXhNB16RgFojrmy2mn68csipTxqQz1eqgdc_X2MuwcNaQd7Y12r5Om9bALbTxd3BkKy6x3zde5LRL.BMT2yrTkpzEwma06Hh0dWRUegoLgt5Pg07wLJykj3.E74YCsFYuFs1.yZQ0aaN4gwY6xE0xEW1pyLXc3y6RJTbK8bzjDJvK6L9A2xBMT.FFrx31QweQO05SQA2reja4Gwgo_UIiVlbEtYIi6BNyYFzYmW_v1xizXLetWQNW8hR6n6LrQaK6HbWC3U_o7bFkXH53PPF6mL_r7h1lVtcQaPt5LKJ2XtM9jK89aewvoCniwB.Gh0AExHVA-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4B17156E.5090304@att.net> Date: Wed, 02 Dec 2009 19:33:34 -0600 From: Derick Winkworth User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: xslt@gnome.org X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [xslt] Stack depth question... X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 01:33:55 -0000 I have these two scripts. I wrote them to test if libxslt support tail recursion optimization. I know now that it does not, but I did find some behavior I do not understand in the process. The first script works when num is set to 2998, but fails when it is higher with a message about max depth being 3000... The second script fails when num is set to 1875, but there is no error. A debug/verbose is not showing me any errors. Now I know that libxslt can sum up to 2998 = 4495501. The sum through 1874 is 1756875. So its not like the the number is getting too big. Can someone help me understand this? ###script 1#### ################ ####script 2######### ######################## From wellnhofer@aevum.de Thu Dec 3 02:18:41 2009 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3EF9E750095 for ; Thu, 3 Dec 2009 02:18:41 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5WBMT8nlCb5o for ; Thu, 3 Dec 2009 02:18:30 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by menubar.gnome.org (Postfix) with ESMTP id 17F44750076 for ; Thu, 3 Dec 2009 02:18:21 +0000 (GMT) Received: from [192.168.2.100] (e181074246.adsl.alicedsl.de [85.181.74.246]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0Lgf13-1NsOI22Vsr-00nu23; Thu, 03 Dec 2009 03:18:19 +0100 Message-ID: <4B171FEB.9000605@aevum.de> Date: Thu, 03 Dec 2009 03:18:19 +0100 From: Nick Wellnhofer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091130 Thunderbird/3.0 MIME-Version: 1.0 To: The Gnome XSLT library mailing-list References: <4AD0A6BD.4080406@aevum.de> <20091202132727.GF23641@redhat.com> <4B16F803.6020101@aevum.de> In-Reply-To: <4B16F803.6020101@aevum.de> Content-Type: multipart/mixed; boundary="------------080201070202060009000208" X-Provags-ID: V01U2FsdGVkX1+9DZ9/SE2RUg4JLwH3/KxV3olqwhGjUCn6CAD nsGIRzD9S2vGP44dpQp8kzsOrzs8wjf7MFv1Nu4ad9sjonbwNK xajTpNxaY7sh2IWLCfUZQ== Subject: Re: [xslt] Status of refactored code X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 02:18:41 -0000 This is a multi-part message in MIME format. --------------080201070202060009000208 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 03/12/09 00:28, Nick Wellnhofer wrote: > exslt/functions/function.8 fails with the following error message: > > compilation error: file ./function.8.xsl line 22 element param > Redefinition of variable or parameter 'in'. > compilation error: file ./function.8.xsl line 30 element param > Redefinition of variable or parameter 'in'. > > exslt/math/max.3 fails with a similar message > > This seems to be a problem in the refactored code wrt params of exslt > functions. Parameters of a different functions with the same name are > rejected as duplicate. With the attached patch all the exslt tests pass. --------------080201070202060009000208 Content-Type: text/plain; name="compiler-node-pop.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="compiler-node-pop.diff" diff --git a/libxslt/xslt.c b/libxslt/xslt.c index 55f505b..28c8c59 100644 --- a/libxslt/xslt.c +++ b/libxslt/xslt.c @@ -2432,13 +2432,13 @@ xsltCompilerNodePop(xsltCompilerCtxtPtr cctxt, xmlNodePtr node) "xsltCompilerNodePop: Depth mismatch.\n"); goto mismatch; } + cctxt->depth--; /* * Pop information of variables. */ if ((cctxt->ivar) && (cctxt->ivar->depth > cctxt->depth)) xsltCompilerVarInfoPop(cctxt); - cctxt->depth--; cctxt->inode = cctxt->inode->prev; if (cctxt->inode != NULL) cctxt->inode->curChildType = 0; --------------080201070202060009000208-- From wellnhofer@aevum.de Thu Dec 3 02:27:16 2009 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4B2BA750076 for ; Thu, 3 Dec 2009 02:27:16 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.522 X-Spam-Level: X-Spam-Status: No, score=-2.522 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, TW_IB=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ClXVLkStFebd for ; Thu, 3 Dec 2009 02:27:05 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by menubar.gnome.org (Postfix) with ESMTP id 2A42A750095 for ; Thu, 3 Dec 2009 02:26:57 +0000 (GMT) Received: from [192.168.2.100] (e181074246.adsl.alicedsl.de [85.181.74.246]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0LeS5t-1NuZkI1cwX-00q6l4; Thu, 03 Dec 2009 03:26:55 +0100 Message-ID: <4B1721EF.5030304@aevum.de> Date: Thu, 03 Dec 2009 03:26:55 +0100 From: Nick Wellnhofer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091130 Thunderbird/3.0 MIME-Version: 1.0 To: The Gnome XSLT library mailing-list References: <4B17156E.5090304@att.net> In-Reply-To: <4B17156E.5090304@att.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX18ENkhMVuWQGLT5eiHEG258j5Bz0e0GRjXaVyN cqLpeCgigqxWb1aveJPcMPt7/KVlnD2cebcdpe3XdlPNJu/aMi 71txGolIEA3Rtc/FFRjfg== Subject: Re: [xslt] Stack depth question... X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 02:27:16 -0000 On 03/12/09 02:33, Derick Winkworth wrote: > I have these two scripts. I wrote them to test if libxslt support tail > recursion optimization. I know now that it does not, but I did find > some behavior I do not understand in the process. The first script > works when num is set to 2998, but fails when it is higher with a > message about max depth being 3000... The second script fails when num > is set to 1875, but there is no error. A debug/verbose is not showing > me any errors. Now I know that libxslt can sum up to 2998 = 4495501. > The sum through 1874 is 1756875. So its not like the the number is > getting too big. Can someone help me understand this? I ran the second script with libxslt 1.1.26 and it also works until 2998 and then gives an error message. Nick From dwinkworth@att.net Thu Dec 3 03:04:27 2009 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 78492750095 for ; Thu, 3 Dec 2009 03:04:27 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.521 X-Spam-Level: X-Spam-Status: No, score=-2.521 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, TW_IB=0.077] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CmrOqaE5iglj for ; Thu, 3 Dec 2009 03:04:17 +0000 (GMT) Received: from web180011.mail.gq1.yahoo.com (web180011.mail.gq1.yahoo.com [67.195.8.75]) by menubar.gnome.org (Postfix) with SMTP id D8DAC75008A for ; Thu, 3 Dec 2009 03:04:08 +0000 (GMT) Received: (qmail 19442 invoked by uid 60001); 3 Dec 2009 03:04:07 -0000 Message-ID: <182241.16417.qm@web180011.mail.gq1.yahoo.com> X-YMail-OSG: OfEWSpAVM1nEsvmdiTifxciS09sFVvikZ_RqmyOAUWG8.lVF1ij.7T4Lx40vs5ikRrvqltZ_Y3V2WmI7n34z5zZ2rAVcQSrtV7848HZ7jW6IEICYPi3XfrMLyWV..K7Qk_a1M5pGrPEWDPTDRP1Q3B.gqOO7O_X2lzDMvpXMHiULmOaGyA8IV4BRftDAfWP5TGohjCIPePKshz7K9DTnl0lqV_dtljDSfa9RL6jDy8P2KlnUnhXr.cSbF03cyFG9N7nxm06Pmu3wI199Fb0seEUSWyAnqOffHMmP8QZItTgFizJPc3NbjE9d4cfN2GAeuFDCDfLl3ZGSXxWJ2KYYZmnRh5nUqOlckoXDy1lleTDYosY9jW0M8T1qFlp4c5Q8p.itj12pwv_SwTSDmWecXjIkeUOXGGb.oKDjCrUF5u7FlkGkT28ssFmyJYvIsNMK.CuZOAuPaA-- Received: from [76.194.43.66] by web180011.mail.gq1.yahoo.com via HTTP; Wed, 02 Dec 2009 19:04:06 PST X-Mailer: YahooMailRC/211.6 YahooMailWebService/0.8.100.260964 References: <4B17156E.5090304@att.net> <4B1721EF.5030304@aevum.de> Date: Wed, 2 Dec 2009 19:04:06 -0800 (PST) From: Derick Winkworth To: The Gnome XSLT library mailing-list In-Reply-To: <4B1721EF.5030304@aevum.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2057869336-1259809446=:16417" Subject: Re: [xslt] Stack depth question... X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Derick Winkworth , The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 03:04:27 -0000 --0-2057869336-1259809446=:16417 Content-Type: text/plain; charset=us-ascii I am also running this version, but the win32 version from http://www.zlatkovic.com/libxml.en.html hmm... ________________________________ From: Nick Wellnhofer To: The Gnome XSLT library mailing-list Sent: Wed, December 2, 2009 8:26:55 PM Subject: Re: [xslt] Stack depth question... On 03/12/09 02:33, Derick Winkworth wrote: > I have these two scripts. I wrote them to test if libxslt support tail > recursion optimization. I know now that it does not, but I did find > some behavior I do not understand in the process. The first script > works when num is set to 2998, but fails when it is higher with a > message about max depth being 3000... The second script fails when num > is set to 1875, but there is no error. A debug/verbose is not showing > me any errors. Now I know that libxslt can sum up to 2998 = 4495501. > The sum through 1874 is 1756875. So its not like the the number is > getting too big. Can someone help me understand this? I ran the second script with libxslt 1.1.26 and it also works until 2998 and then gives an error message. Nick _______________________________________________ xslt mailing list, project page http://xmlsoft.org/XSLT/ xslt@gnome.org http://mail.gnome.org/mailman/listinfo/xslt --0-2057869336-1259809446=:16417 Content-Type: text/html; charset=us-ascii
I am also running this version, but the win32 version from http://www.zlatkovic.com/libxml.en.html

hmm...


From: Nick Wellnhofer <wellnhofer@aevum.de>
To: The Gnome XSLT library mailing-list <xslt@gnome.org>
Sent: Wed, December 2, 2009 8:26:55 PM
Subject: Re: [xslt] Stack depth question...

On 03/12/09 02:33, Derick Winkworth wrote:
> I have these two scripts.  I wrote them to test if libxslt support tail
> recursion optimization.  I know now that it does not, but I did find
> some behavior I do not understand in the process.  The first script
> works when num is set to 2998, but fails when it is higher with a
> message about max depth being 3000...  The second script fails when num
> is set to 1875, but there is no error.  A debug/verbose is not showing
> me any errors.  Now I know that libxslt can sum up to 2998 = 4495501.
> The sum through 1874 is 1756875.  So its not like the the number is
> getting too big.  Can someone help me understand this?

I ran the second script with libxslt 1.1.26 and it also works until 2998 and then gives an error message.

Nick
_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
xslt@gnome.org
http://mail.gnome.org/mailman/listinfo/xslt
--0-2057869336-1259809446=:16417-- From wellnhofer@aevum.de Thu Dec 3 03:48:06 2009 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 585F4750095 for ; Thu, 3 Dec 2009 03:48:06 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JcGB-69sLxS0 for ; Thu, 3 Dec 2009 03:47:56 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by menubar.gnome.org (Postfix) with ESMTP id 003A1750334 for ; Thu, 3 Dec 2009 03:47:47 +0000 (GMT) Received: from [192.168.2.100] (e181074246.adsl.alicedsl.de [85.181.74.246]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MYLIX-1Nbmds3UCf-00Veun; Thu, 03 Dec 2009 04:47:45 +0100 Message-ID: <4B1734E1.9060201@aevum.de> Date: Thu, 03 Dec 2009 04:47:45 +0100 From: Nick Wellnhofer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091130 Thunderbird/3.0 MIME-Version: 1.0 To: xslt@gnome.org References: <4B17156E.5090304@att.net> <4B1721EF.5030304@aevum.de> <182241.16417.qm@web180011.mail.gq1.yahoo.com> In-Reply-To: <182241.16417.qm@web180011.mail.gq1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX19JuwIiZ1radnuK9GSTR4t7TyFcP51jKHc0BQC hQbJ9h8VcalwqVfQWkOcPes79OsDDxTjHGMmrpB5LNhmhX0c9k qQ3Fi/XcJQUr3lvNRsLOw== Subject: Re: [xslt] Stack depth question... X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 03:48:06 -0000 On 03/12/09 04:04, Derick Winkworth wrote: > I am also running this version, but the win32 version from > http://www.zlatkovic.com/libxml.en.html > > hmm... Then your stack is probably overflowing. I think the default stack size on Windows is 1MB, on Linux it's 8MB. Nick From dwinkworth@att.net Thu Dec 3 16:00:34 2009 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8CFDE750357 for ; Thu, 3 Dec 2009 16:00:34 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.598 X-Spam-Level: X-Spam-Status: No, score=-2.598 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AYPb83Zk75sp for ; Thu, 3 Dec 2009 16:00:23 +0000 (GMT) Received: from web180007.mail.gq1.yahoo.com (web180007.mail.gq1.yahoo.com [67.195.8.71]) by menubar.gnome.org (Postfix) with SMTP id A2E40750359 for ; Thu, 3 Dec 2009 16:00:15 +0000 (GMT) Received: (qmail 26059 invoked by uid 60001); 3 Dec 2009 16:00:14 -0000 Message-ID: <912.97920.qm@web180007.mail.gq1.yahoo.com> X-YMail-OSG: Qf2i4DMVM1lsAgluMqblDARoy_2L_Co0j6Y7RmqcxWWJLfPtSv7zk7Z99zM0BcqmsHoMq_ALuhNjaQ8nEqaAFRZ94JF4C.Er0aXApAR3_.eWG2BCz6ntq2uJlQ07N37ceaeLnwjdx4Gvs1fikl5XFNDxBYjcrlPL97kvgWIJZaXOJ33DmIr_pVLMMcz3p5Kww_P8SF79FTyWRlYqMZ.w9ReFyOl9wgbi5FCfGdRDlrKPTPWYVpbN5tJDJ4VgsJvLtUP4xvtX1_YR8vkpgZZTfMe_dATY9B86zA3M5QVkmW2mn.1_pyBHEzegqT_qDSy1r0Bslm0MN.3boXoJA51VkTWrgGtCdTI4jOp.TBpEVAOmE8h0TIazKeTTAuU.9Yqcv.w4Oh4IsgnO8gBErOqk4PcCNS8NQRzcmLCIPhyLMfRqBNgiEsxlT_oywoCGZnZbOhkKVVcDoQ-- Received: from [205.141.247.28] by web180007.mail.gq1.yahoo.com via HTTP; Thu, 03 Dec 2009 08:00:13 PST X-Mailer: YahooMailRC/211.6 YahooMailWebService/0.8.100.260964 References: <4B17156E.5090304@att.net> <4B1721EF.5030304@aevum.de> <182241.16417.qm@web180011.mail.gq1.yahoo.com> <4B1734E1.9060201@aevum.de> Date: Thu, 3 Dec 2009 08:00:13 -0800 (PST) From: Derick Winkworth To: The Gnome XSLT library mailing-list In-Reply-To: <4B1734E1.9060201@aevum.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1901830092-1259856013=:97920" Subject: Re: [xslt] Stack depth question... X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Derick Winkworth , The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2009 16:00:34 -0000 --0-1901830092-1259856013=:97920 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable So, stack depth isn't just a hard number like "3000" there is also a memory= limit.=A0 So the stack depth may be effectively=A0less if stack memory run= s out before you hit the hard limit of 3000....=0A=0A=A0=0A=0A=0A=0A_______= _________________________=0AFrom: Nick Wellnhofer =0AT= o: xslt@gnome.org=0ASent: Wed, December 2, 2009 9:47:45 PM=0ASubject: Re: [= xslt] Stack depth question...=0A=0AOn 03/12/09 04:04, Derick Winkworth wrot= e:=0A> I am also running this version, but the win32 version from=0A> http:= //www.zlatkovic.com/libxml.en.html=0A>=0A> hmm...=0A=0AThen your stack is p= robably overflowing. I think the default stack size =0Aon Windows is 1MB, o= n Linux it's 8MB.=0A=0ANick=0A_____________________________________________= __=0Axslt mailing list, project page http://xmlsoft.org/XSLT/=0Axslt@gnome.= org=0Ahttp://mail.gnome.org/mailman/listinfo/xslt=0A --0-1901830092-1259856013=:97920 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
So, stack depth isn't just a hard number l= ike "3000" there is also a memory limit.  So the stack depth may be ef= fectively less if stack memory runs out before you hit the hard limit = of 3000....
=0A

 
=0A

=0A=0A
=0AFrom: Nick Wellnhofer <wellnhofer@aevum.de>
<= SPAN style=3D"FONT-WEIGHT: bold">To: xslt@gnome.org
Sent: Wed, December 2, 2009 9:47:45 = PM
Subject: Re: [xslt] S= tack depth question...

On 03/12/09 04:04, Derick Winkworth wr= ote:
> I am also running this version, but the win32 version from
= > http://www.zlatkovic.com/libxml.en.html
>
> hmm...

= Then your stack is probably overflowing. I think the default stack size on Windows is 1MB, on Linux it's 8MB.

Nick
_____________________= __________________________
xslt mailing list, project page http://xmlsof= t.org/XSLT/
xslt@gnome.org
http://mail.gnome.org/mailman/listinfo/xslt
--0-1901830092-1259856013=:97920-- From smustudent1@yahoo.com Tue Dec 8 02:57:03 2009 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6A5F575000A for ; Tue, 8 Dec 2009 02:57:03 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K-ZVgtYJr1OX for ; Tue, 8 Dec 2009 02:56:52 +0000 (GMT) Received: from web56706.mail.re3.yahoo.com (web56706.mail.re3.yahoo.com [66.196.97.65]) by menubar.gnome.org (Postfix) with SMTP id 97A3C7500F1 for ; Tue, 8 Dec 2009 02:56:44 +0000 (GMT) Received: (qmail 9145 invoked by uid 60001); 8 Dec 2009 02:56:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1260241002; bh=WKHG11WL4wJZ3kQvMwkVp2z2c41IxWHNie8tA/jVy5U=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=rqK/PHppsauRnFli0q2I5Oz7Gq5oO7JZkM1k5Oj0N8okFeKXi+y2qfwFJWx5sJz9a1V23T9pI2kRrqNfoRrZ5amp5bW1anRCxExaVaVkPFejMpEKUWBMU5enQW9rhv8PINO1tkGcXtdMtDMsN3Zg7sKjGTUEoTaC+ep3aiDFl9w= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=gU1xcz7hTasvYeKu/9L1Q702nFEPNqgw73aNKSqmoVn03SFZKXTfIvXh1AafDZyFx2O33A9l9Hf3CzSheLJs4l+tiM4Jv/FwOFGRe33f/nSK2aQrioDigdw95TqKyx6WNndnL5snhf/8wOIifle762SetYI/7n6OP/JLlZsMbX4=; Message-ID: <880474.9066.qm@web56706.mail.re3.yahoo.com> X-YMail-OSG: U956zEgVM1nluXOqZGxQE3_gtv2zUSflva2T9nBhydymqh3Z0MQai1.752HC2MSfePrEi29wo9OhzZ47A44MUxjh.nWOe9OEwHff6TPCu3.R9EJRCE8gY6wxYtMaOpxuemKrD1nm_nphmZ7WgCOoYudlCe4JQRaW3DtsvSLuHK9solIijArDvOvLbq.1YF2juvC2wCETMMvqzTYDyZDCOJ6zc75CtnCOWpakWV108QSTCw48zP.A3r2SDd5Eh3ywgZFC17CUMgLE2NzZEfChjHj_zOhrE8goEjPI1Nowb_7xVjrl7COFBogDORmh1m2bsbc3lS0i0aV8Eb4ss8hAqg-- Received: from [173.67.62.124] by web56706.mail.re3.yahoo.com via HTTP; Mon, 07 Dec 2009 18:56:42 PST X-Mailer: YahooMailRC/240.3 YahooMailWebService/0.8.100.260964 Date: Mon, 7 Dec 2009 18:56:42 -0800 (PST) From: C Y To: xslt@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [xslt] xsltproc error during parallel docbook building X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2009 02:57:03 -0000 Hi! BRL-CAD is attempting to use xsltproc to build our docbook documentation, and we're getting an intermittent error when doing parallel building (e.g. firing off a lot of xsltproc commands at once): xsltApplyStylesheet: saving to lessons/en/mged11_refining_mug.html may not be possible it's not specific to that one file and appears to occur randomly when a lot of xsltproc instances are running. Restarting the make process usually immediately succeeds. Is this a known limitation of xsltproc? Thanks, CY From shigin@rambler-co.ru Tue Dec 8 11:40:32 2009 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CC06D75028A for ; Tue, 8 Dec 2009 11:40:32 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xbdgy32ajccu for ; Tue, 8 Dec 2009 11:40:22 +0000 (GMT) Received: from yam.park.rambler.ru (yam.park.rambler.ru [81.19.64.116]) by menubar.gnome.org (Postfix) with ESMTP id F26A5750021 for ; Tue, 8 Dec 2009 11:40:13 +0000 (GMT) Received: from [81.19.90.63] (atlas.rambler.ramblermedia.com [81.19.90.63]) by yam.park.rambler.ru (8.14.1/8.14.1) with ESMTP id nB8BeAqF025206 for ; Tue, 8 Dec 2009 14:40:10 +0300 (MSK) (envelope-from shigin@rambler-co.ru) From: Alexander Shigin To: The Gnome XSLT library mailing-list In-Reply-To: <880474.9066.qm@web56706.mail.re3.yahoo.com> References: <880474.9066.qm@web56706.mail.re3.yahoo.com> Content-Type: multipart/mixed; boundary="=-uWmGFDKBg6bQbe2QLS+z" Date: Tue, 08 Dec 2009 14:40:10 +0300 Message-Id: <1260272410.10986.77.camel@atlas> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Subject: Re: [xslt] xsltproc error during parallel docbook building X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2009 11:40:33 -0000 --=-uWmGFDKBg6bQbe2QLS+z Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit В Пнд, 07/12/2009 в 18:56 -0800, C Y пишет: > Hi! BRL-CAD is attempting to use xsltproc to build our docbook > documentation, and we're getting an intermittent error when doing > parallel building (e.g. firing off a lot of xsltproc commands at > once): > > xsltApplyStylesheet: saving to lessons/en/mged11_refining_mug.html may > not be possible > > it's not specific to that one file and appears to occur randomly when > a lot of xsltproc instances are running. Restarting the make process > usually immediately succeeds. Is this a known limitation of xsltproc? Can you specify the full command line? But it seems there is race condition in xsltCheckWritePath: the two processes can try to make the directory at the same time. The attached patch can solve the problem, but may cause some security risk. --=-uWmGFDKBg6bQbe2QLS+z Content-Disposition: attachment; filename="dir-eexist.patch" Content-Type: text/x-patch; name="dir-eexist.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit diff --git a/libxslt/security.c b/libxslt/security.c index b766cf7..76033aa 100644 --- a/libxslt/security.c +++ b/libxslt/security.c @@ -10,6 +10,7 @@ #include "libxslt.h" #include +#include #ifdef HAVE_SYS_TYPES_H #include @@ -342,8 +343,19 @@ xsltCheckWritePath(xsltSecurityPrefsPtr sec, } } ret = xsltCheckWritePath(sec, ctxt, directory); - if (ret == 1) + if (ret == 1) { ret = mkdir(directory, 0755); + /* The another process can create the same directory. + * I'm not sure it's a good check: it can be wise to check + * owner of the directory before continue */ + if (ret == -1 && errno == EEXIST) { + struct stat buf; + ret = stat(path, &buf); + if (ret == 0) { + ret = S_ISDIR(buf.st_mode) ? 0 : -1; + } + } + } } xmlFree(directory); if (ret < 0) --=-uWmGFDKBg6bQbe2QLS+z-- From smustudent1@yahoo.com Wed Dec 9 03:00:38 2009 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 113417500AC for ; Wed, 9 Dec 2009 03:00:38 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pcbiJ-2b+cOR for ; Wed, 9 Dec 2009 03:00:27 +0000 (GMT) Received: from web56704.mail.re3.yahoo.com (web56704.mail.re3.yahoo.com [66.196.97.63]) by menubar.gnome.org (Postfix) with SMTP id 0B50675006D for ; Wed, 9 Dec 2009 03:00:18 +0000 (GMT) Received: (qmail 90020 invoked by uid 60001); 9 Dec 2009 03:00:17 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1260327617; bh=x5gj1t0CIhxshJJUKsgpHq2uSnObZy8eT4WvCBwcv8A=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=AMFkJ7yk4gmTc87805WUqXk9gTAvn5em8knhfSOjYxsVMID5FQkybilcj7Owd780ixsT6hceU4inyL1QphWt7/IOj/v6O7X3/apWrT7RbAZqhbmULuKhkrTi/d+rgcGTp7bgSKHty3ElpeXZK83e+BBI3IyejODrJ9bn2vrnC3A= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=c9M9LDH5ktfnCywY4EMhif6QxishlEBBXttXABH3S3+D5sbJs1t5RTa5BwPNroaewrw7/H9a7yLdKidswMSHQbM8RLKYRi+txMSwUuqG0/NMRZ+VwO8ByhGa7ma8gKr5glI6aX96U0HzQb3uZlvqGc8Sr1z24S3gVdtw0upFSuA=; Message-ID: <74649.89436.qm@web56704.mail.re3.yahoo.com> X-YMail-OSG: hbpYan4VM1m2IGdDG8sRLlyhpMTBa3Tfsh8HkRrueqaCBSt5.b_5nhQglT.KVU6tH5Cy5zp.wSHZxaPUHC6oLIL2khozCfjOYuxHoQ96O7h6r_D34HKAmK05y4gFTAba5Mzs0ZOhDtWIJtaAe0Jn13EtXnrRyZAKlJvZilZXWSUI.qxlyIO19WNdKtseGTJwwFUspP5rCDsMu6781VLlQ9RdjctFWwbB5w0ZVDtDCc8aHW3oZiWUmZEBsOti6.ENSl4XrFKtsI9UfWh9ExYimAPXhAbbyD7f3mrgVXq4Y_ekA04kash7nCryFwgcNA-- Received: from [173.67.62.179] by web56704.mail.re3.yahoo.com via HTTP; Tue, 08 Dec 2009 19:00:17 PST X-Mailer: YahooMailRC/240.3 YahooMailWebService/0.8.100.260964 Date: Tue, 8 Dec 2009 19:00:17 -0800 (PST) From: C Y To: xslt@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [xslt] xsltproc error during parallel docbook building X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Dec 2009 03:00:38 -0000 > Can you specify the full command line? It was something along the lines of: XML_CATALOG_FILES=../../../brlcad/doc/docbook/catalog.xml /usr/bin/xsltproc -nonet -xinclude -o lessons/en/mged11_refining_mug.html ../../../brlcad/doc/docbook/resources/standard/xsl/xhtml-1_1/docbook.xsl ../../../brlcad/doc/docbook/lessons/en/mged11_refining_mug.xml From wellnhofer@aevum.de Tue Dec 29 18:23:02 2009 Return-Path: X-Original-To: xslt@gnome.org Delivered-To: xslt@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0DE6C750095 for ; Tue, 29 Dec 2009 18:23:02 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rXksIctTSD-r for ; Tue, 29 Dec 2009 18:22:53 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by menubar.gnome.org (Postfix) with ESMTP id 935897500AF for ; Tue, 29 Dec 2009 18:22:44 +0000 (GMT) Received: from [192.168.2.100] (e181159045.adsl.alicedsl.de [85.181.159.45]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0M4muv-1OBLFk3WIP-00yyza; Tue, 29 Dec 2009 19:22:42 +0100 Message-ID: <4B3A48EF.3050208@aevum.de> Date: Tue, 29 Dec 2009 19:22:39 +0100 From: Nick Wellnhofer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: The Gnome XSLT library mailing-list Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX181A833iAgcZ1pAvFuOq3aZVhJi6fOcNBUclDF KKbeMjGLopU7uywTWJ0qZYy3JJznisQX3pcGWX/51f2YON+VgO 7SbJu7eR47+zL7j5966bw== Subject: [xslt] Git repository with patches X-BeenThere: xslt@gnome.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: The Gnome XSLT library mailing-list List-Id: The Gnome XSLT library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2009 18:23:02 -0000 I put a git repository with my recent patches on github: http://github.com/nwellnhof/libxslt It contains two bug fixes that I already sent to the mailing list. Then two fixes for bugs 602515 and 602531, some small fixes to the locale code and some test cases. Nick