Skip to content

[macOS] StackOverflowException in Csc #12088

Closed

Description

@echesakov

This started appearing pretty recently on macOS during Pri1 test build

https://dev.azure.com/dnceng/public/_build/results?buildId=102238&view=logs

/Users/vsts/agent/2.147.1/work/1/s/packages/microsoft.netcore.compilers/3.0.0-beta3-final/tools/Microsoft.CSharp.Core.targets(52,5): error : Process is terminating due to StackOverflowException. [/Users/vsts/agent/2.147.1/work/1/s/tests/src/Loader/classloader/generics/Instantiation/Nesting/NestedGenericClasses.csproj]
/Users/vsts/agent/2.147.1/work/1/s/packages/microsoft.netcore.compilers/3.0.0-beta3-final/tools/Microsoft.CSharp.Core.targets(52,5): error : Process is terminating due to StackOverflowException. [/Users/vsts/agent/2.147.1/work/1/s/tests/src/Loader/classloader/generics/Instantiation/Nesting/NestedGenericTypesMix.csproj]
/Users/vsts/agent/2.147.1/work/1/s/packages/microsoft.netcore.compilers/3.0.0-beta3-final/tools/Microsoft.CSharp.Core.targets(52,5): error : Process is terminating due to StackOverflowException. [/Users/vsts/agent/2.147.1/work/1/s/tests/src/Loader/classloader/generics/Instantiation/Nesting/NestedGenericStructs.csproj]
/Users/vsts/agent/2.147.1/work/1/s/tests/dir.traversal.targets(25,5): error : (No message specified) [/Users/vsts/agent/2.147.1/work/1/s/tests/src/dirs.proj]

packages/microsoft.netcore.compilers/3.0.0-beta3-final/tools/Microsoft.CSharp.Core.targets(52,5) corresponds to call to Csc task

I am not sure if this belongs to https://github.com/dotnet/coreclr/ repo or https://github.com/dotnet/roslyn/ but put it here for an initial investigation.

Activity

  1. echesakov commented on Jun 14, 2019

    @echesakov
    ContributorAuthor

    These tests were disabled in dotnet/coreclr#22774

  2. RussKeldorph commented on Jun 14, 2019

    @RussKeldorph
    Contributor

    @jashook Could you check if we've picked up a fixed Roslyn and reenable the test build if so?

  3. jashook commented on Jun 14, 2019

    @jashook
    Contributor

    Sure will do.

  4. janvorli commented on Jun 17, 2019

    @janvorli
    Member

    We may want to use COMPlus_DefaultStackSize for our tests to override the default secondary stack size on OSX. It is only 512kB on OSX (as defined by the OS). The Linux default size is 2MB (see http://man7.org/linux/man-pages/man3/pthread_create.3.html#NOTES).

  5. janvorli commented on Jun 17, 2019

    @janvorli
    Member

    Or, maybe better, make sure Roslyn works fine with that stack size Limit on OSX.

  6. added a commit that references this issue on Jun 17, 2019
  7. transferred this issue fromdotnet/coreclron Jan 31, 2020
  8. added this to the 5.0 milestone on Jan 31, 2020
  9. modified the milestones: 5.0.0, Future on Jul 20, 2020
  10. dotnet-policy-service commented on Jan 19, 2025

    @dotnet-policy-service
    Contributor

    Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.

    This process is part of our issue cleanup automation.

  11. added
    backlog-cleanup-candidate
    on Jan 19, 2025
  12. dotnet-policy-service commented on Feb 3, 2025

    @dotnet-policy-service
    Contributor

    This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.

  13. removed this from the Future milestone on Feb 3, 2025
  14. locked and limited conversation to collaborators on Mar 5, 2025
  15. removed
    backlog-cleanup-candidate
    on Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-x64area-Infrastructure-coreclrdisabled-testos-macos

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions