Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Wasm: Generics test fails if run in a loop #8210

@yowl

Description

@yowl

Wrap the simple Generics test in a for (var i = 0; i < 100; i++) and it will fail. It may not be consistent, but this stack is common.

exception thrown: RuntimeError: memory access out of bounds,RuntimeError: memory access out of bounds
    at S_P_CoreLib_System_Runtime_TypeLoaderExports__LookupInCache (wasm-function[4572]:210)
    at S_P_CoreLib_System_Runtime_TypeLoaderExports__CacheMiss_0 (wasm-function[4574]:248)
    at S_P_CoreLib_System_Runtime_TypeLoaderExports__GVMLookupForSlot (wasm-function[4584]:507)
    at Generics_Program_TestSimpleGVMScenarios__TestWithStruct (wasm-function[12618]:347)
    at Generics_Program_TestSimpleGVMScenarios__Run (wasm-function[12548]:1938)
    at Generics_Program__Main (wasm-function[12531]:144)
    at Generics__Module___MainMethodWrapper (wasm-function[12518]:3)
    at StartupCodeMain (wasm-function[12509]:108)
    at __managed__Main (wasm-function[22612]:67)
    at main (wasm-function[2072]:126)

This might be solved by #8171 - it is in a test around structs. Wanted to create a specific task for this failure so it doesn't get forgotten (by me at least). I think this is the same error that occurs in CI sometimes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions