Skip to content

net6 test app crashses in Release Device with ILStripping enabled #13094

@chamons

Description

@chamons

Steps to Reproduce

  1. cd tests/dotnet
  2. plug in phone
  3. (Possibly) Edit tests/dotnet/size-comparison/MySingleView/Info.plist to have a CFBundleIdentifier that matches a profile on your machine
  4. make run-dotnet
  5. Note crash
  6. Add this to tests/dotnet/size-comparison/MySingleView/dotnet/MySingleView.csproj
<EnableAssemblyILStripping>false</EnableAssemblyILStripping>
  1. Note that it works

Expected Behavior

Test apps to not crash

Actual Behavior

Crash

Environment

Branch 9daab44 of macios.

Crash Logs

=================================================================
	Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
	Native stacktrace:
=================================================================
	0x100c66d20 - /private/var/containers/Bundle/Application/A59CCDC1-A317-415F-A006-B76270E9BCAB/PublicStaging.app/MySingleView : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode
	0x100c50140 - /private/var/containers/Bundle/Application/A59CCDC1-A317-415F-A006-B76270E9BCAB/PublicStaging.app/MySingleView : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode
	0x100c6650c - /private/var/containers/Bundle/Application/A59CCDC1-A317-415F-A006-B76270E9BCAB/PublicStaging.app/MySingleView : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode
	0x1f23cdc18 - /usr/lib/system/libsystem_platform.dylib : <redacted>
	0x1f23db434 - /usr/lib/system/libsystem_pthread.dylib : pthread_kill
	0x18cd93f64 - /usr/lib/system/libsystem_c.dylib : abort
	0x100bd138c - /private/var/containers/Bundle/Application/A59CCDC1-A317-415F-A006-B76270E9BCAB/PublicStaging.app/MySingleView : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode
	0x100ca6d08 - /private/var/containers/Bundle/Application/A59CCDC1-A317-415F-A006-B76270E9BCAB/PublicStaging.app/MySingleView : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode
	0x100ca6dc0 - /private/var/containers/Bundle/Application/A59CCDC1-A317-415F-A006-B76270E9BCAB/PublicStaging.app/MySingleView : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode
	0x100ca6e04 - /private/var/containers/Bundle/Application/A59CCDC1-A317-415F-A006-B76270E9BCAB/PublicStaging.app/MySingleView : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode
	0x100b09c54 - /private/var/containers/Bundle/Application/A59CCDC1-A317-415F-A006-B76270E9BCAB/PublicStaging.app/MySingleView : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode
	0x100b04138 - /private/var/containers/Bundle/Application/A59CCDC1-A317-415F-A006-B76270E9BCAB/PublicStaging.app/MySingleView : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode
	0x100c2f5ec - /private/var/containers/Bundle/Application/A59CCDC1-A317-415F-A006-B76270E9BCAB/PublicStaging.app/MySingleView : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode
	0x100c3a4e4 - /private/var/containers/Bundle/Application/A59CCDC1-A317-415F-A006-B76270E9BCAB/PublicStaging.app/MySingleView : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode
	0x1009b5f4c - /private/var/containers/Bundle/Application/A59CCDC1-A317-415F-A006-B76270E9BCAB/PublicStaging.app/MySingleView : xamarin_log
	0x1009b703c - /private/var/containers/Bundle/Application/A59CCDC1-A317-415F-A006-B76270E9BCAB/PublicStaging.app/MySingleView : xamarin_log
	0x100cae434 - /private/var/containers/Bundle/Application/A59CCDC1-A317-415F-A006-B76270E9BCAB/PublicStaging.app/MySingleView : _ZNK3icu6number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEE10toSkeletonER10UErrorCode
	0x101039a24 - Unknown

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x1b89e99c4):0x1b89e99b4  ff 0f 5f d6 c0 03 5f d6 10 29 80 d2 01 10 00 d4  .._..._..)......
0x1b89e99c4  03 01 00 54 7f 23 03 d5 fd 7b bf a9 fd 03 00 91  ...T.#...{......
0x1b89e99d4  34 ee ff 97 bf 03 00 91 fd 7b c1 a8 ff 0f 5f d6  4........{...._.
0x1b89e99e4  c0 03 5f d6 7f 23 03 d5 fd 7b bf a9 fd 03 00 91  .._..#...{......

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIf an issue is a bug or a pull request a bug fixiOSIssues affecting iOS

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions