New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watchOS/LLVM crashes at launch on device #7364

Closed
rolfbjarne opened this Issue Mar 1, 2018 · 2 comments

Comments

Projects
None yet
4 participants
@rolfbjarne
Member

rolfbjarne commented Mar 1, 2018

Steps to Reproduce

  1. Run any watchOS project in release mode (i.e. with LLVM enabled) on device (debug works fine).

Small test project I've used: mono-watchos-llvmissue.zip

  1. Something like this shows up in the Application Output:

    2018-02-28 14:13:57.840 MinimalisticWatchAppExtension[282:101894] *** Terminating app due to uncaught exception 'System.InvalidOperationException', reason: 'Could not execute the method because the containing type is not fully instantiated.'
    *** First throw call stack:
    (0x21074363 0x207231c3 0x491c23 0x492003 0x496e9f 0xfee7b 0x20bc8567)
    libc++abi.dylib: terminating with uncaught exception of type NSException

Unfortunately it seems watchOS doesn't produce crash reports for SIGABRT, so there's no crash report.

However, running with lldb I was able to get a stack trace and some info: https://gist.github.com/rolfbjarne/302a97bc805f7dc16364565d414704e4

On which platforms did you notice this

[ ] macOS
[ ] Linux
[ ] Windows
[x] watchOS

Version Used:

xamarin-macios/master: xamarin/xamarin-macios@27e757e
xamarin-macios/d15-7: xamarin/xamarin-macios@0181ac3

VSTS

@rolfbjarne

This comment has been minimized.

Member

rolfbjarne commented Mar 1, 2018

CC @spouliot (this is a blocker for d15-7)

@vargaz

This comment has been minimized.

Member

vargaz commented Mar 8, 2018

Testcase:

using System;
using System.Collections.Generic;

public static class Program {
    public static int Main () {
		var map1 = new Dictionary <Type, IntPtr> (EqualityComparer<Type>.Default);
		var object_map = new Dictionary <IntPtr, WeakReference> (EqualityComparer<IntPtr>.Default);
		return 0;
	}
}

vargaz added a commit to vargaz/mono that referenced this issue Mar 8, 2018

[jit] Move the check for open constructed types later in mono_jit_com…
…pile_method_with_opt (), this function can receive

gshared methods in llvmonly mode.

Fixes mono#7364.

monojenkins added a commit to monojenkins/mono that referenced this issue Mar 8, 2018

Move the check for open constructed types later in mono_jit_compile_m…
…ethod_with_opt (), this function can receive gshared methods in llvmonly mode.

Fixes mono#7364.

monojenkins added a commit to monojenkins/mono that referenced this issue Mar 8, 2018

Move the check for open constructed types later in mono_jit_compile_m…
…ethod_with_opt (), this function can receive gshared methods in llvmonly mode.

Fixes mono#7364.

luhenry added a commit that referenced this issue Mar 9, 2018

Move the check for open constructed types later in mono_jit_compile_m…
…ethod_with_opt (), this function can receive gshared methods in llvmonly mode. (#7504)

Fixes #7364.

luhenry added a commit that referenced this issue Mar 9, 2018

Move the check for open constructed types later in mono_jit_compile_m…
…ethod_with_opt (), this function can receive gshared methods in llvmonly mode. (#7505)

Fixes #7364.

@luhenry luhenry closed this in #7494 Mar 9, 2018

luhenry added a commit that referenced this issue Mar 9, 2018

[jit] Move the check for open constructed types later in mono_jit_com…
…pile_method_with_opt (), this function can receive (#7494)

gshared methods in llvmonly mode.

Fixes #7364.

rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Mar 9, 2018

Bump mono to get fix for mono/mono#7364.
Commit list for mono/mono:

* mono/mono@266326d Move the check for open constructed types later in mono_jit_compile_method_with_opt (), this function can receive gshared methods in llvmonly mode. (#7505)
* mono/mono@89cc361 Use runtime template for iOS
* mono/mono@05453b1 Use runtime template for Android
* mono/mono@0938bbc Create common runtime compilation template
* mono/mono@c06eb62 Have RELEASE be empty when CONFIGURATION != 'release'
* mono/mono@0fb02c8 Move common targets
* mono/mono@d4aa545 [metadata] An array is not an IEnumerator`1
* mono/mono@ff7f557 [test] An array is not an IEnumerator`1
* mono/mono@d5d67ea [metadata] Add IEnumerator`1 to MonoDefaults struct
* mono/mono@15d76bf Revert "[profiler] Correctly encode counter type/unit/variance values."
* mono/mono@f3ac8fd Fix for gcc 4.4; nominal support for older. attribute(deprecated(message)) was introduced in gcc 4.5. attribute(deprecated) was introduced in gcc 4.0? pragma GCC diagnostic 4.2? mono/mono#7408 (#7436)
* mono/mono@1f48672 Fixes decoding of CMS/PKCS xamarin#7 messages with an explicit cryptographic object identifier

Diff: mono/mono@becded2...266326d

rolfbjarne added a commit to xamarin/xamarin-macios that referenced this issue Mar 9, 2018

Bump mono to get fix for mono/mono#7364. (#3706)
Commit list for mono/mono:

* mono/mono@266326d Move the check for open constructed types later in mono_jit_compile_method_with_opt (), this function can receive gshared methods in llvmonly mode. (#7505)
* mono/mono@89cc361 Use runtime template for iOS
* mono/mono@05453b1 Use runtime template for Android
* mono/mono@0938bbc Create common runtime compilation template
* mono/mono@c06eb62 Have RELEASE be empty when CONFIGURATION != 'release'
* mono/mono@0fb02c8 Move common targets
* mono/mono@d4aa545 [metadata] An array is not an IEnumerator`1
* mono/mono@ff7f557 [test] An array is not an IEnumerator`1
* mono/mono@d5d67ea [metadata] Add IEnumerator`1 to MonoDefaults struct
* mono/mono@15d76bf Revert "[profiler] Correctly encode counter type/unit/variance values."
* mono/mono@f3ac8fd Fix for gcc 4.4; nominal support for older. attribute(deprecated(message)) was introduced in gcc 4.5. attribute(deprecated) was introduced in gcc 4.0? pragma GCC diagnostic 4.2? mono/mono#7408 (#7436)
* mono/mono@1f48672 Fixes decoding of CMS/PKCS #7 messages with an explicit cryptographic object identifier

Diff: mono/mono@becded2...266326d

rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Mar 9, 2018

Bump mono to get fix for mono/mono#7364. (xamarin#3706)
Commit list for mono/mono:

* mono/mono@266326d Move the check for open constructed types later in mono_jit_compile_method_with_opt (), this function can receive gshared methods in llvmonly mode. (#7505)
* mono/mono@89cc361 Use runtime template for iOS
* mono/mono@05453b1 Use runtime template for Android
* mono/mono@0938bbc Create common runtime compilation template
* mono/mono@c06eb62 Have RELEASE be empty when CONFIGURATION != 'release'
* mono/mono@0fb02c8 Move common targets
* mono/mono@d4aa545 [metadata] An array is not an IEnumerator`1
* mono/mono@ff7f557 [test] An array is not an IEnumerator`1
* mono/mono@d5d67ea [metadata] Add IEnumerator`1 to MonoDefaults struct
* mono/mono@15d76bf Revert "[profiler] Correctly encode counter type/unit/variance values."
* mono/mono@f3ac8fd Fix for gcc 4.4; nominal support for older. attribute(deprecated(message)) was introduced in gcc 4.5. attribute(deprecated) was introduced in gcc 4.0? pragma GCC diagnostic 4.2? mono/mono#7408 (#7436)
* mono/mono@1f48672 Fixes decoding of CMS/PKCS xamarin#7 messages with an explicit cryptographic object identifier

Diff: mono/mono@becded2...266326d

spouliot added a commit to xamarin/xamarin-macios that referenced this issue Mar 9, 2018

Bump mono to get fix for mono/mono#7364. (#3706) (#3709)
Commit list for mono/mono:

* mono/mono@266326d Move the check for open constructed types later in mono_jit_compile_method_with_opt (), this function can receive gshared methods in llvmonly mode. (#7505)
* mono/mono@89cc361 Use runtime template for iOS
* mono/mono@05453b1 Use runtime template for Android
* mono/mono@0938bbc Create common runtime compilation template
* mono/mono@c06eb62 Have RELEASE be empty when CONFIGURATION != 'release'
* mono/mono@0fb02c8 Move common targets
* mono/mono@d4aa545 [metadata] An array is not an IEnumerator`1
* mono/mono@ff7f557 [test] An array is not an IEnumerator`1
* mono/mono@d5d67ea [metadata] Add IEnumerator`1 to MonoDefaults struct
* mono/mono@15d76bf Revert "[profiler] Correctly encode counter type/unit/variance values."
* mono/mono@f3ac8fd Fix for gcc 4.4; nominal support for older. attribute(deprecated(message)) was introduced in gcc 4.5. attribute(deprecated) was introduced in gcc 4.0? pragma GCC diagnostic 4.2? mono/mono#7408 (#7436)
* mono/mono@1f48672 Fixes decoding of CMS/PKCS #7 messages with an explicit cryptographic object identifier

Diff: mono/mono@becded2...266326d

jonpryor added a commit to xamarin/xamarin-android that referenced this issue Mar 22, 2018

jonpryor added a commit to jonpryor/xamarin-android that referenced this issue Mar 24, 2018

jonpryor added a commit to xamarin/xamarin-android that referenced this issue Mar 24, 2018

jonpryor added a commit to xamarin/xamarin-android that referenced this issue Apr 25, 2018

Bump to mono/2018-02/0c5a524e (#1289)
Bumps to Java.Interop/master/0afb2b0f
Bumps to llvm/master/a9cfb50e.

Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=11771
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=15051
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=19436
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=45901
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=56071
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=58413
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=58413
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=58413
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=59184
fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=60065
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=60225
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=60298
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=60359
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=60568
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=60756
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=60848
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=60862
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=60900
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=60904
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=60986
Fixes: https://github.com/mono/mono/issues/59400
Fixes: mono/mono#6169
Fixes: mono/mono#6187
Fixes: mono/mono#6192
Fixes: mono/mono#6255
Fixes: mono/mono#6264
Fixes: mono/mono#6266
Fixes: mono/mono#6281
Fixes: mono/mono#6283
Fixes: mono/mono#6320
Fixes: mono/mono#6339
Fixes: mono/mono#6343
Fixes: mono/mono#6349
Fixes: mono/mono#6379
Fixes: mono/mono#6383
Fixes: mono/mono#6401.
Fixes: mono/mono#6411
Fixes: mono/mono#6414
Fixes: mono/mono#6490
Fixes: mono/mono#6721
Fixes: mono/mono#6767
Fixes: mono/mono#6777
Fixes: mono/mono#6848
Fixes: mono/mono#6940
Fixes: mono/mono#6948
Fixes: mono/mono#6998
Fixes: mono/mono#7016
Fixes: mono/mono#7085
Fixes: mono/mono#7086
Fixes: mono/mono#7095
Fixes: mono/mono#7137
Fixes: mono/mono#7184
Fixes: mono/mono#7240
Fixes: mono/mono#7262
Fixes: mono/mono#7289
Fixes: mono/mono#7338
Fixes: mono/mono#7356
Fixes: mono/mono#7364
Fixes: mono/mono#7378
Fixes: mono/mono#7389
Fixes: mono/mono#7460
Fixes: mono/mono#7535
Fixes: mono/mono#7536
Fixes: mono/mono#7610
Fixes: mono/mono#7624
Fixes: mono/mono#7637
Fixes: mono/mono#7655
Fixes: mono/mono#7657
Fixes: mono/mono#7685
Fixes: mono/mono#7786
Fixes: mono/mono#7792
Fixes: mono/mono#7822
Fixes: mono/mono#7860
Fixes: mono/mono#8089
Fixes: mono/mono#8267
Fixes: mono/mono#8409
Fixes: xamarin/maccore#628
Fixes: xamarin/maccore#629
Fixes: xamarin/maccore#673
Fixes: xamarin/maccore#673
Fixes: #1561

jonpryor added a commit to xamarin/xamarin-android that referenced this issue Aug 8, 2018

Bump to mono/mono:2018-04@f3a2216b (#1503)
Fixes: #1130
Fixes: #1561 (comment)
Fixes: #1845
Fixes: #1951

Context: https://bugzilla.xamarin.com/show_bug.cgi?id=10087
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=11771
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=12850
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=18941
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=19436
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=25444
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=33208
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=58413
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=59184
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=59400
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=59779
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=60065
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=60843
Context: mono/mono#6174
Context: mono/mono#6178
Context: mono/mono#6180
Context: mono/mono#6181
Context: mono/mono#6186
Context: mono/mono#6187
Context: mono/mono#6211
Context: mono/mono#6266
Context: mono/mono#6579
Context: mono/mono#6666
Context: mono/mono#6752
Context: mono/mono#6801
Context: mono/mono#6812
Context: mono/mono#6848
Context: mono/mono#6940
Context: mono/mono#6948
Context: mono/mono#6998
Context: mono/mono#6999
Context: mono/mono#7016
Context: mono/mono#7085
Context: mono/mono#7086
Context: mono/mono#7095
Context: mono/mono#7134
Context: mono/mono#7137
Context: mono/mono#7145
Context: mono/mono#7184
Context: mono/mono#7240
Context: mono/mono#7262
Context: mono/mono#7289
Context: mono/mono#7338
Context: mono/mono#7356
Context: mono/mono#7364
Context: mono/mono#7378
Context: mono/mono#7389
Context: mono/mono#7449
Context: mono/mono#7460
Context: mono/mono#7535
Context: mono/mono#7536
Context: mono/mono#7537
Context: mono/mono#7565
Context: mono/mono#7588
Context: mono/mono#7596
Context: mono/mono#7610
Context: mono/mono#7613
Context: mono/mono#7620
Context: mono/mono#7624
Context: mono/mono#7637
Context: mono/mono#7655
Context: mono/mono#7657
Context: mono/mono#7661
Context: mono/mono#7685
Context: mono/mono#7696
Context: mono/mono#7729
Context: mono/mono#7786
Context: mono/mono#7792
Context: mono/mono#7805
Context: mono/mono#7822
Context: mono/mono#7828
Context: mono/mono#7860
Context: mono/mono#7864
Context: mono/mono#7903
Context: mono/mono#7920
Context: mono/mono#8089
Context: mono/mono#8143
Context: mono/mono#8267
Context: mono/mono#8311
Context: mono/mono#8340
Context: mono/mono#8409
Context: mono/mono#8417
Context: mono/mono#8430
Context: mono/mono#8698
Context: mono/mono#8701
Context: mono/mono#8712
Context: mono/mono#8721
Context: mono/mono#8726
Context: mono/mono#8866
Context: mono/mono#9023
Context: mono/mono#9031
Context: mono/mono#9033
Context: mono/mono#9044
Context: mono/mono#9179
Context: mono/mono#9318
Context: mono/mono#9318
Context: xamarin/maccore#628
Context: xamarin/maccore#629
Context: xamarin/maccore#673

jonpryor added a commit to xamarin/xamarin-android that referenced this issue Aug 13, 2018

Bump to mono/mono:2018-04@f3a2216b (#1503)
Fixes: #1130
Fixes: #1561 (comment)
Fixes: #1845
Fixes: #1951

Context: https://bugzilla.xamarin.com/show_bug.cgi?id=10087
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=11771
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=12850
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=18941
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=19436
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=25444
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=33208
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=58413
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=59184
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=59400
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=59779
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=60065
Context: https://bugzilla.xamarin.com/show_bug.cgi?id=60843
Context: mono/mono#6174
Context: mono/mono#6178
Context: mono/mono#6180
Context: mono/mono#6181
Context: mono/mono#6186
Context: mono/mono#6187
Context: mono/mono#6211
Context: mono/mono#6266
Context: mono/mono#6579
Context: mono/mono#6666
Context: mono/mono#6752
Context: mono/mono#6801
Context: mono/mono#6812
Context: mono/mono#6848
Context: mono/mono#6940
Context: mono/mono#6948
Context: mono/mono#6998
Context: mono/mono#6999
Context: mono/mono#7016
Context: mono/mono#7085
Context: mono/mono#7086
Context: mono/mono#7095
Context: mono/mono#7134
Context: mono/mono#7137
Context: mono/mono#7145
Context: mono/mono#7184
Context: mono/mono#7240
Context: mono/mono#7262
Context: mono/mono#7289
Context: mono/mono#7338
Context: mono/mono#7356
Context: mono/mono#7364
Context: mono/mono#7378
Context: mono/mono#7389
Context: mono/mono#7449
Context: mono/mono#7460
Context: mono/mono#7535
Context: mono/mono#7536
Context: mono/mono#7537
Context: mono/mono#7565
Context: mono/mono#7588
Context: mono/mono#7596
Context: mono/mono#7610
Context: mono/mono#7613
Context: mono/mono#7620
Context: mono/mono#7624
Context: mono/mono#7637
Context: mono/mono#7655
Context: mono/mono#7657
Context: mono/mono#7661
Context: mono/mono#7685
Context: mono/mono#7696
Context: mono/mono#7729
Context: mono/mono#7786
Context: mono/mono#7792
Context: mono/mono#7805
Context: mono/mono#7822
Context: mono/mono#7828
Context: mono/mono#7860
Context: mono/mono#7864
Context: mono/mono#7903
Context: mono/mono#7920
Context: mono/mono#8089
Context: mono/mono#8143
Context: mono/mono#8267
Context: mono/mono#8311
Context: mono/mono#8340
Context: mono/mono#8409
Context: mono/mono#8417
Context: mono/mono#8430
Context: mono/mono#8698
Context: mono/mono#8701
Context: mono/mono#8712
Context: mono/mono#8721
Context: mono/mono#8726
Context: mono/mono#8866
Context: mono/mono#9023
Context: mono/mono#9031
Context: mono/mono#9033
Context: mono/mono#9044
Context: mono/mono#9179
Context: mono/mono#9318
Context: mono/mono#9318
Context: xamarin/maccore#628
Context: xamarin/maccore#629
Context: xamarin/maccore#673
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment