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

Intermittent crash in DynamicGenerics test on OSX x64 #73299

Closed
jkotas opened this issue Aug 3, 2022 · 13 comments · Fixed by #76489
Closed

Intermittent crash in DynamicGenerics test on OSX x64 #73299

jkotas opened this issue Aug 3, 2022 · 13 comments · Fixed by #76489
Labels
area-NativeAOT-coreclr disabled-test The test is disabled in source code against the issue
Milestone

Comments

@jkotas
Copy link
Member

jkotas commented Aug 3, 2022

Running Test: ThreadLocalStatics.TLSTesting.ThreadLocalStatics_Test
Expected: 100
Actual: 134
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=/Users/runner/work/1/s/artifacts/tests/coreclr/OSX.x64.Release/Tests/Core_Root
> /Users/runner/work/1/s/artifacts/tests/coreclr/OSX.x64.Release/nativeaot/SmokeTests/DynamicGenerics/DynamicGenerics/DynamicGenerics.sh
Expected: True
Actual:   False
Stack Trace:
  /Users/runner/work/1/s/artifacts/tests/coreclr/OSX.x64.Release/TestWrappers/nativeaot.SmokeTests/nativeaot.SmokeTests.XUnitWrapper.cs(347,0): at nativeaot_SmokeTests._DynamicGenerics_DynamicGenerics_DynamicGenerics_._DynamicGenerics_DynamicGenerics_DynamicGenerics_sh()
     at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
     at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Aug 3, 2022
@jkotas
Copy link
Member Author

jkotas commented Aug 3, 2022

@vitek-karas vitek-karas added this to the 7.0.0 milestone Aug 4, 2022
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Aug 4, 2022
@MichalStrehovsky
Copy link
Member

Looks like intermitted crash in DynamicGenerics is only a tip of the iceberg. I did a libraries test pass on mac in #73546 and it's a crashfest.

Moving this to 8.0. Mac is not supported.

@carlossanlop
Copy link
Member

Hit it in a 7.0 backport: #74589

      nativeaot/SmokeTests/DynamicGenerics/DynamicGenerics/DynamicGenerics.sh [FAIL]
        /Users/runner/work/1/s/src/tests/Common/scripts/nativeaottest.sh: line 14: 22270 Abort trap: 6           $_DebuggerFullPath $1/native/$exename "${@:3}"
        
        Return code:      1
        Raw output file:      /Users/runner/work/1/s/artifacts/tests/coreclr/OSX.x64.Release/nativeaot/SmokeTests/Reports/nativeaot.SmokeTests/DynamicGenerics/DynamicGenerics/DynamicGenerics.output.txt
        Raw output:
        BEGIN EXECUTION
        /Users/runner/work/1/s/src/tests/Common/scripts/nativeaottest.sh /Users/runner/work/1/s/artifacts/tests/coreclr/OSX.x64.Release/nativeaot/SmokeTests/DynamicGenerics/DynamicGenerics/ DynamicGenerics.dll ''
        --------------------------------
        Running Test: My.TestActivatorCreateInstance
        Calling List<My>.ctor
        System.Collections.Generic.List`1[My]
        Adding item to List<My>
        Calling List<My>.get_Count
        Calling GC.Collect
        Calling List<Foo>.ctor
        System.Collections.Generic.List`1[Foo]
        Adding item to List<Foo>
        Calling List<My>.get_Count
        Calling Dictionary<My,My>.ctor
        System.Collections.Generic.Dictionary`2[My,My]
        Adding item to Dictionary<My,My>
Running Test: ThreadLocalStatics.TLSTesting.ThreadLocalStatics_Test
Expected: 100
Actual: 134
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:
> set CORE_ROOT=/Users/runner/work/1/s/artifacts/tests/coreclr/OSX.x64.Release/Tests/Core_Root
> /Users/runner/work/1/s/artifacts/tests/coreclr/OSX.x64.Release/nativeaot/SmokeTests/DynamicGenerics/DynamicGenerics/DynamicGenerics.sh


Time [secs] | Total | Passed | Failed | Skipped | Assembly Execution Summary
============================================================================
     14.255 |    17 |     16 |      1 |       0 | nativeaot.SmokeTests.XUnitWrapper.dll
----------------------------------------------------------------------------
     14.255 |    17 |     16 |      1 |       0 | (total)

@MichalStrehovsky
Copy link
Member

Blocking the test in #74618. Dropping blocking-clean-ci label.

@MichalStrehovsky MichalStrehovsky removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Aug 26, 2022
@filipnavara
Copy link
Member

filipnavara commented Sep 9, 2022

I wonder if the root cause could be similar to #75264 (comment).

@carlossanlop
Copy link
Member

Found another hit in the release/7.0-rc2->release/7.0 automated merge branch PR: #75913

 --------------------------------
        Running Test: ThreadLocalStatics.TLSTesting.ThreadLocalStatics_Test
        Expected: 100
        Actual: 134
        END EXECUTION - FAILED
        Test Harness Exitcode is : 1
        To run the test:
        > set CORE_ROOT=/Users/runner/work/1/s/artifacts/tests/coreclr/OSX.x64.Release/Tests/Core_Root
        > /Users/runner/work/1/s/artifacts/tests/coreclr/OSX.x64.Release/nativeaot/SmokeTests/DynamicGenerics/DynamicGenerics/DynamicGenerics.sh
        Expected: True
        Actual:   False
        Stack Trace:
          /Users/runner/work/1/s/artifacts/tests/coreclr/OSX.x64.Release/TestWrappers/nativeaot.SmokeTests/nativeaot.SmokeTests.XUnitWrapper.cs(347,0): at nativeaot_SmokeTests._DynamicGenerics_DynamicGenerics_DynamicGenerics_._DynamicGenerics_DynamicGenerics_DynamicGenerics_sh()
             at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
             at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
        Output:
          /Users/runner/work/1/s/src/tests/Common/scripts/nativeaottest.sh: line 14: 62770 Abort trap: 6           $_DebuggerFullPath $1/native/$exename "${@:3}"
          
          Return code:      1
          Raw output file:      /Users/runner/work/1/s/artifacts/tests/coreclr/OSX.x64.Release/nativeaot/SmokeTests/Reports/nativeaot.SmokeTests/DynamicGenerics/DynamicGenerics/DynamicGenerics.output.txt
          Raw output:
          BEGIN EXECUTION
          /Users/runner/work/1/s/src/tests/Common/scripts/nativeaottest.sh /Users/runner/work/1/s/artifacts/tests/coreclr/OSX.x64.Release/nativeaot/SmokeTests/DynamicGenerics/DynamicGenerics/ DynamicGenerics.dll ''
          --------------------------------

@MichalStrehovsky
Copy link
Member

@carlossanlop how much does this bother things in the release branch? We could backport #74618 to make this go away.

@carlossanlop
Copy link
Member

I have seen it intermittently. It would certainly help clean the CI in the long term. How concerning is this issue in general? We could consider it if it meets the bar, besides cleaning the CI.

@jeffschwMSFT thoughts?

@jkotas
Copy link
Member Author

jkotas commented Sep 27, 2022

Let's backport it.

@jkotas
Copy link
Member Author

jkotas commented Sep 27, 2022

#76223

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Sep 27, 2022
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Sep 27, 2022
@carlossanlop
Copy link
Member

Do you want to keep this issue open? Or can we consider it fixed after disabling DynamicGenerics from mac in main and 7.0?

@filipnavara
Copy link
Member

filipnavara commented Sep 27, 2022

Keep open with disabled-test label? (It may be fixed in main, or once my WIP PR gets all the tests enabled w/ related fixes)

@filipnavara filipnavara added the disabled-test The test is disabled in source code against the issue label Sep 27, 2022
jkotas added a commit to jkotas/runtime that referenced this issue Oct 1, 2022
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Oct 1, 2022
jkotas added a commit that referenced this issue Oct 2, 2022
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Oct 2, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Nov 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-NativeAOT-coreclr disabled-test The test is disabled in source code against the issue
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants