[Mono-bugs] [Bug 74878][Maj] New - Arg_InvalidUTF8 exception in System.Text.UTF8Encoding:InternalGetChars()
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 8 May 2005 23:56:01 -0400 (EDT)
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 alp@atoker.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74878
--- shadow/74878 2005-05-08 23:56:01.000000000 -0400
+++ shadow/74878.tmp.1319 2005-05-08 23:56:01.000000000 -0400
@@ -0,0 +1,73 @@
+Bug#: 74878
+Product: Mono: Runtime
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: remoting
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: alp@atoker.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Arg_InvalidUTF8 exception in System.Text.UTF8Encoding:InternalGetChars()
+
+Using this example from the remoting book:
+http://www.ingorammer.com/Book/EventsEnhanced.zip
+
+$ unzip EventsEnhanced.zip
+$ cd EventsEnhanced/Client_EventInitiator/bin/Debug
+$ mono EventInitiator.exe
+
+Unhandled Exception: System.ArgumentException: Arg_InvalidUTF8
+Parameter name: bytes
+in <0x00702> System.Text.UTF8Encoding:InternalGetChars (System.Byte[]
+bytes, Int32 byteIndex, Int32 byteCount, System.Char[] chars, Int32
+charIndex, System.UInt32 leftOverBits, System.UInt32 leftOverCount, Boolean
+throwOnInvalid, Boolean flush)
+in <0x00032> System.Text.UTF8Encoding+UTF8Decoder:GetChars (System.Byte[]
+bytes, Int32 byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex)
+in <0x0006f> System.Xml.NonBlockingStreamReader:ReadBuffer ()
+in (wrapper remoting-invoke-with-check)
+System.Xml.NonBlockingStreamReader:ReadBuffer ()
+in <0x0005a> System.Xml.NonBlockingStreamReader:Read (System.Char[]
+dest_buffer, Int32 index, Int32 count)
+in <0x00029> System.Xml.XmlTextReader:ReadTextReader ()
+in <0x0002d> System.Xml.XmlTextReader:PeekChar ()
+in <0x00075> System.Xml.XmlTextReader:ReadContent ()
+in <0x00133> System.Xml.XmlTextReader:Read ()
+in <0x0005a> System.Xml.XmlReader:MoveToContent ()
+in <0x0008c>
+System.Runtime.Serialization.Formatters.Soap.SoapReader:Deserialize
+(System.IO.Stream inStream, ISoapMessage soapMessage)
+in <0x000aa>
+System.Runtime.Serialization.Formatters.Soap.SoapFormatter:Deserialize
+(System.IO.Stream serializationStream,
+System.Runtime.Remoting.Messaging.HeaderHandler handler)
+in <0x00012>
+System.Runtime.Serialization.Formatters.Soap.SoapFormatter:Deserialize
+(System.IO.Stream serializationStream)
+in <0x00052>
+System.Runtime.Remoting.Channels.SoapClientFormatterSink:DeserializeMessage
+(System.IO.Stream responseStream, ITransportHeaders responseHeaders,
+IMethodCallMessage mcm,
+System.Runtime.Remoting.Channels.SoapMessageFormatter soapMsgFormatter)
+in <0x000f5>
+System.Runtime.Remoting.Channels.SoapClientFormatterSink:SyncProcessMessage
+(IMessage msg)
+in <0x002e8> System.Runtime.Remoting.Proxies.RemotingProxy:Invoke (IMessage
+request)
+in <0x002d3> System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke
+(System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg,
+System.Exception exc, System.Object[] out_args)
+
+
+
+This probably doesn't fall under remoting but I thought I'd file it ASAP
+and refine the bug report when I get the chance.
+
+Trivia: 04:27 <miguel55> Maybe its the same bug that was exposed in mkbundle