[Mono-bugs] [Bug 468084] New: NRE calling System.Environment.StackTrace

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 21 15:07:32 EST 2009


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


           Summary: NRE calling System.Environment.StackTrace
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: x86-64
        OS/Version: RHEL 5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: generics
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: billholmes54 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=266645)
 --> (https://bugzilla.novell.com/attachment.cgi?id=266645)
File to reproduce.

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.0.5)
Gecko/2008120122 Firefox/3.0.5

Calling get_StackTrace from a thread started with a generic method causes the
bug.

In mini-exceptions.c ~597 a call to get_method_from_stack_frame is made.

actual_method = get_method_from_stack_frame (ji, &ctx);

I am guessing that the ctx argument is wrong.

Reproducible: Always

Steps to Reproduce:
1.Compile and run the attached sample.
Actual Results:  
Stacktrace:

  at (wrapper managed-to-native) System.Diagnostics.StackFrame.get_frame_info
(int,bool,System.Reflection.MethodBase&,int&,int&,string&,int&,int&) <0x0008b>
  at (wrapper managed-to-native) System.Diagnostics.StackFrame.get_frame_info
(int,bool,System.Reflection.MethodBase&,int&,int&,string&,int&,int&)
<0xffffffff>
  at System.Diagnostics.StackFrame..ctor (int,bool) <0x00067>
  at System.Diagnostics.StackTrace.init_frames (int,bool) <0x0009b>
  at System.Diagnostics.StackTrace..ctor (int,bool) <0x00023>
  at System.Environment.get_StackTrace () <0x00033>
  at GetStackTrace.Program.Test<object> (object) <0x00017>
  at (wrapper static-rgctx-invoke)
GetStackTrace.Program.static_rgctx_invoke_void_object (object) <0xffffffff>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this___object
(object,intptr,intptr,intptr) <0xffffffff>


Expected Results:  
 at System.Environment.get_StackTrace()
 at GetStackTrace.Program.Test[TT](TT test) in
D:\monoBuild\bugs\GetStackTrace\GetStackTrace\Program.cs:line 17
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)
 at System.Threading.ThreadHelper.ThreadStart(Object obj)

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