Skip to content

Stackoverflow at startup with CoreCLR on ios simulator x64 #128898

Description

@rolfbjarne

Description

When running an iOS project in the x64 simulator, and when using CoreCLR, the app crashes at startup with:

Stack overflow.
Repeated 1813 times:
--------------------------------
   at System.Runtime.CompilerServices.RuntimeHelpers.CallDefaultConstructor(System.Object*, Void (System.Object), System.Exception*)
--------------------------------
   at System.AppContext.Setup(Char**, Char**, Int32, System.Exception*)

Reproduction Steps

git clone https://github.com/dotnet/macios --recurse-submodules
cd macios
git checkout darc-release/11.0.1xx-preview5-ac83f574-df9a-48c9-ab93-f3bcb3a825ba
git reset --hard 51283bed16305c25c2b6c19891d8e5a365e09c71
git cherry-pick f708cd61aa348284654db81c802b9362fbc54748
git cherry-pick 0e55db3f754412b770d9ba1c3e6d630ad56ae29a
git cherry-pick 58ead49e76836ff1462fabdd7a94cc4ab04c81fa
./configure --disable-all-platforms --enable-ios
make all -j8
make install -j8
cd tests/monotouch-test/dotnet/iOS
dotnet run -r iossimulator-x64

Expected behavior

Successful app launch.

Actual behavior

Stack overflow.
Repeated 1813 times:
--------------------------------
   at System.Runtime.CompilerServices.RuntimeHelpers.CallDefaultConstructor(System.Object*, Void (System.Object), System.Exception*)
--------------------------------
   at System.AppContext.Setup(Char**, Char**, Int32, System.Exception*)

Regression?

Yes

Known Workarounds

No response

Configuration

This happens in the latest .NET 11 maestro bump:

Other information

Also happens on tvOS. Does not happen on Mac Catalyst.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions