[Mono-bugs] [Bug 696863] New: --gc=sgen option on Amazon ec2 causes Assertion

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 30 02:34:37 EDT 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=696863#c0


           Summary: --gc=sgen option on Amazon ec2 causes Assertion
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.10.x
          Platform: 32bit
        OS/Version: Ubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: GC
        AssignedTo: lupus at novell.com
        ReportedBy: peter at bcode.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Description of Problem:
Enabling the sgen garbage collector on an ec2 instance causes Assertion when
starting the program.

Steps to reproduce the problem:
1. Create simple hello world console app

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace sgenbug
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!!");
        }
    }
}

2. Compile mcs hello.cs
3. Run mono --gc=sgen hello.exe


Actual Results:
* Assertion at tramp-x86.c:887, condition `code - buf <= tramp_size' not met

Stacktrace:

  at System.Console..cctor () <0x000e3>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
  at sgenbug.Program.Main (string[]) <0x00015>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    mono-sgen() [0x80e13d4]
    [0xb774d40c]
    /lib/libc.so.6(abort+0x182) [0xb75ddab2]
    mono-sgen() [0x823d577]
    mono-sgen() [0x823d5b4]
    mono-sgen() [0x812c9b7]
    mono-sgen() [0x80e340b]
    mono-sgen() [0x805d2ed]
    mono-sgen() [0x811391e]
    mono-sgen() [0x805cbc4]
    mono-sgen() [0x8060b8b]
    mono-sgen() [0x8061f68]
    mono-sgen() [0x806288e]
    mono-sgen() [0x80e50ad]
    [0xb7434066]
    [0xb714946f]
    mono-sgen() [0x8062978]
    mono-sgen(mono_runtime_invoke+0x40) [0x81ab120]
    mono-sgen() [0x81b2a0e]
    mono-sgen() [0x806228d]
    mono-sgen() [0x806288e]
    mono-sgen() [0x80e50ad]
    [0xb7434066]
    [0xb7148de4]
    mono-sgen() [0x8062978]
    mono-sgen(mono_runtime_invoke+0x40) [0x81ab120]
    mono-sgen(mono_runtime_exec_main+0xd6) [0x81aee96]
    mono-sgen(mono_main+0x1845) [0x80bc7f5]
    mono-sgen() [0x805914a]
    /lib/libc.so.6(__libc_start_main+0xe6) [0xb75c6bc6]
    mono-sgen() [0x8058f91]

Debug info from gdb:


=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================



Expected Results:
Hello World!!

How often does this happen? 
Every time

Additional Information:
Runs fine without --gc=sgen.  Runs fine on a local "VirtualBox" ubuntu
instance.

Have tried with the opensuse 11.4 ec2 instance and will work with default 2.8
version but enabling 2.10.2 version as described on
http://www.go-mono.com/mono-downloads/download.html will cause failure.

mono -V
Mono JIT compiler version 2.10.2 (Debian 2.10.2-2)
Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  x86
    Disabled:      none
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            Included Boehm (with typed GC and Parallel Mark)

mono --gc=sgen -V
Mono JIT compiler version 2.10.2 (Debian 2.10.2-2)
Copyright (C) 2002-2011 Novell, Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  x86
    Disabled:      none
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            sgen

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