[Mono-bugs] [Bug 52144][Nor] New - monodoc crashes with XPathException

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 13 Dec 2003 15:38:17 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jluke@cfl.rr.com.

http://bugzilla.ximian.com/show_bug.cgi?id=52144

--- shadow/52144	2003-12-13 15:38:17.000000000 -0500
+++ shadow/52144.tmp.8771	2003-12-13 15:38:17.000000000 -0500
@@ -0,0 +1,165 @@
+Bug#: 52144
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.XML
+AssignedTo: bmaurer@users.sf.net                            
+ReportedBy: jluke@cfl.rr.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: monodoc crashes with XPathException
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+With current cvs monodoc crashes in the ecma-provider is Xslt/XPath
+
+
+Steps to reproduce the problem:
+1. run monodoc P:System.String.Length
+
+Actual Results:
+$ monodoc P:System.String.Length
+free(): invalid pointer 0x427317b4!
+Trying: P:System.String.Length
+ 
+Unhandled Exception: System.Xml.XPath.XPathException: Error during
+evaluation ---> System.Xml.Xsl.XsltException: Custom function reported an
+error. ---> System.ArgumentException: parameters
+in [0x0002e] (at
+/home/jluke/cvs/mcs/class/corlib/System.Reflection/MonoMethod.cs:103)
+System.Reflection.MonoMethod:Invoke
+(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
+in [0x00006] (at
+/home/jluke/cvs/mcs/class/corlib/System.Reflection/MethodBase.cs:39)
+System.Reflection.MethodBase:Invoke (object,object[])
+in [0x0017c] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl/XsltCompiledContext.cs:366)
+Mono.Xml.Xsl.Functions.XsltExtensionFunction:Invoke
+(Mono.Xml.Xsl.XsltCompiledContext,object[],System.Xml.XPath.XPathNavigator)
+--- End of inner exception stack trace ---
+ 
+in [0x001c2] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl/XsltCompiledContext.cs:377)
+Mono.Xml.Xsl.Functions.XsltExtensionFunction:Invoke
+(Mono.Xml.Xsl.XsltCompiledContext,object[],System.Xml.XPath.XPathNavigator)
+in [0x00009] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl/XsltCompiledContext.cs:271)
+Mono.Xml.Xsl.Functions.XPFuncImpl:Invoke
+(System.Xml.Xsl.XsltContext,object[],System.Xml.XPath.XPathNavigator)
+in [0x00135] (at
+/home/jluke/cvs/mcs/class/System.XML/System.Xml.XPath/Expression.cs:1457)
+System.Xml.XPath.ExprFunctionCall:Evaluate (System.Xml.XPath.BaseIterator)
+in [0x0001a] (at
+/home/jluke/cvs/mcs/class/System.XML/System.Xml.XPath/Expression.cs:64)
+System.Xml.XPath.CompiledExpression:Evaluate (System.Xml.XPath.BaseIterator)
+--- End of inner exception stack trace ---
+ 
+in [0x0003e] (at
+/home/jluke/cvs/mcs/class/System.XML/System.Xml.XPath/Expression.cs:72)
+System.Xml.XPath.CompiledExpression:Evaluate (System.Xml.XPath.BaseIterator)
+in [0x00034] (at
+/home/jluke/cvs/mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs:189)
+System.Xml.XPath.XPathNavigator:Evaluate
+(System.Xml.XPath.XPathExpression,System.Xml.XPath.XPathNodeIterator,System.Xml.XmlNamespaceManager)
+in [0x00035] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl/XslTransformProcessor.cs:383)
+Mono.Xml.Xsl.XslTransformProcessor:Evaluate (System.Xml.XPath.XPathExpression)
+in [0x00012] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslVariable.cs:52)
+Mono.Xml.Xsl.Operations.XslVariableInformation:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in [0x0000e] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslVariable.cs:154)
+Mono.Xml.Xsl.Operations.XslLocalVariable:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in [0x0003c] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslTemplateContent.cs:161)
+Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in [0x00024] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslForEach.cs:59)
+Mono.Xml.Xsl.Operations.XslForEach:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in [0x0003c] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslTemplateContent.cs:161)
+Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in [0x00018] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslIf.cs:40)
+Mono.Xml.Xsl.Operations.XslIf:EvaluateIfTrue
+(Mono.Xml.Xsl.XslTransformProcessor)
+in [0x00025] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslChoose.cs:66)
+Mono.Xml.Xsl.Operations.XslChoose:Evaluate (Mono.Xml.Xsl.XslTransformProcessor)
+in [0x0003c] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl.Operations/XslTemplateContent.cs:161)
+Mono.Xml.Xsl.Operations.XslTemplateContent:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor)
+in [0x000ce] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl/XslTemplate.cs:335)
+Mono.Xml.Xsl.XslTemplate:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor,System.Collections.Hashtable)
+in [0x00031] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl/XslTransformProcessor.cs:207)
+Mono.Xml.Xsl.XslTransformProcessor:ApplyTemplates
+(System.Xml.XPath.XPathNodeIterator,System.Xml.XmlQualifiedName,System.Collections.ArrayList)in
+[0x00015] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl/XslTemplate.cs:359)
+Mono.Xml.Xsl.XslDefaultNodeTemplate:Evaluate
+(Mono.Xml.Xsl.XslTransformProcessor,System.Collections.Hashtable)
+in [0x00031] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl/XslTransformProcessor.cs:207)
+Mono.Xml.Xsl.XslTransformProcessor:ApplyTemplates
+(System.Xml.XPath.XPathNodeIterator,System.Xml.XmlQualifiedName,System.Collections.ArrayList)in
+[0x0011e] (at
+/home/jluke/cvs/mcs/class/System.XML/Mono.Xml.Xsl/XslTransformProcessor.cs:77)
+Mono.Xml.Xsl.XslTransformProcessor:Process
+(System.Xml.XPath.XPathNavigator,Mono.Xml.Xsl.Outputter,System.Xml.Xsl.XsltArgumentList,System.Xml.XmlResolver)
+in [0x00022] (at
+/home/jluke/cvs/mcs/class/System.XML/System.Xml.Xsl/ManagedXslTransform.cs:50)
+System.Xml.Xsl.ManagedXslTransform:Transform
+(System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter,System.Xml.XmlResolver)
+in [0x0000b] (at
+/home/jluke/cvs/mcs/class/System.XML/System.Xml.Xsl/Multiplexer.cs:154)
+System.Xml.Xsl.XslTransform:Transform
+(System.Xml.XPath.XPathNavigator,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter,System.Xml.XmlResolver)
+in [0x0000f] (at
+/home/jluke/cvs/mcs/class/System.XML/System.Xml.Xsl/Multiplexer.cs:81)
+System.Xml.Xsl.XslTransform:Transform
+(System.Xml.XPath.IXPathNavigable,System.Xml.Xsl.XsltArgumentList,System.IO.TextWriter)
+in [0x00013] (at /home/jluke/cvs/monodoc/browser/ecma-provider.cs:815)
+Monodoc.EcmaHelpSource:Htmlize
+(System.Xml.XPath.IXPathNavigable,System.Xml.Xsl.XsltArgumentList)
+in [0x0027f] (at /home/jluke/cvs/monodoc/browser/ecma-provider.cs:791)
+Monodoc.EcmaHelpSource:GetTextFromUrl (string)
+in [0x001b8] (at /home/jluke/cvs/monodoc/browser/ecma-provider.cs:526)
+Monodoc.EcmaHelpSource:RenderMemberLookup (string,string,Monodoc.Node&)
+in [0x0013c] (at /home/jluke/cvs/monodoc/browser/ecma-provider.cs:662)
+Monodoc.EcmaHelpSource:RenderTypeLookup
+(string,string,string,string,Monodoc.Node&)
+in [0x000d5] (at /home/jluke/cvs/monodoc/browser/provider.cs:940)
+Monodoc.RootTree:MemberLookup (string,string,Monodoc.Node&)
+in [0x0029c] (at /home/jluke/cvs/monodoc/browser/provider.cs:1054)
+Monodoc.RootTree:RenderUrl (string,Monodoc.Node&)
+in [0x00099] (at /home/jluke/cvs/monodoc/browser/browser.cs:331)
+Monodoc.Browser:LoadUrl (string)
+in [0x00133] (at /home/jluke/cvs/monodoc/browser/browser.cs:86)
+Monodoc.Driver:Main (string[])
+
+
+Expected Results:
+not crash
+
+How often does this happen? 
+always
+
+Additional Information:
+Assigning to Ben on his request.