[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.


--- 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 Details: 
+Status: NEW   
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lluis@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+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
+Get the attached wsdl and copy it into 
+Then cd to mcs/class/System.Web.Services/Test/standalone and run:
+wsdl /nologo /namespace:Credit_ApprovalTests.Soap /protocol:Soap
+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
+and in the line 1085 add:
+Console.WriteLine ("This should be string:" + typeMap.ElementName.GetType());
+Then define this: 
+and run wsdl again using the same parameters. It turns out that ElementName
+returns an ArrayList instead of an string.