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

Test failure baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd #83658

Open
v-wenyuxu opened this issue Mar 20, 2023 · 20 comments
Assignees
Labels
area-System.Threading blocking-clean-ci-optional Blocking optional rolling runs blocking-outerloop Blocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs disabled-test The test is disabled in source code against the issue
Milestone

Comments

@v-wenyuxu
Copy link

Failed in Run: runtime-coreclr outerloop 20230318.3

Failed tests:

R2R-CG2 windows x64 Checked no_tiered_compilation @ Windows.10.Amd64.Open
    - baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

Error message:


Return code:      1
Raw output file:      C:hwAC570944wB68409ADuploads
egressions2164oreground-shutdownoutput.txt
Raw output:
BEGIN EXECUTION
foreground-shutdown.dll
       1 file(s) copied.
20:26:15.68
Response file: C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll.rsp
C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownIL-CG2oreground-shutdown.dll
-o:C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll
--targetarch:x64
--targetos:windows
--verify-type-and-field-layout
--method-layout:random
-r:C:hwAC570944pSystem.*.dll
-r:C:hwAC570944pMicrosoft.*.dll
-r:C:hwAC570944p\xunit.*.dll
-r:C:hwAC570944pmscorlib.dll
-r:C:hwAC570944p
etstandard.dll
-O
" "dotnet" "C:hwAC570944pcrossgen2crossgen2.dll" @"C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll.rsp"   -r:C:hwAC570944wB68409ADe�aseservices	hreading	hreading_group1IL-CG2*.dll  -r:C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownIL-CG2*.dll"
Emitting R2R PE file: C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll
" "dotnet" "C:hwAC570944p
2rdump
2rdump.dll" --header --sc --in C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll --out C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll.r2rdump --val"
20:26:17.71
"C:hwAC570944pcorerun.exe" -p "System.Reflection.Metadata.MetadataUpdater.IsSupported=false"  foreground-shutdown.dll 
Xunit.Sdk.EqualException: Assert.Equal() Failure
Expected: 100
Actual:   101
  at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/xunit.assert/Asserts/EqualityAsserts.cs:line 96
  at __GeneratedMainWrapper.Main()
Expected: 100
Actual: 101
END EXECUTION - FAILED
FAILED
Test failed. Trying to see if dump file was created in C:cores since 3/18/2023 8:26:15 PM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> C:hwAC570944wB68409ADe�aseservices	hreading	hreading_group1../regressions/2164/foreground-shutdown/foreground-shutdown.cmd
Expected: True
Actual:   False

Stack trace:

  at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 132
  at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 116
  at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String basePath, String assemblyPath)
  at Program.<<Main>$>g__TestExecutor2|0_1(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
Queued Pipeline Pipeline_Configuration OS Arch Test Outcome Properties BuildReason
2022-11-19T20:51:51.061Z runtime-coreclr ilasm Checked-ilasmroundtrip ubuntu.1804.amd64.open.rt x64 baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.sh Failed {"System.StageName":"Build","DefinitionId":"140","BuildId":"88711","Project":"public","System.JobAttempt":"1","configuration":"Checked-ilasmroundtrip","System.StageAttempt":"1","AzurePipelinesTestRunId":"1867338","CollectionUri":"https://dev.azure.com/dnceng-public/","DefinitionName":"runtime-coreclr ilasm","BuildNumber":"20221119.1","System.PhaseName":"run_test_p1__Linux_x64_checked","operatingSystem":"Ubuntu.1804.Amd64.Open","System.JobName":"__default","System.PhaseAttempt":"1","architecture":"x64","System.JobId":"6dfec640-5b96-5d95-2a5b-7c236ea2d5c5","Reason":"Schedule"} Schedule
2022-11-19T20:51:17.451Z runtime-coreclr ilasm Checked-ilasmroundtrip ubuntu.1804.armarch.open arm64 baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.sh Failed {"architecture":"arm64","System.JobId":"34b2f53b-add1-5e74-7a39-5a11483297fc","BuildId":"88711","Project":"public","System.PhaseName":"run_test_p1__Linux_arm64_checked","DefinitionId":"140","System.JobName":"__default","CollectionUri":"https://dev.azure.com/dnceng-public/","AzurePipelinesTestRunId":"1867336","Reason":"Schedule","operatingSystem":"(Ubuntu.1804.Arm64.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8","System.StageAttempt":"1","System.PhaseAttempt":"1","BuildNumber":"20221119.1","System.StageName":"Build","System.JobAttempt":"1","configuration":"Checked-ilasmroundtrip","DefinitionName":"runtime-coreclr ilasm"} Schedule
2022-11-19T20:48:25.822Z runtime-coreclr ilasm Checked-ilasmroundtrip ubuntu.1804.armarch.open arm baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.sh Failed {"BuildNumber":"20221119.1","operatingSystem":"(Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7","AzurePipelinesTestRunId":"1867310","DefinitionId":"140","System.StageName":"Build","System.JobId":"860c965f-b28e-50d5-65d2-e40bd59f3a69","architecture":"arm","CollectionUri":"https://dev.azure.com/dnceng-public/","System.JobAttempt":"1","DefinitionName":"runtime-coreclr ilasm","System.PhaseName":"run_test_p1__Linux_arm_checked","BuildId":"88711","System.JobName":"__default","Reason":"Schedule","System.StageAttempt":"1","Project":"public","System.PhaseAttempt":"1","configuration":"Checked-ilasmroundtrip"} Schedule
@v-wenyuxu v-wenyuxu added os-windows arch-x64 blocking-outerloop Blocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs labels Mar 20, 2023
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Mar 20, 2023
@ghost
Copy link

ghost commented Mar 20, 2023

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

Issue Details

Failed in Run: runtime-coreclr outerloop 20230318.3

Failed tests:

R2R-CG2 windows x64 Checked no_tiered_compilation @ Windows.10.Amd64.Open
    - baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

Error message:


Return code:      1
Raw output file:      C:hwAC570944wB68409ADuploads
egressions2164oreground-shutdownoutput.txt
Raw output:
BEGIN EXECUTION
foreground-shutdown.dll
       1 file(s) copied.
20:26:15.68
Response file: C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll.rsp
C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownIL-CG2oreground-shutdown.dll
-o:C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll
--targetarch:x64
--targetos:windows
--verify-type-and-field-layout
--method-layout:random
-r:C:hwAC570944pSystem.*.dll
-r:C:hwAC570944pMicrosoft.*.dll
-r:C:hwAC570944p\xunit.*.dll
-r:C:hwAC570944pmscorlib.dll
-r:C:hwAC570944p
etstandard.dll
-O
" "dotnet" "C:hwAC570944pcrossgen2crossgen2.dll" @"C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll.rsp"   -r:C:hwAC570944wB68409ADe�aseservices	hreading	hreading_group1IL-CG2*.dll  -r:C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownIL-CG2*.dll"
Emitting R2R PE file: C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll
" "dotnet" "C:hwAC570944p
2rdump
2rdump.dll" --header --sc --in C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll --out C:hwAC570944wB68409ADe�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll.r2rdump --val"
20:26:17.71
"C:hwAC570944pcorerun.exe" -p "System.Reflection.Metadata.MetadataUpdater.IsSupported=false"  foreground-shutdown.dll 
Xunit.Sdk.EqualException: Assert.Equal() Failure
Expected: 100
Actual:   101
  at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/xunit.assert/Asserts/EqualityAsserts.cs:line 96
  at __GeneratedMainWrapper.Main()
Expected: 100
Actual: 101
END EXECUTION - FAILED
FAILED
Test failed. Trying to see if dump file was created in C:cores since 3/18/2023 8:26:15 PM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> C:hwAC570944wB68409ADe�aseservices	hreading	hreading_group1../regressions/2164/foreground-shutdown/foreground-shutdown.cmd
Expected: True
Actual:   False

Stack trace:

  at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 132
  at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 116
  at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String basePath, String assemblyPath)
  at Program.<<Main>$>g__TestExecutor2|0_1(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
Queued Pipeline Pipeline_Configuration OS Arch Test Outcome Properties BuildReason
2022-11-19T20:51:51.061Z runtime-coreclr ilasm Checked-ilasmroundtrip ubuntu.1804.amd64.open.rt x64 baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.sh Failed {"System.StageName":"Build","DefinitionId":"140","BuildId":"88711","Project":"public","System.JobAttempt":"1","configuration":"Checked-ilasmroundtrip","System.StageAttempt":"1","AzurePipelinesTestRunId":"1867338","CollectionUri":"https://dev.azure.com/dnceng-public/","DefinitionName":"runtime-coreclr ilasm","BuildNumber":"20221119.1","System.PhaseName":"run_test_p1__Linux_x64_checked","operatingSystem":"Ubuntu.1804.Amd64.Open","System.JobName":"__default","System.PhaseAttempt":"1","architecture":"x64","System.JobId":"6dfec640-5b96-5d95-2a5b-7c236ea2d5c5","Reason":"Schedule"} Schedule
2022-11-19T20:51:17.451Z runtime-coreclr ilasm Checked-ilasmroundtrip ubuntu.1804.armarch.open arm64 baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.sh Failed {"architecture":"arm64","System.JobId":"34b2f53b-add1-5e74-7a39-5a11483297fc","BuildId":"88711","Project":"public","System.PhaseName":"run_test_p1__Linux_arm64_checked","DefinitionId":"140","System.JobName":"__default","CollectionUri":"https://dev.azure.com/dnceng-public/","AzurePipelinesTestRunId":"1867336","Reason":"Schedule","operatingSystem":"(Ubuntu.1804.Arm64.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm64v8","System.StageAttempt":"1","System.PhaseAttempt":"1","BuildNumber":"20221119.1","System.StageName":"Build","System.JobAttempt":"1","configuration":"Checked-ilasmroundtrip","DefinitionName":"runtime-coreclr ilasm"} Schedule
2022-11-19T20:48:25.822Z runtime-coreclr ilasm Checked-ilasmroundtrip ubuntu.1804.armarch.open arm baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.sh Failed {"BuildNumber":"20221119.1","operatingSystem":"(Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7","AzurePipelinesTestRunId":"1867310","DefinitionId":"140","System.StageName":"Build","System.JobId":"860c965f-b28e-50d5-65d2-e40bd59f3a69","architecture":"arm","CollectionUri":"https://dev.azure.com/dnceng-public/","System.JobAttempt":"1","DefinitionName":"runtime-coreclr ilasm","System.PhaseName":"run_test_p1__Linux_arm_checked","BuildId":"88711","System.JobName":"__default","Reason":"Schedule","System.StageAttempt":"1","Project":"public","System.PhaseAttempt":"1","configuration":"Checked-ilasmroundtrip"} Schedule
Author: v-wenyuxu
Assignees: -
Labels:

area-System.Threading, os-windows, arch-x64, untriaged, blocking-outerloop

Milestone: -

@v-wenyuxu
Copy link
Author

v-wenyuxu commented Mar 28, 2023

Failed again in: runtime-coreclr r2r-extra 20230326.1

Failed test:

R2R-CG2 windows x64 Checked jitstressregs0x80 @ Windows.10.Amd64.Open

- baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

R2R-CG2 windows x64 Checked jitstressregs1 @ Windows.10.Amd64.Open

- baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

R2R-CG2 windows x64 Checked jitstressregs4 @ Windows.10.Amd64.Open

- baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

R2R-CG2 windows x64 Checked jitstressregs3 @ Windows.10.Amd64.Open

- baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

R2R-CG2 windows x64 Checked jitstress2 @ Windows.10.Amd64.Open

- baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

R2R-CG2 windows x64 Checked jitstressregs2 @ Windows.10.Amd64.Open

- baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

Error message:

Return code:      1
Raw output file:      C:hwA9FF0918wB31A09C1uploads
egressions2164oreground-shutdownoutput.txt
Raw output:
BEGIN EXECUTION
foreground-shutdown.dll
1 file(s) copied.
4:04:36.29
Response file: C:hwA9FF0918wB31A09C1e�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll.rsp
C:hwA9FF0918wB31A09C1e�aseservices	hreading
egressions2164oreground-shutdownIL-CG2oreground-shutdown.dll
-o:C:hwA9FF0918wB31A09C1e�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll
--targetarch:x64
--targetos:windows
--verify-type-and-field-layout
--method-layout:random
-r:C:hwA9FF0918pSystem..dll
-r:C:hwA9FF0918pMicrosoft..dll
-r:C:hwA9FF0918p\xunit..dll
-r:C:hwA9FF0918pmscorlib.dll
-r:C:hwA9FF0918p
etstandard.dll
-O
" "dotnet" "C:hwA9FF0918pcrossgen2crossgen2.dll" @"C:hwA9FF0918wB31A09C1e�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll.rsp"   -r:C:hwA9FF0918wB31A09C1e�aseservices	hreading	hreading_group1IL-CG2.dll  -r:C:hwA9FF0918wB31A09C1e�aseservices	hreading
egressions2164oreground-shutdownIL-CG2*.dll"
Emitting R2R PE file: C:hwA9FF0918wB31A09C1e�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll
" "dotnet" "C:hwA9FF0918p
2rdump
2rdump.dll" --header --sc --in C:hwA9FF0918wB31A09C1e�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll --out C:hwA9FF0918wB31A09C1e�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll.r2rdump --val"
4:04:38.15
"C:hwA9FF0918pcorerun.exe" -p "System.Reflection.Metadata.MetadataUpdater.IsSupported=false"  foreground-shutdown.dll
Xunit.Sdk.EqualException: Assert.Equal() Failure
Expected: 100
Actual:   101
at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/xunit.assert/Asserts/EqualityAsserts.cs:line 96
at __GeneratedMainWrapper.Main()
Expected: 100
Actual: 101
END EXECUTION - FAILED
FAILED
Test failed. Trying to see if dump file was created in C:cores since 3/27/2023 4:04:36 AM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.

C:hwA9FF0918wB31A09C1e�aseservices	hreading	hreading_group1../regressions/2164/foreground-shutdown/foreground-shutdown.cmd
Expected: True
Actual:   False


Stack trace
   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 132
   at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 116
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String basePath, String assemblyPath)
   at Program.<<Main>$>g__TestExecutor2|0_1(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)

@markples
Copy link
Member

fyi - This test was switched to running in a merged test group around the time of this failure. However, it sets RequiresProcessIsolation (because of the Environment.Exit), so there is very little change in behavior. There is a new autogenerated wrapper method that calls the test method rather than the test method itself being the process entry point. I don't think this is the cause, but it's probably something to keep in mind.

@BruceForstall
Copy link
Member

@mangod9

@mangod9
Copy link
Member

mangod9 commented Mar 30, 2023

Is this an intermittent failure? @kouvel if he has any insights into this test.

@JulieLeeMSFT
Copy link
Member

@JulieLeeMSFT JulieLeeMSFT added the blocking-clean-ci-optional Blocking optional rolling runs label Mar 31, 2023
@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr jitstress 20230402.1

Failed test:

coreclr windows x64 Checked jitstress1_tiered @ Windows.10.Amd64.Open

- baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

Error message:

Return code:      1
Raw output file:      C:hwB5D10A03wA87F08D9uploads
egressions2164oreground-shutdownoutput.txt
Raw output:
BEGIN EXECUTION
"C:hwB5D10A03pcorerun.exe" -p "System.Reflection.Metadata.MetadataUpdater.IsSupported=false"  foreground-shutdown.dll
Xunit.Sdk.EqualException: Assert.Equal() Failure
Expected: 100
Actual:   101
at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in //src/xunit.assert/Asserts/EqualityAsserts.cs:line 96
at Xunit.Assert.Equal[T](T expected, T actual) in //src/xunit.assert/Asserts/EqualityAsserts.cs:line 63
at __GeneratedMainWrapper.Main()
Expected: 100
Actual: 101
END EXECUTION - FAILED
FAILED
Test failed. Trying to see if dump file was created in C:cores since 4/3/2023 5:47:01 AM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.

C:hwB5D10A03wA87F08D9e�aseservices	hreading	hreading_group1../regressions/2164/foreground-shutdown/foreground-shutdown.cmd
Expected: True
Actual:   False


Stack trace
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String basePath, String assemblyPath)
   at Program.<<Main>$>g__TestExecutor2|0_1(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)

@BruceForstall
Copy link
Member

Probably dup of #84006

@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr outerloop 20230417.2

Failed test:

R2R-CG2 windows x64 Checked @ Windows.10.Amd64.Open
baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

Error message:

Return code:      1
Raw output file:      C:hwA6920911wAA1D0918uploads
egressions2164oreground-shutdownoutput.txt
Raw output:
BEGIN EXECUTION
foreground-shutdown.dll
1 file(s) copied.
20:07:42.69
Response file: C:hwA6920911wAA1D0918e�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll.rsp
C:hwA6920911wAA1D0918e�aseservices	hreading
egressions2164oreground-shutdownIL-CG2oreground-shutdown.dll
-o:C:hwA6920911wAA1D0918e�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll
--targetarch:x64
--targetos:windows
--verify-type-and-field-layout
--method-layout:random
-r:C:hwA6920911pSystem..dll
-r:C:hwA6920911pMicrosoft..dll
-r:C:hwA6920911p\xunit..dll
-r:C:hwA6920911pmscorlib.dll
-r:C:hwA6920911p
etstandard.dll
-O
" "dotnet" "C:hwA6920911pcrossgen2crossgen2.dll" @"C:hwA6920911wAA1D0918e�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll.rsp"   -r:C:hwA6920911wAA1D0918e�aseservices	hreading	hreading_group1IL-CG2.dll  -r:C:hwA6920911wAA1D0918e�aseservices	hreading
egressions2164oreground-shutdownIL-CG2*.dll"
Emitting R2R PE file: C:hwA6920911wAA1D0918e�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll
" "dotnet" "C:hwA6920911p
2rdump
2rdump.dll" --header --sc --in C:hwA6920911wAA1D0918e�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll --out C:hwA6920911wAA1D0918e�aseservices	hreading
egressions2164oreground-shutdownoreground-shutdown.dll.r2rdump --val"
20:07:44.03
"C:hwA6920911pcorerun.exe" -p "System.Reflection.Metadata.MetadataUpdater.IsSupported=false" -p "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true"  foreground-shutdown.dll
Xunit.Sdk.EqualException: Assert.Equal() Failure
Expected: 100
Actual:   101
at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in //src/xunit.assert/Asserts/EqualityAsserts.cs:line 96
at Xunit.Assert.Equal[T](T expected, T actual) in //src/xunit.assert/Asserts/EqualityAsserts.cs:line 63
at __GeneratedMainWrapper.Main()
Expected: 100
Actual: 101
END EXECUTION - FAILED
FAILED
Test failed. Trying to see if dump file was created in C:cores since 4/17/2023 8:07:42 PM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> C:hwA6920911wAA1D0918e�aseservices	hreading	hreading_group1../regressions/2164/foreground-shutdown/foreground-shutdown.cmd
Expected: True
Actual:   False


Stack trace
   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 132
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String basePath, String assemblyPath)
   at Program.&lt;&lt;Main&gt;$&gt;g__TestExecutor2|0_1(StreamWriter tempLogSw, StreamWriter statsCsvSw, &lt;&gt;c__DisplayClass0_0&amp;)

@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr jitstress 20230425.5

Failed test:

coreclr windows x64 Checked jitstress1_tiered @ Windows.10.Amd64.Open

- baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

Error message:

Return code:      1
Raw output file:      C:hwAE770A0Dw94A60839uploads
egressions2164oreground-shutdownoutput.txt
Raw output:
BEGIN EXECUTION
"C:hwAE770A0Dpcorerun.exe" -p "System.Reflection.Metadata.MetadataUpdater.IsSupported=false" -p "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true"  foreground-shutdown.dll
Xunit.Sdk.EqualException: Assert.Equal() Failure
Expected: 100
Actual:   101
at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in //src/xunit.assert/Asserts/EqualityAsserts.cs:line 96
at Xunit.Assert.Equal[T](T expected, T actual) in //src/xunit.assert/Asserts/EqualityAsserts.cs:line 63
at __GeneratedMainWrapper.Main()
Expected: 100
Actual: 101
END EXECUTION - FAILED
FAILED
Test failed. Trying to see if dump file was created in C:cores since 4/26/2023 6:01:24 AM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> C:hwAE770A0Dw94A60839e�aseservices	hreading	hreading_group1../regressions/2164/foreground-shutdown/foreground-shutdown.cmd
Expected: True
Actual:   False


Stack trace
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String basePath, String assemblyPath)
   at Program.&lt;&lt;Main&gt;$&gt;g__TestExecutor2|0_1(StreamWriter tempLogSw, StreamWriter statsCsvSw, &lt;&gt;c__DisplayClass0_0&amp;)

@BruceForstall
Copy link
Member

@mangod9
Copy link
Member

mangod9 commented May 3, 2023

yeah probably needs to be disabled. @eduardo-vp since you are running threading/TP tests recently, could you please take a look at this?

BruceForstall added a commit to BruceForstall/runtime that referenced this issue May 8, 2023
This test has failed across many configurations, but apparently only
on Windows. Tracked by dotnet#84006,
dotnet#83658.
@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr jitstress 20230507.2

Failed tests:

coreclr windows x64 Checked jitstress1_tiered @ Windows.10.Amd64.Open
    - baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

Error message:

 
Return code:      1
Raw output file:      C:hwA0B3088AwB11109B5uploads
egressions2164oreground-shutdownoutput.txt
Raw output:
BEGIN EXECUTION
 &quot;C:hwA0B3088Apcorerun.exe&quot; -p &quot;System.Reflection.Metadata.MetadataUpdater.IsSupported=false&quot; -p &quot;System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true&quot;  foreground-shutdown.dll 
Xunit.Sdk.EqualException: Assert.Equal() Failure
Expected: 100
Actual:   101
   at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/xunit.assert/Asserts/EqualityAsserts.cs:line 96
   at Xunit.Assert.Equal[T](T expected, T actual) in /_/src/xunit.assert/Asserts/EqualityAsserts.cs:line 63
   at __GeneratedMainWrapper.Main()
Expected: 100
Actual: 101
END EXECUTION - FAILED
FAILED
Test failed. Trying to see if dump file was created in C:cores since 5/8/2023 5:50:09 AM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
&gt; C:hwA0B3088AwB11109B5e�aseservices	hreading	hreading_group1../regressions/2164/foreground-shutdown/foreground-shutdown.cmd
Expected: True
Actual:   False

Stack trace:

    at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String basePath, String assemblyPath)
   at Program.&lt;&lt;Main&gt;$&gt;g__TestExecutor2|0_1(StreamWriter tempLogSw, StreamWriter statsCsvSw, &lt;&gt;c__DisplayClass0_0&amp;)

trylek pushed a commit that referenced this issue May 9, 2023
This test has failed across many configurations, but apparently only
on Windows. Tracked by #84006,
#83658.
@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr jitstress-isas-x86 20230610.1

Failed tests:

coreclr osx x64 Checked jitstress_isas_x86_nosse @ OSX.1200.Amd64.Open
    - baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

Error message:

 
Return code:      1
Raw output file:      /tmp/helix/working/B48C09AB/w/A920094F/uploads/regressions/2164/foreground-shutdown/output.txt
Raw output:
BEGIN EXECUTION
/tmp/helix/working/B48C09AB/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true foreground-shutdown.dll ''
Xunit.Sdk.EqualException: Assert.Equal() Failure
Expected: 100
Actual:   101
   at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/xunit.assert/Asserts/EqualityAsserts.cs:line 96
   at __GeneratedMainWrapper.Main()
Expected: 100
Actual: 101
END EXECUTION - FAILED
Test failed. Trying to see if dump file was created in /cores since 6/10/2023 2:57:01 PM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> /private/tmp/helix/working/B48C09AB/w/A920094F/e/baseservices/threading/threading_group1/../regressions/2164/foreground-shutdown/foreground-shutdown.sh
Expected: True
Actual:   False

Stack trace:

    at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 132
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath)
   at Program.<<Main>$>g__TestExecutor78|0_79(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)

@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr jitstressregs-x86 20230702.1

Failed tests:

coreclr linux x64 Checked jitstressregs2_x86_noavx @ Ubuntu.1804.Amd64.Open
    - baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

Error message:

 
Return code:      1
Raw output file:      /datadisks/disk1/work/CBC10A93/w/B4210977/uploads/regressions/2164/foreground-shutdown/output.txt
Raw output:
BEGIN EXECUTION
/datadisks/disk1/work/CBC10A93/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true foreground-shutdown.dll ''
Xunit.Sdk.EqualException: Assert.Equal() Failure
Expected: 100
Actual:   101
   at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/xunit.assert/Asserts/EqualityAsserts.cs:line 96
   at __GeneratedMainWrapper.Main()
Expected: 100
Actual: 101
END EXECUTION - FAILED
Test failed. Trying to see if dump file was created in /home/helixbot/dotnetbuild/dumps since 7/2/2023 8:40:16 PM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> /datadisks/disk1/work/CBC10A93/w/B4210977/e/baseservices/threading/threading_group1/../regressions/2164/foreground-shutdown/foreground-shutdown.sh
Expected: True
Actual:   False

Stack trace:

   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 132
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath)
   at Program.<<Main>$>g__TestExecutor78|0_79(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)

@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr jitstress2-jitstressregs 20230722.1

Failed tests:

coreclr osx x64 Checked jitstress2_jitstressregs0x10 @ OSX.1200.Amd64.Open
    - baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

Error message:

 
Return code:      1
Raw output file:      /tmp/helix/working/9AD10864/w/C0790A7A/uploads/regressions/2164/foreground-shutdown/output.txt
Raw output:
BEGIN EXECUTION
/tmp/helix/working/9AD10864/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true foreground-shutdown.dll ''
Xunit.Sdk.EqualException: Assert.Equal() Failure
Expected: 100
Actual:   101
   at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/xunit.assert/Asserts/EqualityAsserts.cs:line 96
   at __GeneratedMainWrapper.Main()
Expected: 100
Actual: 101
END EXECUTION - FAILED
Test failed. Trying to see if dump file was created in /cores since 7/22/2023 3:12:36 PM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> /private/tmp/helix/working/9AD10864/w/C0790A7A/e/baseservices/threading/threading_group1/../regressions/2164/foreground-shutdown/foreground-shutdown.sh
Expected: True
Actual:   False

Stack trace:

   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 132
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath)
   at Program.<<Main>$>g__TestExecutor78|0_79(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)

@mangod9 mangod9 removed the untriaged New issue has not been triaged by the area owner label Jul 24, 2023
@mangod9 mangod9 added this to the 8.0.0 milestone Jul 24, 2023
@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr r2r-extra 20230814.1

Failed tests:

