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

[tests] System.Text.Json.Tests segfault, for Libraries Test Run release coreclr OSX x64 Release #47805

Closed
Anipik opened this issue Feb 3, 2021 · 19 comments
Assignees
Labels
area-GC-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'

Comments

@Anipik
Copy link
Contributor

Anipik commented Feb 3, 2021

/tmp/helix/working/AFBC0A27/p/dotnet exec --runtimeconfig System.Text.Json.Tests.runtimeconfig.json --depsfile System.Text.Json.Tests.deps.json xunit.console.dll System.Text.Json.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/AFBC0A27/w/A45108B5/e /private/tmp/helix/working/AFBC0A27/w/A45108B5/e
  Discovering: System.Text.Json.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Text.Json.Tests (found 2262 of 2294 test cases)
  Starting:    System.Text.Json.Tests (parallel test collections = on, max threads = 4)
./RunTests.sh: line 162:  4756 Segmentation fault: 11  (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Text.Json.Tests.runtimeconfig.json --depsfile System.Text.Json.Tests.deps.json xunit.console.dll System.Text.Json.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing $RSP_FILE
/private/tmp/helix/working/AFBC0A27/w/A45108B5/e
----- end Tue Feb 2 11:45:29 PST 2021 ----- exit code 139 ----------------------------------------------------------
exit code 139 means SIGSEGV Illegal memory access. Deref invalid pointer, overrunning buffer, stack overflow etc. Core 

log https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-master-9a64c530bf744066ac/System.Text.Json.Tests/console.f709eb52.log?sv=2019-07-07&se=2021-02-22T19%3A41%3A51Z&sr=c&sp=rl&sig=xU%2FU9Zqz9syAbZ7PJnLwtfBYk6DtHDt4CTs5OIRB6dI%3D

build https://dev.azure.com/dnceng/public/_build/results?buildId=975991&view=logs&j=05e92ac1-194e-59cf-664a-fa72d1cdd19b&t=caea1d4b-c90c-5be1-e57d-c4635079c333

Runfo Tracking Issue: system.text.json.tests OSX failure

Build Definition Kind Run Name Console Core Dump Test Results Run Client
1082899 runtime PR 51099 net6.0-Linux-Release-arm-CoreCLR_checked-(Alpine.312.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm32v7-20200908125213-5bece88 console.log core dump
1082303 runtime PR 51073 net6.0-OSX-Debug-x64-CoreCLR_checked-OSX.1013.Amd64.Open console.log core dump runclient.py
1080651 runtime PR 51025 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log test results runclient.py
1080651 runtime PR 51025 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log test results runclient.py
1080305 runtime PR 50832 net6.0-Linux-Release-arm64-CoreCLR_checked-(Alpine.312.Arm64.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm64v8-20200602002604-25f8a3e console.log core dump runclient.py
1078239 runtime PR 50893 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1078239 runtime PR 50893 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1077590 runtime PR 50885 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1077590 runtime PR 50885 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1077551 runtime PR 50893 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1077551 runtime PR 50893 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1072066 runtime PR 50364 net6.0-Linux-Release-arm-CoreCLR_checked-(Alpine.312.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm32v7-20200908125213-5bece88 console.log core dump runclient.py
1072066 runtime PR 50364 net6.0-Linux-Release-arm-CoreCLR_checked-(Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7-bfcd90a-20200121150440 console.log core dump
1071508 runtime PR 50364 net6.0-Linux-Release-arm-CoreCLR_checked-(Alpine.312.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm32v7-20200908125213-5bece88 console.log core dump
1071508 runtime PR 50364 net6.0-Linux-Release-arm-CoreCLR_checked-(Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7-bfcd90a-20200121150440 console.log core dump
1069839 runtime Rolling net6.0-OSX-Release-x64-CoreCLR_release-OSX.1013.Amd64.Open console.log core dump runclient.py
1069839 runtime Rolling net6.0-OSX-Release-x64-CoreCLR_checked-OSX.1013.Amd64.Open console.log runclient.py
1069447 runtime Rolling net6.0-OSX-Release-x64-CoreCLR_release-OSX.1014.Amd64.Open console.log core dump runclient.py
1067051 runtime PR 50479 net6.0-OSX-Debug-x64-Mono_release-OSX.1014.Amd64.Open console.log core dump runclient.py
1067051 runtime PR 50479 net6.0-OSX-Debug-x64-Mono_release-OSX.1015.Amd64.Open console.log
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-mono_interpreter_release-Debian.9.Amd64.Open console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-Mono_release-(Centos.8.Amd64.Open)Ubuntu.1604.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:centos-8-helix-20201229003624-c1bf759 console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-Mono_release-RedHat.7.Amd64.Open console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-Mono_release-(Debian.10.Amd64.Open)ubuntu.1604.amd64.open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-bfcd90a-20200121150006 console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-Mono_release-Ubuntu.1604.Amd64.Open console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-Mono_release-Ubuntu.1804.Amd64.Open console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-Mono_release-SLES.15.Amd64.Open console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-Mono_release-(Fedora.30.Amd64.Open)ubuntu.1604.amd64.open@mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-30-helix-20200512010621-4f8cef7 console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-arm64-Mono_release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-helix-arm64v8-20210106155927-56c6673 console.log core dump
1067051 runtime PR 50479 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log
1066426 runtime PR 50364 net6.0-Linux-Release-arm-CoreCLR_checked-(Alpine.312.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm32v7-20200908125213-5bece88 console.log core dump
1066426 runtime PR 50364 net6.0-Linux-Release-arm-CoreCLR_checked-(Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7-bfcd90a-20200121150440 console.log core dump
1065829 runtime Rolling net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1065829 runtime Rolling net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1064164 runtime PR 50446 net6.0-windows-Release-x86-CoreCLR_checked-Windows.10.Amd64.Open console.log runclient.py
1064164 runtime PR 50446 net6.0-Linux-Release-arm64-CoreCLR_checked-(Alpine.312.Arm64.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm64v8-20200602002604-25f8a3e console.log core dump runclient.py
1064164 runtime PR 50446 net6.0-Linux-Release-arm-CoreCLR_checked-(Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7-bfcd90a-20200121150440 console.log core dump runclient.py
1064164 runtime PR 50446 net6.0-Linux-Release-arm-CoreCLR_checked-(Alpine.312.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm32v7-20200908125213-5bece88 console.log core dump runclient.py
1063804 runtime Rolling net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1063487 runtime PR 50421 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1063487 runtime PR 50421 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1063487 runtime PR 50421 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1063487 runtime PR 50421 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1061583 runtime Rolling net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1061583 runtime Rolling net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1061318 runtime PR 50360 net6.0-Linux-Release-arm-CoreCLR_checked-(Alpine.312.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm32v7-20200908125213-5bece88 console.log core dump runclient.py
1061318 runtime PR 50360 net6.0-Linux-Release-arm-CoreCLR_checked-(Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7-bfcd90a-20200121150440 console.log core dump runclient.py
1061318 runtime PR 50360 net6.0-Linux-Release-arm64-CoreCLR_checked-(Alpine.312.Arm64.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm64v8-20200602002604-25f8a3e console.log core dump runclient.py
1061318 runtime PR 50360 net6.0-windows-Release-x86-CoreCLR_checked-Windows.10.Amd64.Open console.log
1059587 runtime PR 50280 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1057317 runtime Rolling net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1057171 runtime PR 50082 net6.0-windows-Release-x86-CoreCLR_checked-Windows.10.Amd64.Open console.log runclient.py
1057171 runtime PR 50082 net6.0-Linux-Release-arm-CoreCLR_checked-(Alpine.312.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm32v7-20200908125213-5bece88 console.log core dump runclient.py
1057171 runtime PR 50082 net6.0-Linux-Release-arm-CoreCLR_checked-(Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7-bfcd90a-20200121150440 console.log core dump runclient.py
1057171 runtime PR 50082 net6.0-Linux-Release-arm64-CoreCLR_checked-(Alpine.312.Arm64.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm64v8-20200602002604-25f8a3e console.log core dump runclient.py
1056573 runtime PR 50254 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1056573 runtime PR 50254 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1056573 runtime PR 50254 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1056573 runtime PR 50254 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1056573 runtime PR 50254 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1056573 runtime PR 50254 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1056573 runtime PR 50254 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1055639 runtime PR 50227 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump test results runclient.py
1055639 runtime PR 50227 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1055639 runtime PR 50227 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1050314 runtime PR 48601 net6.0-windows-Debug-x64-CoreCLR_checked-Windows.10.Amd64.Open console.log
1050243 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log
1050243 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log
1047146 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log
1047146 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log
1047146 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log
1047146 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-mono_interpreter_release-Debian.9.Amd64.Open console.log core dump
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-Mono_release-(Centos.8.Amd64.Open)Ubuntu.1604.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:centos-8-helix-20201229003624-c1bf759 console.log core dump
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-Mono_release-RedHat.7.Amd64.Open console.log core dump runclient.py
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-Mono_release-(Debian.10.Amd64.Open)ubuntu.1604.amd64.open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-bfcd90a-20200121150006 console.log core dump
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-Mono_release-Ubuntu.1604.Amd64.Open console.log core dump
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-Mono_release-Ubuntu.1804.Amd64.Open console.log core dump
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-Mono_release-SLES.15.Amd64.Open console.log core dump
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-Mono_release-(Fedora.30.Amd64.Open)ubuntu.1604.amd64.open@mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-30-helix-20200512010621-4f8cef7 console.log core dump
1046026 runtime PR 49740 net6.0-Linux-Debug-arm64-Mono_release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-helix-arm64v8-20210106155927-56c6673 console.log core dump
1046026 runtime PR 49740 net6.0-OSX-Debug-x64-Mono_release-OSX.1014.Amd64.Open console.log core dump
1046026 runtime PR 49740 net6.0-OSX-Debug-x64-Mono_release-OSX.1015.Amd64.Open console.log core dump
1045420 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log
1045420 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log
1041458 runtime PR 49691 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py
1041458 runtime PR 49691 net6.0-windows-Debug-x64-Mono_release-Windows.10.Amd64.Server19H1.ES.Open console.log runclient.py
1041454 runtime PR 49693 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py
1041454 runtime PR 49693 net6.0-windows-Debug-x64-Mono_release-Windows.10.Amd64.Server19H1.ES.Open console.log runclient.py
1041454 runtime PR 49693 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py
1041454 runtime PR 49693 net6.0-windows-Debug-x64-Mono_release-Windows.10.Amd64.Server19H1.ES.Open console.log runclient.py
1041440 runtime PR 49544 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py
1041440 runtime PR 49544 net6.0-windows-Debug-x64-Mono_release-Windows.10.Amd64.Server19H1.ES.Open console.log runclient.py
1041440 runtime PR 49544 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py
1041440 runtime PR 49544 net6.0-windows-Debug-x64-Mono_release-Windows.10.Amd64.Server19H1.ES.Open console.log runclient.py
1041433 runtime PR 48226 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py
1041433 runtime PR 48226 net6.0-windows-Debug-x64-Mono_release-Windows.10.Amd64.Server19H1.ES.Open console.log runclient.py
1041428 runtime PR 49305 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py
1041428 runtime PR 49305 net6.0-windows-Debug-x64-Mono_release-Windows.10.Amd64.Server19H1.ES.Open console.log runclient.py
1041386 runtime PR 49540 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py

Displaying 100 of 583 results

Build Result Summary

Day Hit Count Week Hit Count Month Hit Count
1 7 129
@dotnet-issue-labeler dotnet-issue-labeler bot added area-System.Text.Json untriaged New issue has not been triaged by the area owner labels Feb 3, 2021
@ghost
Copy link

ghost commented Feb 3, 2021

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

Issue Details
/tmp/helix/working/AFBC0A27/p/dotnet exec --runtimeconfig System.Text.Json.Tests.runtimeconfig.json --depsfile System.Text.Json.Tests.deps.json xunit.console.dll System.Text.Json.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/AFBC0A27/w/A45108B5/e /private/tmp/helix/working/AFBC0A27/w/A45108B5/e
  Discovering: System.Text.Json.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Text.Json.Tests (found 2262 of 2294 test cases)
  Starting:    System.Text.Json.Tests (parallel test collections = on, max threads = 4)
./RunTests.sh: line 162:  4756 Segmentation fault: 11  (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Text.Json.Tests.runtimeconfig.json --depsfile System.Text.Json.Tests.deps.json xunit.console.dll System.Text.Json.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing $RSP_FILE
/private/tmp/helix/working/AFBC0A27/w/A45108B5/e
----- end Tue Feb 2 11:45:29 PST 2021 ----- exit code 139 ----------------------------------------------------------
exit code 139 means SIGSEGV Illegal memory access. Deref invalid pointer, overrunning buffer, stack overflow etc. Core 

log https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-master-9a64c530bf744066ac/System.Text.Json.Tests/console.f709eb52.log?sv=2019-07-07&se=2021-02-22T19%3A41%3A51Z&sr=c&sp=rl&sig=xU%2FU9Zqz9syAbZ7PJnLwtfBYk6DtHDt4CTs5OIRB6dI%3D

build https://dev.azure.com/dnceng/public/_build/results?buildId=975991&view=logs&j=05e92ac1-194e-59cf-664a-fa72d1cdd19b&t=caea1d4b-c90c-5be1-e57d-c4635079c333

Author: Anipik
Assignees: -
Labels:

area-System.Text.Json, untriaged

Milestone: -

@Anipik
Copy link
Contributor Author

Anipik commented Feb 3, 2021

seems similar to #46100

@Anipik Anipik added the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Feb 10, 2021
@Anipik
Copy link
Contributor Author

Anipik commented Feb 10, 2021

cc @layomia @steveharter

@steveharter
Copy link
Member

@ViktorHofer thoughts? I can't seem to find any crash dumps (via an "attachments" tab?) or other information.

It may be related to #46100, but I can't find what test(s) were running. I logged this previously about the lack of information available during crash dumps; at a minimum having the active test(s) that were running at the time of the crash would be valuable.

As a last resort, I could try running it on a local macbook repeatedly and hope it triggers the exception (with dump).

@danmoseley
Copy link
Member

crash dump: #46100 (comment)

@ViktorHofer
Copy link
Member

@steveharter did the crash dump work for you that @danmoseley shared above?

@danmoseley
Copy link
Member

danmoseley commented Mar 17, 2021

We have some fresh dumps for this now, and thanks to recent effort by @safern, getting set up debugging them is practically a single command.

I used this query --

https://engsrvprod.kusto.windows.net/engineeringdata?query=H4sIAAAAAAAEAJWSXWvCMBSG7wX%2fQ8hVC127zSGD0YH7EPRibLixyxGb4zza5pTkFBX241erpa3zZncpeZPzvE%2bTAouFwhS0iMWU5q7fi6IfsVmCBTGjwiYgEjKs0DghNbEBjmxhGDOQ%2fd5JMo6FTDDKi3mKSdRNRxYWLlqC0i7KlGOwUpD9%2f0k0cs8o6tGvlnKwjOBaoMkSkjXoFiFTShuw3lsBBYxSVM5v8vWmJLeVfqsWK8ulmnuhvskbXOpqL7e0goT3uiY6EKK5MqjrlHxBRebiXFkHXytHxmtQ%2faDtuQqGT7BAg4xkJrryMbwdVgVWhEas0egYjQHb73mfZNcThsw1qGOLYHS6e1HZweZsVzrOwnfYcjgtp5crx67rriKvTvxVMUpzNBAOrq7DUaaHNydeuHDVmAeln7fI8oyYmnK%2fPpoMxCMZRyl8WPQFmUP0rt8bl0%2bw3ab87HLJJW0umFp%2ftL6%2b07zJn%2fY%2fr%2fL49kuShvYXf5f9RRQDAAA%3d&web=0

let failed = Jobs
//| where Source contains "dotnet/runtime"
| where Source == "ci/public/dotnet/runtime/refs/heads/master" or Source == "ci/public/dotnet/runtime/refs/heads/main"
// | where Properties contains "checked"
| where tolower(QueueAlias) contains tolower("osx")
| where Started > ago(30d)
| project JobId, QueueAlias, Source // , Props=parse_json(Properties),
//| where Props.DefinitionId == "686"
| join kind=inner
(WorkItems
| where FriendlyName == "System.Text.Json.Tests"
// | where QueueName contains tolower("Alpine.312.Amd64")
| where Status == "BadExit"
| project JobId, WorkItemId, Started, ConsoleUri) on JobId;
Files
| where FileName contains "how-to"
| where WorkItemFriendlyName contains "System.Text.Json"
| join kind=inner
failed on WorkItemId

JobId JobName WorkItemId WorkItemName WorkItemFriendlyName Attempt EventId Uri FileName UploadSeconds SizeBytes JobId2 QueueAlias Source JobId1 WorkItemId1 Started ConsoleUri
13631952 70a9a136-d7a7-415d-89aa-62f3d1c6c159 570902239 7d86f8f1-3550-4ccb-8390-332c5a391de8 System.Text.Json.Tests 1 5463102564 https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-master-70a9a136d7a7415d89/System.Text.Json.Tests/how-to-debug-dump.md?sv=2019-07-07&se=2021-03-15T00%3A28%3A04Z&sr=c&sp=rl&sig=UbnWtUuINADGpHrkpjFLjG8xKihSz71djxadzUfXrGQ%3D how-to-debug-dump.md 0 6500 13631952 osx.1013.amd64.open ci/public/dotnet/runtime/refs/heads/master 13631952 570902239 2021-02-23 00:29:08.3060000 https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-master-70a9a136d7a7415d89/System.Text.Json.Tests/console.515a7b53.log?sv=2019-07-07&se=2021-03-15T00%3A28%3A04Z&sr=c&sp=rl&sig=UbnWtUuINADGpHrkpjFLjG8xKihSz71djxadzUfXrGQ%3D
13659135 92d9e820-e407-446f-929d-2c105c128dad 572125446 41197480-6a14-479d-b1e4-28fb29e1a6f2 System.Text.Json.Tests 1 5475736431 https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-master-92d9e820e407446f92/System.Text.Json.Tests/how-to-debug-dump.md?sv=2019-07-07&se=2021-03-16T03%3A39%3A55Z&sr=c&sp=rl&sig=KbW5pm6QyreQy1FhYQ4AsO6nvBB4Qyzy1%2F0o%2BssRDnY%3D how-to-debug-dump.md 0 6500 13659135 osx.1013.amd64.open ci/public/dotnet/runtime/refs/heads/master 13659135 572125446 2021-02-24 03:41:02.3600000 https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-master-92d9e820e407446f92/System.Text.Json.Tests/console.8c4b7126.log?sv=2019-07-07&se=2021-03-16T03%3A39%3A55Z&sr=c&sp=rl&sig=KbW5pm6QyreQy1FhYQ4AsO6nvBB4Qyzy1%2F0o%2BssRDnY%3D
13711303 9767a0a4-6430-499d-8f36-12da7a70b4da 574598097 ddd2029-33fd-463b-bd7d-8836a1d1a147 System.Text.Json.Tests 1 5500964830 https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-master-9767a0a46430499d8f/System.Text.Json.Tests/how-to-debug-dump.md?sv=2019-07-07&se=2021-03-18T11%3A48%3A57Z&sr=c&sp=rl&sig=EPQdAOJvD8GCdmmhXP%2B5AiuBl260SjMEae%2FDAIMZrx8%3D how-to-debug-dump.md 0 6500 13711303 osx.1013.amd64.open ci/public/dotnet/runtime/refs/heads/master 13711303 574598097 2021-02-26 11:49:59.9200000 https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-master-9767a0a46430499d8f/System.Text.Json.Tests/console.83da681c.log?sv=2019-07-07&se=2021-03-18T11%3A48%3A57Z&sr=c&sp=rl&sig=EPQdAOJvD8GCdmmhXP%2B5AiuBl260SjMEae%2FDAIMZrx8%3D
13918884 a18c2113-8e70-40f3-967c-ada5df3ab122 584030863 854de7a2-23a1-4d58-8276-fc7a31b9e4a3 System.Text.Json.Tests 1 5596681342 https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-a18c21138e7040f396/System.Text.Json.Tests/how-to-debug-dump.md?sv=2019-07-07&se=2021-03-30T03%3A30%3A16Z&sr=c&sp=rl&sig=RTYiC9aOfCFarBhU5meOO1Wfu3NZuEX9RSMimXvy5L0%3D how-to-debug-dump.md 0 6465 13918884 osx.1013.amd64.open ci/public/dotnet/runtime/refs/heads/main 13918884 584030863 2021-03-10 03:31:04.2550000 https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-a18c21138e7040f396/System.Text.Json.Tests/console.fc7cd506.log?sv=2019-07-07&se=2021-03-30T03%3A30%3A16Z&sr=c&sp=rl&sig=RTYiC9aOfCFarBhU5meOO1Wfu3NZuEX9RSMimXvy5L0%3D

And I clicked the link in the most recent hit, it pulls up how-to-debug-dump.md, which gives me the magic commands to paste in to get dump, symbols, and binaries pulled down, then open it in lldb, eg

dotnet tool install --global runfo
dotnet tool update --global runfo
runfo get-helix-payload -j a18c2113-8e70-40f3-967c-ada5df3ab122 -w System.Text.Json.Tests -o ~/helix_payload/System.Text.Json.Tests\
lldb --core ~/helix_payload/System.Text.Json.Tests/workitems/System.Text.Json.Tests/core.41566 ~/helix_payload/System.Text.Json.Tests/shared/Microsoft.NETCore.App/6.0.0/dotnet

It really is super easy now. Unfortunately I don't have a Mac, so I couldn't actually do the lldb part. @steveharter could you please take a look, and tell us how this goes for you?

cc @jkotas

@danmoseley
Copy link
Member

cc @stephentoub in case he's interested in how easy it is to get to dumps on all OS'es by just copy/pasting a couple commands out the log.

@eiriktsarpalis eiriktsarpalis removed the untriaged New issue has not been triaged by the area owner label Apr 19, 2021
@jkotas
Copy link
Member

jkotas commented Apr 20, 2021

I have looked at 3 recent crash dumps. My notes are at https://gist.github.com/jkotas/e2221257fd59e90a7860a77b06dc0d03

All 3 dumps show consistent pattern: We crash while dispatching virtual interface call from System.Text.Json.Tests.BufferFactory+ReadOnlyBufferSegment.Create.

The crash is caused by bit 0x2 set on MethodTable* of the object we are dispatching on. Also, there is a background GC running inside background_sweep at the same time.

@Maoni0 I believe that this is a problem introduced by #43021. Could you please take a look?

@ghost
Copy link

ghost commented Apr 20, 2021

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

Issue Details
/tmp/helix/working/AFBC0A27/p/dotnet exec --runtimeconfig System.Text.Json.Tests.runtimeconfig.json --depsfile System.Text.Json.Tests.deps.json xunit.console.dll System.Text.Json.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing 
popd
===========================================================================================================
/private/tmp/helix/working/AFBC0A27/w/A45108B5/e /private/tmp/helix/working/AFBC0A27/w/A45108B5/e
  Discovering: System.Text.Json.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Text.Json.Tests (found 2262 of 2294 test cases)
  Starting:    System.Text.Json.Tests (parallel test collections = on, max threads = 4)
./RunTests.sh: line 162:  4756 Segmentation fault: 11  (core dumped) "$RUNTIME_PATH/dotnet" exec --runtimeconfig System.Text.Json.Tests.runtimeconfig.json --depsfile System.Text.Json.Tests.deps.json xunit.console.dll System.Text.Json.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing $RSP_FILE
/private/tmp/helix/working/AFBC0A27/w/A45108B5/e
----- end Tue Feb 2 11:45:29 PST 2021 ----- exit code 139 ----------------------------------------------------------
exit code 139 means SIGSEGV Illegal memory access. Deref invalid pointer, overrunning buffer, stack overflow etc. Core 

log https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-master-9a64c530bf744066ac/System.Text.Json.Tests/console.f709eb52.log?sv=2019-07-07&se=2021-02-22T19%3A41%3A51Z&sr=c&sp=rl&sig=xU%2FU9Zqz9syAbZ7PJnLwtfBYk6DtHDt4CTs5OIRB6dI%3D

build https://dev.azure.com/dnceng/public/_build/results?buildId=975991&view=logs&j=05e92ac1-194e-59cf-664a-fa72d1cdd19b&t=caea1d4b-c90c-5be1-e57d-c4635079c333

Runfo Tracking Issue: system.text.json.tests OSX failure

Build Definition Kind Run Name Console Core Dump Test Results Run Client
1082899 runtime PR 51099 net6.0-Linux-Release-arm-CoreCLR_checked-(Alpine.312.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm32v7-20200908125213-5bece88 console.log core dump
1082303 runtime PR 51073 net6.0-OSX-Debug-x64-CoreCLR_checked-OSX.1013.Amd64.Open console.log core dump runclient.py
1080651 runtime PR 51025 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log test results runclient.py
1080651 runtime PR 51025 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log test results runclient.py
1080305 runtime PR 50832 net6.0-Linux-Release-arm64-CoreCLR_checked-(Alpine.312.Arm64.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm64v8-20200602002604-25f8a3e console.log core dump runclient.py
1078239 runtime PR 50893 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1078239 runtime PR 50893 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1077590 runtime PR 50885 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1077590 runtime PR 50885 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1077551 runtime PR 50893 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1077551 runtime PR 50893 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1072066 runtime PR 50364 net6.0-Linux-Release-arm-CoreCLR_checked-(Alpine.312.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm32v7-20200908125213-5bece88 console.log core dump runclient.py
1072066 runtime PR 50364 net6.0-Linux-Release-arm-CoreCLR_checked-(Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7-bfcd90a-20200121150440 console.log core dump
1071508 runtime PR 50364 net6.0-Linux-Release-arm-CoreCLR_checked-(Alpine.312.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm32v7-20200908125213-5bece88 console.log core dump
1071508 runtime PR 50364 net6.0-Linux-Release-arm-CoreCLR_checked-(Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7-bfcd90a-20200121150440 console.log core dump
1069839 runtime Rolling net6.0-OSX-Release-x64-CoreCLR_release-OSX.1013.Amd64.Open console.log core dump runclient.py
1069839 runtime Rolling net6.0-OSX-Release-x64-CoreCLR_checked-OSX.1013.Amd64.Open console.log runclient.py
1069447 runtime Rolling net6.0-OSX-Release-x64-CoreCLR_release-OSX.1014.Amd64.Open console.log core dump runclient.py
1067051 runtime PR 50479 net6.0-OSX-Debug-x64-Mono_release-OSX.1014.Amd64.Open console.log core dump runclient.py
1067051 runtime PR 50479 net6.0-OSX-Debug-x64-Mono_release-OSX.1015.Amd64.Open console.log
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-mono_interpreter_release-Debian.9.Amd64.Open console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-Mono_release-(Centos.8.Amd64.Open)Ubuntu.1604.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:centos-8-helix-20201229003624-c1bf759 console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-Mono_release-RedHat.7.Amd64.Open console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-Mono_release-(Debian.10.Amd64.Open)ubuntu.1604.amd64.open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-bfcd90a-20200121150006 console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-Mono_release-Ubuntu.1604.Amd64.Open console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-Mono_release-Ubuntu.1804.Amd64.Open console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-Mono_release-SLES.15.Amd64.Open console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-x64-Mono_release-(Fedora.30.Amd64.Open)ubuntu.1604.amd64.open@mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-30-helix-20200512010621-4f8cef7 console.log core dump
1067051 runtime PR 50479 net6.0-Linux-Debug-arm64-Mono_release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-helix-arm64v8-20210106155927-56c6673 console.log core dump
1067051 runtime PR 50479 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log
1066426 runtime PR 50364 net6.0-Linux-Release-arm-CoreCLR_checked-(Alpine.312.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm32v7-20200908125213-5bece88 console.log core dump
1066426 runtime PR 50364 net6.0-Linux-Release-arm-CoreCLR_checked-(Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7-bfcd90a-20200121150440 console.log core dump
1065829 runtime Rolling net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1065829 runtime Rolling net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1064164 runtime PR 50446 net6.0-windows-Release-x86-CoreCLR_checked-Windows.10.Amd64.Open console.log runclient.py
1064164 runtime PR 50446 net6.0-Linux-Release-arm64-CoreCLR_checked-(Alpine.312.Arm64.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm64v8-20200602002604-25f8a3e console.log core dump runclient.py
1064164 runtime PR 50446 net6.0-Linux-Release-arm-CoreCLR_checked-(Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7-bfcd90a-20200121150440 console.log core dump runclient.py
1064164 runtime PR 50446 net6.0-Linux-Release-arm-CoreCLR_checked-(Alpine.312.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm32v7-20200908125213-5bece88 console.log core dump runclient.py
1063804 runtime Rolling net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1063487 runtime PR 50421 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1063487 runtime PR 50421 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1063487 runtime PR 50421 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1063487 runtime PR 50421 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1061583 runtime Rolling net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1061583 runtime Rolling net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1061318 runtime PR 50360 net6.0-Linux-Release-arm-CoreCLR_checked-(Alpine.312.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm32v7-20200908125213-5bece88 console.log core dump runclient.py
1061318 runtime PR 50360 net6.0-Linux-Release-arm-CoreCLR_checked-(Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7-bfcd90a-20200121150440 console.log core dump runclient.py
1061318 runtime PR 50360 net6.0-Linux-Release-arm64-CoreCLR_checked-(Alpine.312.Arm64.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm64v8-20200602002604-25f8a3e console.log core dump runclient.py
1061318 runtime PR 50360 net6.0-windows-Release-x86-CoreCLR_checked-Windows.10.Amd64.Open console.log
1059587 runtime PR 50280 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1057317 runtime Rolling net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1057171 runtime PR 50082 net6.0-windows-Release-x86-CoreCLR_checked-Windows.10.Amd64.Open console.log runclient.py
1057171 runtime PR 50082 net6.0-Linux-Release-arm-CoreCLR_checked-(Alpine.312.Arm32.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm32v7-20200908125213-5bece88 console.log core dump runclient.py
1057171 runtime PR 50082 net6.0-Linux-Release-arm-CoreCLR_checked-(Ubuntu.1804.Arm32.Open)Ubuntu.1804.Armarch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-helix-arm32v7-bfcd90a-20200121150440 console.log core dump runclient.py
1057171 runtime PR 50082 net6.0-Linux-Release-arm64-CoreCLR_checked-(Alpine.312.Arm64.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.12-helix-arm64v8-20200602002604-25f8a3e console.log core dump runclient.py
1056573 runtime PR 50254 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1056573 runtime PR 50254 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1056573 runtime PR 50254 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1056573 runtime PR 50254 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1056573 runtime PR 50254 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1056573 runtime PR 50254 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump runclient.py
1056573 runtime PR 50254 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1055639 runtime PR 50227 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log core dump test results runclient.py
1055639 runtime PR 50227 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1055639 runtime PR 50227 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log runclient.py
1050314 runtime PR 48601 net6.0-windows-Debug-x64-CoreCLR_checked-Windows.10.Amd64.Open console.log
1050243 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log
1050243 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log
1047146 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log
1047146 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log
1047146 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log
1047146 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-mono_interpreter_release-Debian.9.Amd64.Open console.log core dump
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-Mono_release-(Centos.8.Amd64.Open)Ubuntu.1604.Amd64.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:centos-8-helix-20201229003624-c1bf759 console.log core dump
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-Mono_release-RedHat.7.Amd64.Open console.log core dump runclient.py
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-Mono_release-(Debian.10.Amd64.Open)ubuntu.1604.amd64.open@mcr.microsoft.com/dotnet-buildtools/prereqs:debian-10-helix-amd64-bfcd90a-20200121150006 console.log core dump
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-Mono_release-Ubuntu.1604.Amd64.Open console.log core dump
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-Mono_release-Ubuntu.1804.Amd64.Open console.log core dump
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-Mono_release-SLES.15.Amd64.Open console.log core dump
1046026 runtime PR 49740 net6.0-Linux-Debug-x64-Mono_release-(Fedora.30.Amd64.Open)ubuntu.1604.amd64.open@mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-30-helix-20200512010621-4f8cef7 console.log core dump
1046026 runtime PR 49740 net6.0-Linux-Debug-arm64-Mono_release-(Ubuntu.1804.ArmArch.Open)Ubuntu.1804.ArmArch.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-16.04-helix-arm64v8-20210106155927-56c6673 console.log core dump
1046026 runtime PR 49740 net6.0-OSX-Debug-x64-Mono_release-OSX.1014.Amd64.Open console.log core dump
1046026 runtime PR 49740 net6.0-OSX-Debug-x64-Mono_release-OSX.1015.Amd64.Open console.log core dump
1045420 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-normal-Ubuntu.1804.Amd64.Open console.log
1045420 runtime PR 49635 net6.0-Browser-Release-wasm-Mono_Release-wasmtestonbrowser-Ubuntu.1804.Amd64.Open console.log
1041458 runtime PR 49691 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py
1041458 runtime PR 49691 net6.0-windows-Debug-x64-Mono_release-Windows.10.Amd64.Server19H1.ES.Open console.log runclient.py
1041454 runtime PR 49693 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py
1041454 runtime PR 49693 net6.0-windows-Debug-x64-Mono_release-Windows.10.Amd64.Server19H1.ES.Open console.log runclient.py
1041454 runtime PR 49693 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py
1041454 runtime PR 49693 net6.0-windows-Debug-x64-Mono_release-Windows.10.Amd64.Server19H1.ES.Open console.log runclient.py
1041440 runtime PR 49544 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py
1041440 runtime PR 49544 net6.0-windows-Debug-x64-Mono_release-Windows.10.Amd64.Server19H1.ES.Open console.log runclient.py
1041440 runtime PR 49544 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py
1041440 runtime PR 49544 net6.0-windows-Debug-x64-Mono_release-Windows.10.Amd64.Server19H1.ES.Open console.log runclient.py
1041433 runtime PR 48226 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py
1041433 runtime PR 48226 net6.0-windows-Debug-x64-Mono_release-Windows.10.Amd64.Server19H1.ES.Open console.log runclient.py
1041428 runtime PR 49305 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py
1041428 runtime PR 49305 net6.0-windows-Debug-x64-Mono_release-Windows.10.Amd64.Server19H1.ES.Open console.log runclient.py
1041386 runtime PR 49540 net6.0-windows-Debug-x64-Mono_release-Windows.81.Amd64.Open console.log runclient.py

Displaying 100 of 583 results

Build Result Summary

Day Hit Count Week Hit Count Month Hit Count
1 7 129
Author: Anipik
Assignees: steveharter
Labels:

area-GC-coreclr, area-System.Text.Json, blocking-clean-ci

Milestone: -

@Maoni0
Copy link
Member

Maoni0 commented Apr 21, 2021

we are trying to get a local repro. @PeterSolMS will be doing the investigation.

@PeterSolMS
Copy link
Contributor

I've been able to get a repro on Windows/amd64 by setting the bit more eagerly (ignoring whether background GC needs it or not), and checking whether BGC needs the background mark bit set where we test the bit. This makes it fail apparently because the object is right before a pinned plug, and we save the object and restore it later. At the place where we test the bit in make_free_list_in_brick it has not been restored yet, apparently.

@Maoni0
Copy link
Member

Maoni0 commented Apr 27, 2021

ahh right we are not doing this for sweep like we do for compact_plug. but I think we should be able to make this case simpler for sweep by making sure we clear these bits when we recover.

@PeterSolMS
Copy link
Contributor

I've been able to catch 3 crash dumps so far, all of them have the bad object right in front of a pinned plug. In two cases, the size of the bad object was 32 bytes, in one case it was 24 bytes (a boxed System.Boolean). I wonder if we can simply generalize your fix for is_plug_padded, clearing the bits when we save to saved_pre_plug or saved_post_plug, but not for the copy saved to saved_pre_plug_reloc or saved_post_plug_reloc.

@Maoni0
Copy link
Member

Maoni0 commented Apr 29, 2021

@PeterSolMS yes I think that would work!

@PeterSolMS
Copy link
Contributor

Proposed fix in PR #52183. With this fix in place, the issue has repro'd in days.

PeterSolMS added a commit that referenced this issue May 4, 2021
Fix issue #47805 - in this case, the BGC_MARKED_BY_FGC bit (0x2) set in the method table leaked out and caused issues for the user program.

In the cases that I've been able to repro, this happened because the bit got set for a short object right in front of a pinned plug, and then saved away by enque_pinned_plug.

Later on, in the case of mark & sweep, we check for the bit and reset it, but later we copy the saved object back by calling recover_saved_pinned_info which calls recover_plug_info to do the actual work. This isn't a problem for the compact case, because we copy the saved object back during compact_plug, turn the bit off, then save it again at the end of compact_plug.

The fix is to turn off the extra bits at the beginning of enque_pinned_plug and save_post_plug_info for the copy that is later restored in mark & sweep (there are actually two copies saved, one for use during compact and one for use during mark & sweep). This builds on an earlier fix by Maoni for a similar problem with another bit.
@PeterSolMS
Copy link
Contributor

PR has been merged.

@jkotas
Copy link
Member

jkotas commented May 4, 2021

@PeterSolMS Thank you!

@jkotas jkotas closed this as completed May 4, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-GC-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
Projects
None yet
Development

No branches or pull requests

8 participants