[Mono-bugs] [Bug 475481] New: XmlReader.ReadContentAsBase64() hangs in Mono on OSX
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Feb 12 19:03:05 EST 2009
https://bugzilla.novell.com/show_bug.cgi?id=475481
Summary: XmlReader.ReadContentAsBase64() hangs in Mono on OSX
Classification: Mono
Product: Mono: Class Libraries
Version: 2.2.x
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: dmitchell at logos.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us)
AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.20.1
Here's a log from the C# repl in which I replicated the problem:
Mono C# Shell, type "help;" for help
Enter statements below.
csharp> using System.IO;
csharp> using System.Xml;
csharp> var reader = XmlReader.Create(new StringReader("<root>TWFu</root>"));
csharp> reader.ReadStartElement("root");
csharp> int bufferLength = 64 * 1024;
csharp> var buffer = new byte[bufferLength];
csharp> int bytesRead = reader.ReadContentAsBase64(buffer, 0, bufferLength);
Interrupted!
System.Threading.ThreadAbortException: Thread was being aborted
at Mono.Xml2.XmlTextReader.get_NodeType () [0x00000]
at System.Xml.XmlReaderBinarySupport.ReadBase64 (System.Byte[] buffer, Int32
offset, Int32 length) [0x00000]
at System.Xml.XmlReaderBinarySupport.ReadContentAsBase64 (System.Byte[]
buffer, Int32 offset, Int32 length) [0x00000]
at System.Xml.XmlReader.ReadContentAsBase64 (System.Byte[] buffer, Int32
offset, Int32 length) [0x00000]
at System.Xml.XmlTextReader.ReadContentAsBase64 (System.Byte[] buffer, Int32
offset, Int32 length) [0x00000]
at Class4.Host (System.Object& $retval) [0x00000]
at Mono.CSharp.Evaluator.Evaluate (System.String input, System.Object&
result, System.Boolean& result_set) [0x00000]
csharp> quit;
null
(After beginning the call to ReadContentAsBase64, I pressed Ctrl+C to get the
call stack).
Reproducible: Always
Steps to Reproduce:
1. Open the C# repl
2. Enter the statements above.
Actual Results:
System hangs
Expected Results:
ReadContentAsBase64 should return the value "3", and the first three values in
buffer should be set to "77", "97", and "110".
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list