R2R-CG2 linux arm Checked gcstress0xc @ (Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7
    - baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

Error message:

/root/helix/work/workitem/e/baseservices/threading/threading_group1/../regressions/2164/foreground-shutdown/foreground-shutdown.sh: line 304: -r:/root/helix/work/workitem/e/baseservices/threading/regressions/2164/foreground-shutdown/IL-CG2/*.dll: No such file or directory

Return code:      1
Raw output file:      /root/helix/work/workitem/uploads/regressions/2164/foreground-shutdown/output.txt
Raw output:
BEGIN EXECUTION
in takeLock
/root/helix/work/workitem/e/baseservices/threading/regressions/2164/foreground-shutdown/IL-CG2/foreground-shutdown.dll
07:59:26
Response file: /root/helix/work/workitem/e/baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.dll.rsp
/root/helix/work/workitem/e/baseservices/threading/regressions/2164/foreground-shutdown/IL-CG2/foreground-shutdown.dll
-o:/root/helix/work/workitem/e/baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.dll
-r:/root/helix/work/correlation/System.*.dll
-r:/root/helix/work/correlation/Microsoft.*.dll
-r:/root/helix/work/correlation/xunit.*.dll
-r:/root/helix/work/correlation/mscorlib.dll
--verify-type-and-field-layout
--method-layout:random
--targetarch:arm
--targetos:linux
Running CrossGen2:  dotnet /root/helix/work/correlation/crossgen2/crossgen2.dll @/root/helix/work/workitem/e/baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.dll.rsp  
Emitting R2R PE file: /root/helix/work/workitem/e/baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.dll
Running R2RDump:  dotnet /root/helix/work/correlation/R2RDump/R2RDump.dll --header --sc --in /root/helix/work/workitem/e/baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.dll --out /root/helix/work/workitem/e/baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.dll.r2rdump --val
07:59:28
in ReleaseLock
in takeLock
/root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true foreground-shutdown.dll ''
Xunit.Sdk.EqualException: Assert.Equal() Failure
Expected: 100
Actual:   101
   at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/xunit.assert/Asserts/EqualityAsserts.cs:line 96
   at __GeneratedMainWrapper.Main()
in ReleaseLock
Expected: 100
Actual: 101
END EXECUTION - FAILED
Test failed. Trying to see if dump file was created in /home/helixbot/dotnetbuild/dumps since 8/15/2023 7:59:26 AM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> /root/helix/work/workitem/e/baseservices/threading/threading_group1/../regressions/2164/foreground-shutdown/foreground-shutdown.sh
Expected: True
Actual:   False

Stack trace:

   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 132
   at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 116
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath)
   at Program.<<Main>$>g__TestExecutor78|0_79(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)

@v-wenyuxu
Copy link
Author

Failed again in: runtime-coreclr pgostress 20230825.1

Failed tests:

coreclr linux arm Checked fullpgo @ (Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7
    - baseservices/threading/regressions/2164/foreground-shutdown/foreground-shutdown.cmd

Error message:

 
Return code:      1
Raw output file:      /root/helix/work/workitem/uploads/regressions/2164/foreground-shutdown/output.txt
Raw output:
BEGIN EXECUTION
/root/helix/work/correlation/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false -p System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization=true foreground-shutdown.dll ''
Xunit.Sdk.EqualException: Assert.Equal() Failure
Expected: 100
Actual:   101
   at Xunit.Assert.Equal[T](T expected, T actual, IEqualityComparer`1 comparer) in /_/src/xunit.assert/Asserts/EqualityAsserts.cs:line 96
   at Xunit.Assert.Equal[T](T expected, T actual) in /_/src/xunit.assert/Asserts/EqualityAsserts.cs:line 63
   at __GeneratedMainWrapper.Main()
Expected: 100
Actual: 101
END EXECUTION - FAILED
Test failed. Trying to see if dump file was created in /home/helixbot/dotnetbuild/dumps since 8/26/2023 7:49:05 AM
Test Harness Exitcode is : 1
To run the test:
Set up CORE_ROOT and run.
> /root/helix/work/workitem/e/baseservices/threading/threading_group1/../regressions/2164/foreground-shutdown/foreground-shutdown.sh
Expected: True
Actual:   False

Stack trace:

   at Xunit.Assert.True(Nullable`1 condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 132
   at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 116
   at TestLibrary.OutOfProcessTest.RunOutOfProcessTest(String assemblyPath)
   at Program.<<Main>$>g__TestExecutor78|0_79(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)

@kouvel kouvel modified the milestones: 8.0.0, 9.0.0 Sep 7, 2023
@kouvel
Copy link
Member

kouvel commented Sep 7, 2023

It's not clear yet why this is happening. This issue seems to be different from #84006, which is a hang and I have a fix for. For this issue I've only seen it occur one time locally in many hours of running the tests. It'll probably need more testing with additional logging in the runtime to get more info when it does happen. For now, I've moved this issue to 9.0 and I'll disable the test.

kouvel added a commit to kouvel/runtime that referenced this issue Sep 7, 2023
…pending on timing with GCs

- On Windows when a thread calls `ExitProcess`, the `TlsDestructionMonitor` for the thread appears to be destructed after all other threads in the process are torn down. It's possible for a GC to be in progress during that time, and the thread cleanup code in `TlsDestructionMonitor` tries to enter cooperative GC mode to fix the frame pointer, leading to a hang. Fixed by deactivating the `TlsDestructionMonitor` for the thread before calling `ExitProcess`.
- Also disabled the relevant test due to a different issue dotnet#83658 occurring in the same test on multiple platforms/architectures that is not understood yet.

Fixes dotnet#84006
kouvel added a commit to kouvel/runtime that referenced this issue Sep 18, 2023
Issue dotnet#83658 appears to be occurring on multiple platforms/architectures and is not understood yet.
@mangod9 mangod9 added the disabled-test The test is disabled in source code against the issue label Sep 18, 2023
kouvel added a commit that referenced this issue Sep 22, 2023
Issue #83658 appears to be occurring on multiple platforms/architectures and is not understood yet.
@kouvel kouvel modified the milestones: 9.0.0, 10.0.0 Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Threading blocking-clean-ci-optional Blocking optional rolling runs blocking-outerloop Blocking the 'runtime-coreclr outerloop' and 'runtime-libraries-coreclr outerloop' runs disabled-test The test is disabled in source code against the issue
Projects
None yet
Development

No branches or pull requests

7 participants