Skip to content

Runtime crashing under WSL2 on Volterra #106081

Closed
@AndyAyersMS

Description

@AndyAyersMS

I have Ubuntu 24.04 installed on my arm64 volterra under WSL2. I was trying to reproduce #105670.

I'm seeing crashes with both runfo-downloaded and locally built runtimes, eg from runfo bits

/home/andya/bugs/r105670/./correlation-payload/dotnet exec --runtimeconfig LibraryImportGenerator.Unit.Tests.runtimeconfig.json --depsfile LibraryImportGenerator.Unit.Tests.deps.json xunit.console.dll LibraryImportGenerator.Unit.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing
popd
===========================================================================================================
~/bugs/r105670/workitems/LibraryImportGenerator.Unit.Tests ~/bugs/r105670/workitems/LibraryImportGenerator.Unit.Tests
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Text.RegularExpressions.Regex..ctor(System.String, System.Globalization.CultureInfo)
   at Xunit.DependencyContextAssemblyCache..cctor()
   at Xunit.DependencyContextAssemblyCache.GetFallbackRuntime(System.String)
   at Xunit.DependencyContextAssemblyCache.<.ctor>b__17_0()

Will update once I've done a bit more debugging.

Crash happens at this load, looks like a TLS access:

/_/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/AsyncMethodBuilderCore.cs @ 28:
0000f3d16c7cc1f4 40d03bd5             mrs     x0, TPIDR_EL0
0000f3d16c7cc1f8 01639bd2             mov     x1, #0xdb18
0000f3d16c7cc1fc 211dadf2             movk    x1, #0x68e9, lsl #16
0000f3d16c7cc200 016861b8             ldr     w1, [x0, x1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions