http://bugzilla.novell.com/show_bug.cgi?id=503435
Summary: BinaryFormatter.Deserialize attempts to set stream
Position (causes exception with BZip2InputStream)
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: All
OS/Version: openSUSE 11.1
Status: NEW
Severity: Major
Priority: P5 - None
Component: System
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: ---
Created an attachment (id=291876)
--> (http://bugzilla.novell.com/attachment.cgi?id=291876)
Reproducible test case (source code with Makefile and required SharpZipLib
assembly)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10)
Gecko/2009042700 SUSE/3.0.10-2.1 Firefox/3.0.10
The attached code runs fine on Windows with .NET 3.5, but produces the
following result with Mono 2.4:
taskData.Length=256
Unhandled Exception: System.NotSupportedException: BZip2InputStream position
cannot be set
at ICSharpCode.SharpZipLib.BZip2.BZip2InputStream.set_Position (Int64 value)
[0x00000]
at System.IO.BinaryReader.PeekChar () [0x00000]
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000]
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
(System.IO.Stream serializationStream) [0x00000]
at Test.Deserialize (System.Byte[] taskState) [0x00000]
at Test.Main (System.String[] args) [0x00000]
Reproducible: Always
Steps to Reproduce:
1. Extract contents of attachment
2. Compile using provided Makefile
3. Run OneOff.exe (no arguments)
We currently rely on the ability to serialize to a compressed byte stream using
SharpZipLib, so this bug is preventing us from further testing with Mono.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs