Skip to content

[wasm] System.Collections.Immutable.Tests+AOT failing on rolling builds #85012

Closed

Description

@radical

System.Collections.Immutable.Tests:

Breaking on rolling builds since Apr 17 . The changes since the previous rolling build were - c1b7a9f...63b9a3a .

[22:03:10] fail: [FAIL] System.Collections.Immutable.Tests.ImmutableListTest.BinarySearchPartialSortedList
[22:03:10] info: System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'count')
[22:03:10] info:    at System.Reflection.MethodInvoker.Invoke(Object , IntPtr* , BindingFlags )
[22:04:11] fail: [FAIL] System.Collections.Immutable.Tests.ImmutableListBuilderTest.BinarySearchPartialSortedList
[22:04:11] info: System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values. (Parameter 'count')
[22:04:11] info:    at System.Reflection.MethodInvoker.Invoke(Object , IntPtr* , BindingFlags )

cc @radekdoulik (changes include the emsdk bump)

Known Issue Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "",
  "BuildRetry": false
}

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Apr 18, 2023
  2. added this to the 8.0.0 milestone on Apr 18, 2023
  3. ghost removed
    untriagedNew issue has not been triaged by the area owner
    on Apr 18, 2023
  4. added
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    on Apr 18, 2023
  5. self-assigned this
    on Apr 20, 2023
  6. vargaz commented on Apr 21, 2023

    @vargaz
    Contributor

    Seems to be caused by #83998, i.e. the emsdk bump. Not sure why CI didn't fail on the PR.

  7. vargaz commented on Apr 21, 2023

    @vargaz
    Contributor

    Testcase:

    using System;
    using System.Runtime.InteropServices;
    using System.Reflection;
    using System.Numerics;
    using System.Collections.Generic;
    using System.Collections.Immutable;
    using System.Linq;
    using System.Runtime.CompilerServices;
    
    public class Tests
    {
        public static void Main () {
            try {
                Main2 ();
            } catch (Exception ex) {
                Console.WriteLine (ex);
            }
        }
    
        static void Main2 () {
            ImmutableArray<int> reverseSorted = ImmutableArray.CreateRange(Enumerable.Range(1, 150).Select(n => n * 2).Reverse());
            for (int i = 0; i < 100; ++i)
                foo (reverseSorted);
        }
    
        static void foo (ImmutableArray<int> inputData)
        {
            Console.WriteLine ("1");
            inputData = inputData.Sort(0, 50, Comparer<int>.Default);
            Console.WriteLine ("2");
    
            var basis = new List<int>(inputData);
            for (int value = 0; value <= 100000; value++)
                        basis.BinarySearch(0, 50, value, null);
        }
    }
    

    Fails in src/mono/samples/wasm/console-v8 when compiled make AOT=1.

  8. ghost locked as resolved and limited conversation to collaborators on May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions