Skip to content

May 9 21:11:41 server883 kernel: [218937.760135] .NET Server GC[1427719]: segfault at 8 ip 00007f7440ae835c sp 00007f74395bfdf0 error 6 #86183

@stefanschnabs

Description

@stefanschnabs

Description

We are seeing segmentation faults as seen in the kernel logs:

May  9 21:11:41 server883 kernel: [218937.760135] .NET Server GC[1427719]: segfault at 8 ip 00007f7440ae835c sp 00007f74395bfdf0 error 6
May  9 21:11:41 server883 kernel: [218937.760141] .NET Server GC[1427720]: segfault at 4 ip 00007f7440940652 sp 00007f74395bb9c0 error 4
May  9 21:11:41 server883 kernel: [218937.760143]  in libcoreclr.so[7f74406a9000+4e2000]
May  9 21:11:41 server883 kernel: [218937.760149] Code: a2 91 0f 00 c3 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 40 84 ff 74 18 66 48 8d 3d b7 33 0c 00 66 66 48 e8 a7 0c 0a 00 48 8b 00 <f0> 83 48 08 40 48 8b 05 c8 33 0c 00 48 8b 38 48 85 ff 74 09 48 8b
May  9 21:11:41 server883 kernel: [218937.760152]  in libcoreclr.so[7f74406a9000+4e2000]
May  9 21:11:41 server883 kernel: [218937.760156] Code: c8 22 00 00 48 3b 8f c0 22 00 00 77 0e 4c 89 29 49 8b 8f c8 22 00 00 49 8b 45 00 48 83 c1 08 49 89 8f c8 22 00 00 48 83 e0 f8 <8b> 48 04 83 38 00 0f 88 d0 03 00 00 45 31 f6 49 01 ce 49 8b 97 b0

We have seen it on multiple servers now running dotnet 7, we have not identified the issue on any servers running dotnet 6

We have identified one server where this is happening quote often:
image

What addition information could help with your investigation? For example, turn on a extra reporting, or we may be able to privately share a mini dump. If so please specify what you need and the correct way to enable and share privately.

Reproduction Steps

Unfortunately we have no steps identified to repro, but as seen above we do have a server experiencing the problem often.

Expected behavior

No segfaults

Actual behavior

segfaults occurring causing the container to crash and restart

Regression?

We have not seen this occur in dotnet 6

Known Workarounds

N/A
Update May 17th 2023: Can workaround this issue using the dotnet 6 GC in dotnet 7 by setting ENV VAR COMPlus_GCName=libclrgc.so. Note: this can only work in .NET 7 until such a moment when libclrgc.so is removed from the distribution

Configuration

  • mcr.microsoft.com/dotnet/sdk:7.0-jammy (7.0.203)
  • Ubuntu 20.04.6 LTS
  • x64

Other information

  • We know there has been big changes in GC in dotnet 7 compared to dotnet 6 and have yet to pin the problem any other change as of yet

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-GC-coreclrneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsideration

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions