Skip to content

[Android][mono] Missing libSystem.Security.Cryptography.Native.Android.so causes JIT.Static.Test crashes across all architectures #115692

@matouskozak

Description

@matouskozak

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1043927

Build error leg or test failing: Android.Device_Emulator.JIT.Static.Test

Affected CI jobs: android_x64_release_allsubsets_mono, android_x86_release_allsubsets_mono, android_arm64_release_allsubsets_mono, android_arm_release_allsubsets_mono

Commit range: N/A (No non-failing run found to determine commit range)

Extracted Error Log

05-16 22:18:53.048 19319 19319 E AndroidRuntime: FATAL EXCEPTION: main
05-16 22:18:53.048 19319 19319 E AndroidRuntime: Process: net.dot.Android.Device_Emulator.JIT.Static.Test, PID: 19319
05-16 22:18:53.048 19319 19319 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/net.dot.Android.Device_Emulator.JIT.Static.Test-rXa6Beq_LfjSFbKrMnokNw==/base.apk"],nativeLibraryDirectories=[/data/app/net.dot.Android.Device_Emulator.JIT.Static.Test-rXa6Beq_LfjSFbKrMnokNw==/lib/x86, /data/app/net.dot.Android.Device_Emulator.JIT.Static.Test-rXa6Beq_LfjSFbKrMnokNw==/base.apk!/lib/x86, /system/lib]]] couldn't find "libSystem.Security.Cryptography.Native.Android.so"
05-16 22:18:53.048 19319 19319 E AndroidRuntime: 	at java.lang.Runtime.loadLibrary0(Runtime.java:1067)
05-16 22:18:53.048 19319 19319 E AndroidRuntime: 	at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
05-16 22:18:53.048 19319 19319 E AndroidRuntime: 	at java.lang.System.loadLibrary(System.java:1667)
05-16 22:18:53.048 19319 19319 E AndroidRuntime: 	at net.dot.MonoRunner.<clinit>(MonoRunner.java:37)
XHarness exit code: 80 (APP_CRASH)

Error Message

{
  "ErrorPattern": "java\\.lang\\.UnsatisfiedLinkError.+ \\\"libSystem\\.Security\\.Cryptography\\.Native\\.Android\\.so\\\"",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Description

The Android.Device_Emulator.JIT.Static.Test is failing across all Android architectures (x86, x64, arm, arm64) with a native library loading error. The application crashes immediately on startup because it cannot find the required native cryptography library libSystem.Security.Cryptography.Native.Android.so.

This issue appears to be related to packaging or distribution of native libraries in the Android test APK rather than an actual test logic failure. The test never reaches the execution phase because the application crashes during initialization.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1043927
Error message validated: [java.lang.UnsatisfiedLinkError "libSystem.Security.Cryptography.Native.Android.so"]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 5/18/2025 7:06:37 AM UTC

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1043927
Error message validated: [java\.lang\.UnsatisfiedLinkError.+ \"libSystem\.Security\.Cryptography\.Native\.Android\.so\"]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/18/2025 7:32:41 AM UTC

Report

Build Definition Test Pull Request
1044671 dotnet/runtime Android.Device_Emulator.JIT.Static.Test.WorkItemExecution
1044548 dotnet/runtime Android.Device_Emulator.JIT.Static.Test.WorkItemExecution
1043927 dotnet/runtime Android.Device_Emulator.JIT.Static.Test.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 3 3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions