[Mono-bugs] [Bug 54929][Wis] New - Memory corruption induced by OP_GETCHR

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 27 Feb 2004 08:57:46 -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 lluis@ximian.com.

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

--- shadow/54929	2004-02-27 08:57:46.000000000 -0500
+++ shadow/54929.tmp.7162	2004-02-27 08:57:46.000000000 -0500
@@ -0,0 +1,51 @@
+Bug#: 54929
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lluis@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Memory corruption induced by OP_GETCHR
+
+There seems to be some sort of memory corruption induced by the
+implementation of the OP_GETCHR opcode.
+
+Steps to reproduce the problem:
+The problem can be reproduced with the wsdl tool. However, it only fails
+when using a specific list of options and when running from a specific
+directory.
+
+Get the attached wsdl and copy it into 
+mcs/class/System.Web.Services/Test/standalone/wsdlcache/ewsdemo.webmethods.com
+
+Then cd to mcs/class/System.Web.Services/Test/standalone and run:
+
+wsdl /nologo /namespace:Credit_ApprovalTests.Soap /protocol:Soap
+./wsdlcache/ewsdemo.webmethods.com/Credit_ApprovalTest.wsdl
+
+This should work, but you will get the following exception (at least, I do): 
+System.InvalidOperationException: <body
+xmlns='http://schemas.xmlsoap.org/wsdl/soap/'> was not expected
+
+Notice that if you change the location of the file, it works.
+If I disable the OP_GETCHR, it works.
+
+You can do another test. Edit the file
+mcs/class/System.Xml/System.Xml.Serialization/SerializationCodeGenerator.cs,
+and in the line 1085 add:
+Console.WriteLine ("This should be string:" + typeMap.ElementName.GetType());
+
+Then define this: 
+export MONO_XMLSERIALIZER_THS=0
+
+and run wsdl again using the same parameters. It turns out that ElementName
+returns an ArrayList instead of an string.