Skip to content

calling System.Environment.StackTrace fails on Mac OS X #3985

@cnblogs-dudu

Description

@cnblogs-dudu

follow dotnet/coreclr#284, use the following console app:

using System;
class Program
    {
        static void A()
        {
            B();
        }

        static void B()
        {
            C();
        }

        static void C()
        {
            D();
        }

        static void D()
        {
            Console.WriteLine(System.Environment.StackTrace);
        }

        static void Main(string[] args)
        {
            A();
        }
    }

coreun it and get the following failures:

Compiling  245 System.Runtime.CompilerServices.JitHelpers::UnsafeCastToStackPointer, 
IL size = 25, hsh=0x99a90445
Assert failure (unable to format)
/git/dotnet/coreclr/src/vm/stackwalktypes.h
SPOffset >= pUnwindInfo->RSPOffsetFromUnwindInfo
**** MessageBox invoked, title 'Assert failure (unable to format)' ****
  SPOffset >= pUnwindInfo->RSPOffsetFromUnwindInfo
********

Assert failure (unable to format)
/git/dotnet/coreclr/src/vm/stackwalktypes.h
FitsIn<DWORD>(pUnwindInfo->RBPOffset + (SPOffset - pUnwindInfo->RSPOffsetFromUnwindInfo))
**** MessageBox invoked, title 'Assert failure (unable to format)' ****
  FitsIn<DWORD>(pUnwindInfo->RBPOffset + (SPOffset - pUnwindInfo->RSPOffsetFromUnwindInfo))
********

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions