Skip to content
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

[wasm][aot] System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array in System.CodeDom.Tests.CodeNamespaceImportCollectionTests #51723

Closed
radical opened this issue Apr 23, 2021 · 8 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono disabled-test The test is disabled in source code against the issue untriaged New issue has not been triaged by the area owner wasm-aot-test WebAssembly AOT Test
Milestone

Comments

@radical
Copy link
Member

radical commented Apr 23, 2021

This can be reproduced on main.

Log
Build

[23:18:55] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.Enumerator_Current_ModifiedDuringEnumeration_UndefinedBehavior(count: 0)
[23:18:55] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:55] info: 
[23:18:55] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.Enumerator_Current_ModifiedDuringEnumeration_UndefinedBehavior(count: 1)
[23:18:55] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:55] info: 
[23:18:55] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.Enumerator_Current_ModifiedDuringEnumeration_UndefinedBehavior(count: 75)
[23:18:55] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:55] info: 
[23:18:55] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedAfterEnumeration_ThrowsInvalidOperationException(count: 0)
[23:18:55] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:55] info: 
[23:18:55] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedAfterEnumeration_ThrowsInvalidOperationException(count: 1)
[23:18:55] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:55] info: 
[23:18:55] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedAfterEnumeration_ThrowsInvalidOperationException(count: 75)
[23:18:55] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:55] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedAfterEnumeration_ThrowsInvalidOperationException(count: 0)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedAfterEnumeration_ThrowsInvalidOperationException(count: 1)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedAfterEnumeration_ThrowsInvalidOperationException(count: 75)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedDuringEnumeration_ThrowsInvalidOperationException(count: 0)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedDuringEnumeration_ThrowsInvalidOperationException(count: 1)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedDuringEnumeration_ThrowsInvalidOperationException(count: 75)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedDuringEnumeration_ThrowsInvalidOperationException(count: 0)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedDuringEnumeration_ThrowsInvalidOperationException(count: 1)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedDuringEnumeration_ThrowsInvalidOperationException(count: 75)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedBeforeEnumeration_ThrowsInvalidOperationException(count: 0)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedBeforeEnumeration_ThrowsInvalidOperationException(count: 1)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedBeforeEnumeration_ThrowsInvalidOperationException(count: 75)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedBeforeEnumeration_ThrowsInvalidOperationException(count: 0)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedBeforeEnumeration_ThrowsInvalidOperationException(count: 1)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedBeforeEnumeration_ThrowsInvalidOperationException(count: 75)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
@radical radical added arch-wasm WebAssembly architecture disabled-test The test is disabled in source code against the issue area-Codegen-AOT-mono wasm-aot-test WebAssembly AOT Test labels Apr 23, 2021
@ghost
Copy link

ghost commented Apr 23, 2021

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

This can be reproduced on main.

Log
Build

[23:18:55] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.Enumerator_Current_ModifiedDuringEnumeration_UndefinedBehavior(count: 0)
[23:18:55] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:55] info: 
[23:18:55] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.Enumerator_Current_ModifiedDuringEnumeration_UndefinedBehavior(count: 1)
[23:18:55] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:55] info: 
[23:18:55] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.Enumerator_Current_ModifiedDuringEnumeration_UndefinedBehavior(count: 75)
[23:18:55] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:55] info: 
[23:18:55] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedAfterEnumeration_ThrowsInvalidOperationException(count: 0)
[23:18:55] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:55] info: 
[23:18:55] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedAfterEnumeration_ThrowsInvalidOperationException(count: 1)
[23:18:55] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:55] info: 
[23:18:55] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedAfterEnumeration_ThrowsInvalidOperationException(count: 75)
[23:18:55] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:55] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedAfterEnumeration_ThrowsInvalidOperationException(count: 0)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedAfterEnumeration_ThrowsInvalidOperationException(count: 1)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedAfterEnumeration_ThrowsInvalidOperationException(count: 75)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedDuringEnumeration_ThrowsInvalidOperationException(count: 0)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedDuringEnumeration_ThrowsInvalidOperationException(count: 1)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedDuringEnumeration_ThrowsInvalidOperationException(count: 75)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedDuringEnumeration_ThrowsInvalidOperationException(count: 0)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedDuringEnumeration_ThrowsInvalidOperationException(count: 1)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedDuringEnumeration_ThrowsInvalidOperationException(count: 75)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedBeforeEnumeration_ThrowsInvalidOperationException(count: 0)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedBeforeEnumeration_ThrowsInvalidOperationException(count: 1)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_MoveNext_ModifiedBeforeEnumeration_ThrowsInvalidOperationException(count: 75)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedBeforeEnumeration_ThrowsInvalidOperationException(count: 0)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedBeforeEnumeration_ThrowsInvalidOperationException(count: 1)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
[23:18:56] fail: [FAIL] System.CodeDom.Tests.CodeNamespaceImportCollectionTests.IEnumerable_NonGeneric_Enumerator_Reset_ModifiedBeforeEnumeration_ThrowsInvalidOperationException(count: 75)
[23:18:56] info: System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array.
[23:18:56] info: 
Author: radical
Assignees: -
Labels:

arch-wasm, area-Codegen-AOT-mono, disabled-test, wasm-aot-test

Milestone: -

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Apr 23, 2021
@lewing lewing added this to the 6.0.0 milestone Apr 23, 2021
@radical radical changed the title [wasm][aot] Test failures in System.CodeDom.Tests.CodeNamespaceImportCollectionTests [wasm][aot] System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array in System.CodeDom.Tests.CodeNamespaceImportCollectionTests Apr 23, 2021
@radical radical changed the title [wasm][aot] System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array in System.CodeDom.Tests.CodeNamespaceImportCollectionTests [wasm][aot] System.ArrayTypeMismatchException : Attempted to access an element as a type incompatible with the array in System.CodeDom.Tests.CodeNamespaceImportCollectionTests Apr 23, 2021
@fanyang-mono fanyang-mono self-assigned this Apr 23, 2021
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Apr 28, 2021
@fanyang-mono
Copy link
Member

This issue was not reproducible locally, but reproducible on CI for some reason.

@radical
Copy link
Member Author

radical commented Apr 29, 2021

Locally, try running with /p:BuildAOTTestsOnHelix=true

@radical
Copy link
Member Author

radical commented Apr 29, 2021

If this consistently fails on CI, but not locally, then it might be a build issue, and I can take a look at it.

@fanyang-mono
Copy link
Member

Locally, try running with /p:BuildAOTTestsOnHelix=true

I can't reproduce locally even with this flag. And on CI, it fails sporadically, too.

@fanyang-mono
Copy link
Member

fanyang-mono commented Apr 30, 2021

On CI, the first time, it failed with

[15:51:21] info: console.info: Arguments: --run,WasmTestRunner.dll,System.CodeDom.Tests.dll,-notrait,category=IgnoreForCI,-notrait,category=OuterLoop,-notrait,category=failing
[15:51:21] info: console.debug: MONO_WASM: Initializing mono runtime
[15:51:21] info: console.debug: MONO_WASM: ICU data archive(s) loaded, disabling invariant mode
[15:51:21] info: console.debug: mono_wasm_runtime_ready fe00e07a-5519-4dfe-b35a-f867dbaf2e28
[15:51:21] info: console.info: Initializing.....
[15:51:21] info: Discovering: System.CodeDom.Tests.dll (method display = ClassAndMethod, method display options = None)
[15:51:21] info: Discovered:  System.CodeDom.Tests.dll (found 1423 of 1424 test cases)
[15:51:21] info: Starting:    System.CodeDom.Tests.dll
[15:51:25] fail: 15:51:25.6527348 console.error: ThreadPool Callback threw an unhandled exception of type System.NullReferenceException
                 
Killed
['System.CodeDom.Tests' WORK ITEM LOG TRUNCATED: Command timed out, and was killed]

The second time, it failed with the same error message as described in this issue.

The third time, it passed.

The link to the PR is #51989

@fanyang-mono fanyang-mono removed their assignment Apr 30, 2021
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Apr 30, 2021
@vargaz
Copy link
Contributor

vargaz commented Apr 30, 2021

Can't reproduce the original issue either, seeing some rare random crashes instead.

@vargaz
Copy link
Contributor

vargaz commented May 3, 2021

#52181 will fix some of the random crashes on this test suite.

@lewing lewing closed this as completed Jun 17, 2021
lewing added a commit to lewing/runtime that referenced this issue Jun 28, 2021
lewing added a commit that referenced this issue Jun 28, 2021
thaystg added a commit to thaystg/runtime that referenced this issue Jun 29, 2021
…bugger2

* origin/main: (78 commits)
  Fix unreached during dump. (dotnet#54861)
  Fix lowering usage of an unset LSRA field. (dotnet#54731)
  Fix setting breakpoints on AVX 256 instructions and other 32 byte immediate instructions (dotnet#54786)
  Add perf_slow yaml (dotnet#54853)
  Faster type load for scenarios made more common by generic math (dotnet#54588)
  Make sure we consider buffer length when marshalling back Unicode ByValTStr fields (dotnet#54695)
  Add YieldProcessor implementation for arm (dotnet#54829)
  Remove ActiveIssue for dotnet#50968 (dotnet#54831)
  Enable System.Text.Json tests for Wasm AOT (dotnet#54833)
  Remove ActiveIssue for dotnet#51723 (dotnet#54830)
  Fix load exception on generic covariant return type (dotnet#54790)
  Obsolete X509Certificate2.PrivateKey and PublicKey.Key. (dotnet#54562)
  First round of converting System.Drawing.Common to COMWrappers (dotnet#54636)
  Fix alloc-dealloc mismatches (dotnet#54701)
  Add one-shot ECB methods
  [Mono] MSBuild Task housekeeping (dotnet#54485)
  Move iOS/tvOS simulator AOT imports in the Mono workload (dotnet#54821)
  Remove unnecessary char[] allocation from Uri.GetRelativeSerializationString (dotnet#54799)
  Reduce overhead of Enumerable.Chunk (dotnet#54782)
  Fix EnumMemberRefs always returning NULL (dotnet#54805)
  ...
@ghost ghost locked as resolved and limited conversation to collaborators Jul 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono disabled-test The test is disabled in source code against the issue untriaged New issue has not been triaged by the area owner wasm-aot-test WebAssembly AOT Test
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants