[Mono-bugs] [Bug 664249] The runtime crashes when an NRE is raised from native code during variable evaluation.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 22 06:59:31 EST 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=664249#c4


--- Comment #4 from Zoltan Varga <vargaz at gmail.com> 2011-02-22 11:59:30 UTC ---
I tried reproducing it with:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

__declspec(dllexport)
void Foo ()
{
    printf ("HIT!\n");
    void* exception = mono_exception_from_name_msg (mono_get_corlib
(), "System", "NullReferenceException", "");
    mono_raise_exception (exception);
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

and:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
using System;
using System.Runtime.InteropServices;

public class Tests
{
    // C# Code
    [DllImport("blah")]
    public static extern void Foo ();

    public static void Main () {
        //Foo ();
    }
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

and invoking 'Foo' using the sdb api seems to work fine in HEAD.

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