Skip to content

App crashes when using SHA1.Create() under NativeAOT #10463

@jonpryor

Description

@jonpryor

Android framework version

net10.0-android (Preview)

Affected platform version

.NET 10 Preview 7, bf02f562

Description

Invoking e.g. SHA1.Create() results in app abort.

Steps to Reproduce

Build and run the attached sample:

Scratch.net10-android-sha1-create.zip

unzip Scratch.net10-android-sha1-create.zip
cd Scratch.net10-android-sha1-create
dotnet build -c Release -p:PublishAot=true -t:Install,StartAndroidActivity -bl

Did you find any workaround?

No response

Relevant log output

F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
F DEBUG   : Build fingerprint: 'google/sdk_gphone_x86_64/generic_x86_64:9/PSR1.180720.075/5124027:user/release-keys'
F DEBUG   : Revision: '0'
F DEBUG   : ABI: 'x86_64'
F DEBUG   : pid: 7535, tid: 7535, name: oid_sha1_create  >>> com.companyname.Scratch.net10_android_sha1_create <<<
F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
F DEBUG   : Cause: null pointer dereference
F DEBUG   :     rax db81d752a45cc4b6  rbx 0000000000000066  rcx 000077fd520a4548  rdx 000077fcc4b14ee8
F DEBUG   :     r8  0000000000000020  r9  0000000073ac6f46  r10 00007fff0c6388a0  r11 00007fff0c638840
F DEBUG   :     r12 00007fff0c638c40  r13 000077fcb8176c70  r14 0000000000000014  r15 0000000000000066
F DEBUG   :     rdi 0000000000000000  rsi 000077fcc4b14ee0
F DEBUG   :     rbp 00007fff0c638810  rsp 00007fff0c6387f0  rip 000077fcb7f438a7
F DEBUG   : 
F DEBUG   : backtrace:
F DEBUG   :     #00 pc 00000000001de8a7  /data/app/com.companyname.Scratch.net10_android_sha1_create-tB7ZFDmB1pRssGB3H-teOA==/split_config.x86_64.apk (offset 0x1ce000)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: App RuntimeIssues in `libmonodroid.so`.needs-triageIssues that need to be assigned.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions