Skip to content

DumpStack/EEStack regex mismatch on macOS #5839

Closed

Description

@hoyosjs

Test: SOSStackAndOtherTests.StackAndOtherTests
Platform: MacOS_x64 (Debug and Release)
Script: src/tests/SOS.UnitTests/Scripts/StackAndOtherTests.script:212

Expected

The DumpStack VERIFY expects frames ending with , calling <target>:

VERIFY:(.*\s+<HEXVAL>\s+<HEXVAL>\s+\(MethodDesc\s+<HEXVAL>\s+(\+\s*0x<HEXVAL>\s+)?SymbolTestApp\.Program\.Foo4\(System\.String\)\),\s+calling.*\s+)|(...)

Key part: ...Foo4(System.String)),\s+calling.* — requires , calling suffix.

Actual output (from DumpStack)

00007FF7B6496020 000000010c3328d4 (MethodDesc 000000010c3f6d38 + 0x1f4 SymbolTestApp.Program.Foo4(System.String))
00007FF7B64960E0 000000010c3326b5 (MethodDesc 000000010c3f6d18 + 0x35 SymbolTestApp.Program.Foo2(Int32, System.String))
00007FF7B6496110 000000010c332658 (MethodDesc 000000010c3f6cf8 + 0x38 SymbolTestApp.Program.Foo1(Int32, System.String))
00007FF7B6496140 000000010c3318f7 (MethodDesc 000000010c3f6cd8 + 0x97 SymbolTestApp.Program.Main(System.String[]))

Foo4 and Foo2 frames do not have the , calling <target> suffix. Other non-managed frames in the same output do have it:

00007FF7B648F6D0 000000010b5cd681 (MethodDesc 000000010c6b07d0 + 0x111 System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(...)), calling libcoreclr.dylib!IL_Throw

Activity

  1. added a commit that references this issue on Aug 10, 2026
    c014870
  2. locked and limited conversation to collaborators on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions