[Mono-bugs] [Bug 473482] New: Isolated another Moq related VM bug.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Feb 6 13:23:31 EST 2009


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


           Summary: Isolated another Moq related VM bug.
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: basjsmit at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6)
Gecko/2009011913 Firefox/3.0.6

using System;

public class Program
{
    static void Main()
    {
        try
        {
            new Foo<object>(0, 0);
        }
        catch (Exception ex)
        {
          var t = ex.StackTrace;
        }
    }
}

public class Foo<T> : FooBase
{
    int i;
    int ii;

    public Foo(int i, int ii)
    {
        this.i = i;
        this.ii = ii;
        this.iii = 0;
        throw new Exception();
    }
}

public abstract class FooBase
{
    protected int iii;
}



Reproducible: Always

Steps to Reproduce:
1.Compile code above
2.Run


Actual Results:  
Stacktrace:

  at (wrapper managed-to-native) System.Diagnostics.StackTrace.get_trace
(System.Exception,int,bool) <0x00004>
  at (wrapper managed-to-native) System.Diagnostics.StackTrace.get_trace
(System.Exception,int,bool) <0xffffffff>
  at System.Diagnostics.StackTrace..ctor (System.Exception,int,bool,bool)
<0x00032>
  at System.Exception.get_StackTrace () <0x0004c>
  at Program.Main () <0x0004a>
  at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

    /mono02/bin/mono [0x80d4c94]
    /mono02/bin/mono [0x80f974b]
    [0xb7f6d410]
    /mono02/bin/mono [0x80d2dc2]
    /mono02/bin/mono [0x80d2fc6]
    [0xb7097b55]
    [0xb7097923]
    [0xb709758d]
    [0xb70972cb]
    [0xb70971fa]
    /mono02/bin/mono(mono_runtime_exec_main+0xe5) [0x8101cf5]
    /mono02/bin/mono(mono_runtime_run_main+0x16b) [0x810249b]
    /mono02/bin/mono(mono_main+0x18fa) [0x80b3b2a]
    /mono02/bin/mono [0x805b0a1]
    /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7cf0685]
    /mono02/bin/mono [0x805afd1]

Debug info from gdb:

[Thread debugging using libthread_db enabled]
[New Thread 0xb7cae6d0 (LWP 5566)]
[New Thread 0xb6cd9b90 (LWP 5569)]
[New Thread 0xb6cfdb90 (LWP 5568)]
[New Thread 0xb7b7bb90 (LWP 5567)]
0xb7f6d430 in __kernel_vsyscall ()
  4 Thread 0xb7b7bb90 (LWP 5567)  0xb7f6d430 in __kernel_vsyscall ()
  3 Thread 0xb6cfdb90 (LWP 5568)  0xb7f6d430 in __kernel_vsyscall ()
  2 Thread 0xb6cd9b90 (LWP 5569)  0xb7f6d430 in __kernel_vsyscall ()
  1 Thread 0xb7cae6d0 (LWP 5566)  0xb7f6d430 in __kernel_vsyscall ()

Thread 4 (Thread 0xb7b7bb90 (LWP 5567)):
#0  0xb7f6d430 in __kernel_vsyscall ()
#1  0xb7e68075 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/i686/cmov/libpthread.so.0
#2  0x081d8d19 in GC_wait_marker () at pthread_support.c:1777
#3  0x081deed3 in GC_help_marker (my_mark_no=2) at mark.c:1116
#4  0x081d7afd in GC_mark_thread (id=0x0) at pthread_support.c:548
#5  0xb7e6450f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#6  0xb7dbb7ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xb6cfdb90 (LWP 5568)):
#0  0xb7f6d430 in __kernel_vsyscall ()
#1  0xb7e6b906 in nanosleep () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x081b7378 in collection_thread (unused=0x0) at collection.c:34
#3  0xb7e6450f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4  0xb7dbb7ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb6cd9b90 (LWP 5569)):
#0  0xb7f6d430 in __kernel_vsyscall ()
#1  0xb7e6a405 in sem_wait@@GLIBC_2.1 () from
/lib/tls/i686/cmov/libpthread.so.0
#2  0x0810b589 in finalizer_thread (unused=0x0) at gc.c:936
#3  0x081a1768 in start_wrapper (data=0x8556500) at threads.c:624
#4  0x081c7066 in thread_start_routine (args=0x8559144) at threads.c:286
#5  0x081d89ab in GC_start_routine (arg=0x35f20) at pthread_support.c:1382
#6  0xb7e6450f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0xb7dbb7ee in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb7cae6d0 (LWP 5566)):
#0  0xb7f6d430 in __kernel_vsyscall ()
#1  0xb7e6b10b in read () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x080d4e36 in mono_handle_native_sigsegv (signal=11, ctx=0xb737ad0c) at
/usr/include/bits/unistd.h:45
#3  0x080f974b in mono_arch_handle_altstack_exception (sigctx=0xb737ad0c,
fault_addr=0x83ec8b55, stack_ovf=0)
    at exceptions-x86.c:864
#4  <signal handler called>
#5  0x080d2a54 in get_generic_context_from_stack_frame (ji=0x853c8cc,
generic_info=<value optimized out>)
    at mini-exceptions.c:297
#6  0x080d2dc2 in get_method_from_stack_frame (ji=0x853c8cc,
generic_info=0xb7097520) at mini-exceptions.c:325
#7  0x080d2fc6 in ves_icall_get_trace (exc=0x52f18, skip=0, need_file_info=1
'\001') at mini-exceptions.c:411
#8  0xb7097b55 in ?? ()
#9  0xb7097923 in ?? ()
#10 0xb709758d in ?? ()
#11 0xb70972cb in ?? ()
#12 0xb70971fa in ?? ()
#13 0x08101cf5 in mono_runtime_exec_main (method=0x853dcd4, args=0x3be70,
exc=0x0) at object.c:3308
#14 0x0810249b in mono_runtime_run_main (method=0x853dcd4, argc=-1081676648,
argv=0xbf86ee98, exc=0x0) at object.c:3088
#15 0x080b3b2a in mono_main (argc=2, argv=0xbf86ee94) at driver.c:969
#16 0x0805b0a1 in main (argc=-2081649835, argv=0x458b08ec) at main.c:34
#0  0xb7f6d430 in __kernel_vsyscall ()

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

Aborted




Expected Results:  
Regular execution

Works on .NET, fails on windows 2.4 preview 2 and trunk (r125905) on ubuntu.

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