[Mono-bugs] [Bug 580086] Running mod_mono from svn on apache gives constant "Abnormal string size" exceptions

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 16 04:18:52 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=580086

http://bugzilla.novell.com/show_bug.cgi?id=580086#c3


--- Comment #3 from Asgeir Halldorsson <asgeir.halldorsson at dempseyclark.is> 2010-02-16 09:18:50 UTC ---
Sorry about the priority and I will keep that in mind for further submissions
;)

For me to reproduce this problem is easy its happens always with trunk version
of Mono (Might be revision 148995 that caused this).  The exact problem is that
xsp reads from mono the following:

1. Packet size + protocol version (5 bytes in total) (Goes good)
2. Fills the buffer for the rest.  But (here comes the issue)

The read from mod_mono is good but as it is putting it into the byte array of
MemoryStream directly.  When MemoryStream.SetLength is called it clears the
first (5 bytes) from the array.

This causes GetString() method to throw "Abnormal string size" exception.

I know this is an issue with MemoryStream.cs but I also think ModMonoRequest
should not assume how MemoryStream handles it internal buffer.

Another note:
My patch is not perfect as it should reuse the buffer that is used for reading
from the buffer. So I am attaching another patch to fix that (Includes prev
patch).

-- 
Configure bugmail: http://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