Skip to content

Crash calling ICU GetLocale on static Android CoreCLR build. #116522

@lateralusX

Description

@lateralusX

Description

Running the sample HelloAndroid test app on CoreCLR using static linking and throw an exception in main will trigger a crash with limited callstack data. Turns out that the ICU function pointers are null and when trying to resolve exception message will lead to a crash in a bad spot (handling another unhandled exception) that will leave us with a truncated callstack.

Reproduction Steps

Build sample HelloAndroid test app using static linking targeting CoreCLR. Include a throw new Exception("Crash") in main method.

Expected behavior

Stack of unhandled managed exception and process termination.

Actual behavior

Crash with limited native callstack information and no managed callstack.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions