[Mono-bugs] [Bug 414845] [PS3/PPC] Bootstraping MCS failed when making Mono from source

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Sep 11 08:03:46 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=414845

User vwvw at yandex.ru added comment
https://bugzilla.novell.com/show_bug.cgi?id=414845#c11





--- Comment #11 from Alexander Petrov <vwvw at yandex.ru>  2008-09-11 06:03:46 MDT ---
I have proceed further and found that the problem is with the compiling
of long (19 digits) constants as in the following fragment of code

//
// expression.cs: Expression representation for the IL tree.
//
// Author:
//   Miguel de Icaza (miguel at ximian.com)
//   Marek Safar (marek.safar at gmail.com)
//

        using System;

        //
        //   Unary implements unary expressions.
        //
        public class Unary { //   : Expression {

                void TryReduceConstant ( )
                {
                  ulong  long_constant = 9223372036854775808; 
                }

        }


I tried to compile the above code under Mono 2.0 RC1 and SVN mono-112691 trunk.
The results, in fact, are the same:

$ MONO_PATH="/home/user002/mono-112691/mcs/class/lib/monolite:$MONO_PATH"
/home/user002/mono-112691/runtime/mono-wrapper 
/home/user002/mono-112691/mcs/class/lib/monolite/mcs.exe -v expr3.cs
** Message: Unknown errno: Success

System.IO.IOException: Win32 IO returned ERROR_GEN_FAILURE. Path: expr3.cs
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32
offset, Int32 count) [0x00000]
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32
count) [0x00000]
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count)
[0x00000]
  at System.IO.StreamReader.ReadBuffer () [0x00000]
  at System.IO.StreamReader.Read (System.Char[] 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.xtoken () [0x00000]
  at Mono.CSharp.Tokenizer.token () [0x00000]
  at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
  at Mono.CSharp.CSharpParser.parse () [0x00000] ** Message: Unknown errno:
Unknown error 897

System.IO.IOException: Win32 IO returned ERROR_GEN_FAILURE. Path: expr3.cs
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32
offset, Int32 count) [0x00000]
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32
count) [0x00000]
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count)
[0x00000]
  at System.IO.StreamReader.ReadBuffer () [0x00000]
  at System.IO.StreamReader.Read (System.Char[] 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.xtoken () [0x00000]
  at Mono.CSharp.Tokenizer.token () [0x00000]
  at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
  at Mono.CSharp.CSharpParser.parse () [0x00000] ** Message: Unknown errno:
Unknown error 897

expr3.cs(32,1): error CS8032: Internal compiler error during parsing, Run with
-v for details** Message: Unknown errno: Protocol not supported

expr3.cs(32,1): error CS8032: Internal compiler error during parsing, Run with
-v for details** Message: Unknown errno: Protocol not supported

System.IO.IOException: Win32 IO returned ERROR_GEN_FAILURE. Path: expr3.cs
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32
offset, Int32 count) [0x00000]
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32
count) [0x00000]
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count)
[0x00000]
  at System.IO.StreamReader.ReadBuffer () [0x00000]
  at System.IO.StreamReader.Read (System.Char[] 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.xtoken () [0x00000]
  at Mono.CSharp.Tokenizer.token () [0x00000]
  at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
  at Mono.CSharp.CSharpParser.parse () [0x00000] ** Message: Unknown errno:
Unknown error 897

System.IO.IOException: Win32 IO returned ERROR_GEN_FAILURE. Path: expr3.cs
  at System.IO.FileStream.ReadData (IntPtr handle, System.Byte[] buf, Int32
offset, Int32 count) [0x00000]
  at System.IO.FileStream.ReadInternal (System.Byte[] dest, Int32 offset, Int32
count) [0x00000]
  at System.IO.FileStream.Read (System.Byte[] array, Int32 offset, Int32 count)
[0x00000]
  at System.IO.StreamReader.ReadBuffer () [0x00000]
  at System.IO.StreamReader.Read (System.Char[] 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.xtoken () [0x00000]
  at Mono.CSharp.Tokenizer.token () [0x00000]
  at Mono.CSharp.CSharpParser.yyparse (yyInput yyLex) [0x00000]
  at Mono.CSharp.CSharpParser.parse () [0x00000] ** Message: Unknown errno:
Unknown error 897


** ERROR **: file mini.c: line 13987 (remove_signal_handler): assertion failed:
(sigaction (signo, &sa, NULL) != -1)
aborting...
Stacktrace:


Native stacktrace:

        /home/user002/mono-112691/mono/mini/mono [0x10028264]
        [0x100350]
        [0x1]
        /lib/libc.so.6(abort+0x23c) [0xfd17ddc]
        /lib/libglib-2.0.so.0(g_logv+0x424) [0xfc124b4]
        /lib/libglib-2.0.so.0(g_log+0x68) [0xfc12528]
        /lib/libglib-2.0.so.0(g_assert_warning+0x8c) [0xfc125cc]
        /home/user002/mono-112691/mono/mini/mono [0x1015eb50]
        /home/user002/mono-112691/mono/mini/mono [0x1015ebd0]
        /home/user002/mono-112691/mono/mini/mono(mono_main+0x108c) [0x10012a7c]
        /home/user002/mono-112691/mono/mini/mono [0x100112c0]
        /lib/libc.so.6 [0xfcfde0c]
        /lib/libc.so.6 [0xfcfe060]

** (process:26853): ERROR (recursed) **: file mini-exceptions.c: line 1280
(mono_handle_native_sigsegv): assertion failed: (res != -1)
aborting...
Aborted


Constants with 18 digits, like 922337203685477580,  are handled well:

$ MONO_PATH="/home/user002/mono-112691/mcs/class/lib/monolite:$MONO_PATH"
/home/user002/mono-112691/runtime/mono-wrapper 
/home/user002/mono-112691/mcs/class/lib/monolite/mcs.exe -v expr3.cs
expr3.cs(23,26): warning CS0219: The variable `long_constant' is assigned but
its value is never used
expr3.cs(21,22): warning CS0169: The private method
`Mono.CSharp.Unary.TryReduceConstant()' is never used
error CS5001: Program `expr3.exe' does not contain a static `Main' method
suitable for an entry point
Compilation failed: 1 error(s), 2 warnings


-- 
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