[Mono-bugs] [Bug 699457] New: MbUnit crashes when mono is built in x86_64 on Darwin

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jun 12 01:44:46 EDT 2011



           Summary: MbUnit crashes when mono is built in x86_64 on Darwin
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.10.x
          Platform: x86-64
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: dmitchell at logos.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=434094)
 --> (http://bugzilla.novell.com/attachment.cgi?id=434094)
Everything needed to reproduce the test case

User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0)
AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.91 Safari/534.30

When given an assembly to test (even one without tests), MbUnit crashes when
running on mono built for x86_64 on Darwin.

Reproducible: Always

Steps to Reproduce:
1. Create a test assembly with an empty TestFixture class.
2. Compile the assembly with "mcs test.cs -r:MbUnit.Framework.dll -t:library"
3. Run MbUnit with "mono MbUnit.Cons.exe test.dll"
Actual Results:  
Mono crashes with a message similar to


  at (wrapper xdomain-dispatch) MbUnit.Core.Remoting.RemoteTestEngine.RunPipes
(object,byte[]&,byte[]&) <0xffffffff>
  at (wrapper xdomain-invoke) MbUnit.Core.Remoting.RemoteTestEngine.RunPipes ()
  at MbUnit.Core.Graph.TestDomainDependencyGraph.RunTests () <0x0088b>
  at MbUnit.Core.Cons.MainClass.Main () <0x003e0>
  at MbUnit.Core.Cons.MainClass.Main (string[]) <0x001ba>
  at MbUnit.Cons.ConsoleClass.Main (string[]) <0x00070>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    0   mono                                0x0000000108fbbef4
mono_handle_native_sigsegv + 276
    1   mono                                0x0000000108f3cdb6
mono_sigsegv_signal_handler + 198
    2   libsystem_c.dylib                   0x00007fff8c49bcfa _sigtramp + 26
    3   mono                                0x000000010927b948 loader_mutex + 8
    4   ???                                 0x000000010ca9e4a3 0x0 + 4507428003
    5   ???                                 0x000000010ca9e280 0x0 + 4507427456
    6   ???                                 0x000000010c98c8f3 0x0 + 4506306803
    7   ???                                 0x000000010a2491b1 0x0 + 4465136049
    8   ???                                 0x000000010a1e993b 0x0 + 4464744763
    9   ???                                 0x000000010979ac51 0x0 + 4453936209
    10  ???                                 0x000000010979adfd 0x0 + 4453936637
    11  mono                                0x0000000108f40311
mono_jit_runtime_invoke + 1921
    12  mono                                0x0000000109099cab
mono_runtime_invoke + 107
    13  mono                                0x000000010909d633
mono_runtime_exec_main + 371
    14  mono                                0x0000000108f97edc mono_main + 8172
    15  mono                                0x0000000108f3a3b4 start + 52

Debug info from gdb:

/tmp/mono-gdb-commands.vT5g4c:1: Error in sourced command file:
unable to debug self

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

Abort trap: 6

Expected Results:  
Mono should not crash running this program.

I'm attaching a zip file that contains the MbUnit binaries, as well as a source
file (test.cs) that contains an empty test fixture.

To use it, first compile mono in x86_64 mode on Darwin. Then compile the source
file and run MbUnit as described in "Steps to Reproduce"

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