Skip to content

[ci-scan] Test failure: JNI NewObjectV pending InvalidKeySpecException / Creating RSA key failed on Android #128660

@vitek-karas

Description

@vitek-karas

Note

This issue draft was prepared with GitHub Copilot assistance and reviewed by the submitting developer.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1436900
Build error leg or test failing: android-arm Release AllSubsets_Mono - System.Security.Cryptography.Tests
Pull request: #128438

Error Details

JNI DETECTED ERROR IN APPLICATION: JNI NewObjectV called with pending exception java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: Creating RSA key failed
Caused by: java.lang.RuntimeException: Creating RSA key failed
native: #16 ... libSystem.Security.Cryptography.Native.Android.so (AndroidCryptoNative_SetRsaParameters+362)
Fatal signal 6 (SIGABRT)

Error Message

{
  "ErrorMessage": "JNI DETECTED ERROR IN APPLICATION: JNI NewObjectV called with pending exception java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: Creating RSA key failed",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Failure details:

The Helix work item failed with APP_CRASH / exit code 80. The concrete signature comes from adb logcat for the failing Android Mono work item and points at AndroidCryptoNative_SetRsaParameters in libSystem.Security.Cryptography.Native.Android.so.

Affected legs:

  • android-arm Release AllSubsets_Mono - System.Security.Cryptography.Tests

Console Log:

  • adb logcat artifact from the failing Helix work item for System.Security.Cryptography.Tests

First build in window:

  • 1436900 (current PR run; no earlier matching KBE found during this triage)

Recommended action:
Create a KBE only after human review confirms the JNI/conscrypt RSA crash is a stable failure family worth matching on this literal logcat signature. The exact managed test that triggered the crash was not identified from the available logs.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1436900
Error message validated: [JNI DETECTED ERROR IN APPLICATION: JNI NewObjectV called with pending exception java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: Creating RSA key failed]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 5/27/2026 6:50:30 PM UTC

Report

Summary

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

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions