[Mono-bugs] [Bug 338370] New: Weird parsing error CS8025: Arg_InsufficientSpace
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Nov 1 08:24:48 EDT 2007
https://bugzilla.novell.com/show_bug.cgi?id=338370
Summary: Weird parsing error CS8025: Arg_InsufficientSpace
Product: Mono: Compilers
Version: 1.2
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at ximian.com
ReportedBy: daniel at hofmannmail.ath.cx
QAContact: mono-bugs at ximian.com
Found By: ---
Yesterday I updated to revision 88466 of Mono/Mcs-SVN and noticed a strange
behavior of gmcs when compiling my project.
A gmcs-command that ususally worked (with some earlier svn revision, and
definitely works with the official 1.2.5.1-Release) invoked with no special
options (only references, resources, target, out and input files)
always gave me this:
Example1/TTest2/TTest2.cs(1584,31): error CS8025: Parsing error
and aborted.
With rev. 88583 I still get the same behaviour.
The weird thing about it is, that the parsing error goes away if I make an
(almost random) change to the Sourcefile TTest2.cs. E.g. an extra NewLine
somewhere in the code or even a singe letter added to some comment makes the
error go away.
Invoking the same gmcs-command with the -v option leads to the stacktrace given
below. I hope it won't be necessary to provide the file causing the error
itself, because it is deeply nested within my project and every change makes
the error go away.
If it helps in any way, here's the output of "file TTest2.cs"
TTest2.cs: ISO-8859 C++ program text, with very long lines, with CRLF line
terminators
---------------------------------------------------------------------------------
Example1/TTest2/TTest2.cs(1584,31): error CS8025: Parsing error
System.ArgumentException: Arg_InsufficientSpace
Parameter name: chars
at System.Text.UTF8Encoding.InternalGetChars (System.Byte* bytes, Int32
byteCount, System.Char* chars, Int32 charCount, System.UInt32& leftOverBits,
System.UInt32& leftOverCount, System.Object provider,
System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]& bufferArg,
Boolean flush) [0x00000]
at System.Text.UTF8Encoding.InternalGetChars (System.Byte[] bytes, Int32
byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex,
System.UInt32& leftOverBits, System.UInt32& leftOverCount, System.Object
provider, System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]&
bufferArg, Boolean flush) [0x00000]
at System.Text.UTF8Encoding+UTF8Decoder.GetChars (System.Byte[] bytes, Int32
byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex) [0x00000]
at System.IO.StreamReader.ReadBuffer () [0x00000]
at System.IO.StreamReader.Read (System.Char[] dest_buffer, Int32 index, Int32
count) [0x00000]
at Mono.CSharp.SeekableStreamReader.ReadBuffer () [0x00000]
at Mono.CSharp.SeekableStreamReader.Read () [0x00000]
at Mono.CSharp.Tokenizer.get_char () [0x00000]
at Mono.CSharp.Tokenizer.consume_identifier (Int32 s, Boolean quoted)
[0x00000]
at Mono.CSharp.Tokenizer.consume_identifier (Int32 s) [0x00000]
at Mono.CSharp.Tokenizer.xtoken () [0x00000]
at Mono.CSharp.Tokenizer.token () [0x00000]
at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
at Mono.CSharp.CSharpParser.parse () [0x00000]
--
Configure bugmail: https://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.
More information about the mono-bugs
mailing list