Skip to content

Mono.Android-Tests crash when AOT is enabled #56315

Closed
@jonathanpeppers

Description

@jonathanpeppers

Description

We're hitting a test causes the test app to crash when using -p:RunAOTCompilation=true, but it works fine with JIT:

********** Crash dump: **********
Build fingerprint: 'google/sdk_gphone_x86_64/generic_x86_64:9/PSR1.180720.075/5124027:user/release-keys'
#00 0x00059eac /data/app/Mono.Android.NET_Tests-vtnerz4bHqSkZSQWYCTLvw==/lib/x86/libmonosgen-2.0.so
ves_icall_System_IO_Stream_HasOverriddenBeginEndWrite
/__w/1/s\src/mono/mono/metadata/icall.c:3261:38
ves_icall_System_IO_Stream_HasOverriddenBeginEndWrite_raw
/__w/1/s\src/mono/mono/metadata/icall-def-netcore.h:128:0
#01 0x0000d84f <anonymous:e25e6000>
Crash dump is completed

It seems to happen during this test:

07-26 10:50:51.003  8393  8410 I NUnit   : Redirect_POST_With_Content_Works 

https://github.com/xamarin/xamarin-android/blob/e4debf72015549e6e19cbfb247a47fead6ce7a01/tests/Mono.Android-Tests/Xamarin.Android.Net/AndroidClientHandlerTests.cs#L387-L408

Configuration

dotnet --version
6.0.100-rc.1.21372.10

Runtime version:

~\.nuget\packages\microsoft.netcore.app.runtime.mono.android-x86\6.0.0-rc.1.21372.1\runtimes\android-x86\native\libmonosgen-2.0.so

Regression?

No, Android AOT is new.

Other information

Full logcat output: aot.txt

/cc @steveisok

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions