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

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


           Summary: Mono.Tasklets.Continuation: randomly generate an
                    Invalid stack frame exception
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.8.x
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10

Randomly, when using Continuation.Mark, Mono throws an Invalid stack frame
exception.
This is due to ctx and new_ctx not being initialized in
continuation_mark_frame.
As a result, depending on random memory content, sometimes mono_find_jit_info
happens to find a function matching the random ctx.esp (which should be
ignored).

Simple fix is to add in continuation_mark_frame:
ctx.eip = 0;
new_ctx.eip = 0;

Reproducible: Sometimes

Steps to Reproduce:
1. Could not reproduce a simple test case (depends on uninitialized data)

-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to