runtime: System.Text.Json.Tests crashing with segfault in CI
Configuration: 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
/root/helix/work/workitem /root/helix/work/workitem
Discovering: System.Text.Json.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.Text.Json.Tests (found 2741 of 2798 test cases)
Starting: System.Text.Json.Tests (parallel test collections = on, max threads = 4)
./RunTests.sh: line 162: 93 Segmentation fault (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
/root/helix/work/workitem
----- end Wed Aug 11 10:28:18 UTC 2021 ----- exit code 139 ----------------------------------------------------------
exit code 139 means SIGSEGV Illegal memory access. Deref invalid pointer, overrunning buffer, stack overflow etc. Core dumped.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (21 by maintainers)
Btw, in how_to_debug_dump.md, there is a bug in this section:
it should be:
as lldb doesn’t resolve shell’s shortcuts
~
to homedir and (the cryptic) error looks similar to what Eirik pointed out above:Another issue is that we should replace 6.0.0 with 7.0.0, as most of these commands do not validate if 6.0.0 directory actually exists. (I had to repeat the steps a few times to realize these gotchas 😁)
@am11 thanks for pointing out the errors, perhaps you could appropriately tweak https://github.com/dotnet/runtime/blob/main/eng/testing/debug-dump-template.md (which is processed to generate this file) – you can just click the pencil button to edit it in Github directly, and PR validation will not be necessary.