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

[MTP] Hanging on v1.6.2 #5158

Open
thomhurst opened this issue Feb 28, 2025 · 1 comment
Open

[MTP] Hanging on v1.6.2 #5158

thomhurst opened this issue Feb 28, 2025 · 1 comment
Labels
Area: MTP Belongs to the Microsoft.Testing.Platform core library Needs: Triage 🔍 Regression

Comments

@thomhurst
Copy link
Contributor

I've stuck on 1.4.3 for a while now because Rider had an issue where test discovery broke for any versions above this.

However I tried to upgrade to 1.6.2 yesterday and now I'm seeing hanging in Ubuntu and Mac. It happens the majority of the time, but also can be intermittent. Windows seems to always pass?

I've downgraded back to 1.4.3 and the hanging seems to have stopped again.

I collected an ubuntu hang dump file (I can't attach it here as it's too large) but here is the link to the artifact: /~https://github.com/thomhurst/TUnit/actions/runs/13595551691/artifacts/2672995550

There's also lots of output from the hangdump process that looks like machine instructions that I don't understand, not sure if it's useful to you, but you can see the summary here: /~https://github.com/thomhurst/TUnit/actions/runs/13595551691

MacOS doesn't produce me a proper hang dump. See #5157.

I'm not experienced with dump files, but I tried loading the ubuntu hangdump into WinDbg and just got an error (is this because it was generated on ubuntu?)

************* Preparing the environment for Debugger Extensions Gallery repositories **************
   ExtensionRepository : Implicit
   UseExperimentalFeatureForNugetShare : true
   AllowNugetExeUpdate : true
   NonInteractiveNuget : true
   AllowNugetMSCredentialProviderInstall : true
   AllowParallelInitializationOfLocalRepositories : true
   EnableRedirectToChakraJsProvider : false

   -- Configuring repositories
      ----> Repository : LocalInstalled, Enabled: true
      ----> Repository : UserExtensions, Enabled: true

>>>>>>>>>>>>> Preparing the environment for Debugger Extensions Gallery repositories completed, duration 0.000 seconds

************* Waiting for Debugger Extensions Gallery to Initialize **************

>>>>>>>>>>>>> Waiting for Debugger Extensions Gallery to Initialize completed, duration 0.844 seconds
   ----> Repository : UserExtensions, Enabled: true, Packages count: 0
   ----> Repository : LocalInstalled, Enabled: true, Packages count: 43

Microsoft (R) Windows Debugger Version 10.0.27793.1000 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.


Loading Dump File [C:\Users\Tom\Downloads\HangDumpubuntu-latest\TUnit.Engine.Tests\bin\Release\net9.0\TestResults\hangdump.engine-tests.dmp]
64-bit machine not using 64-bit API

************* Path validation summary **************
Response                         Time (ms)     Location
Deferred                                       srv*
Symbol search path is: srv*
Executable search path is: 
Generic Unix Version 0 UP Free x64
System Uptime: not available
Process Uptime: not available
................................................................
..........
The call to LoadLibrary(sos) failed, Win32 error 0n2
    "The system cannot find the file specified."
Please check your debugger configuration and/or network access.
Extension DLL search Path:
    C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2502.25002.0_x64__8wekyb3d8bbwe\amd64\WINXP;C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2502.25002.0_x64__8wekyb3d8bbwe\amd64\winext;C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2502.25002.0_x64__8wekyb3d8bbwe\amd64\winext\arcade;C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2502.25002.0_x64__8wekyb3d8bbwe\amd64\pri;C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2502.25002.0_x64__8wekyb3d8bbwe\amd64;C:\Users\Tom\AppData\Local\Dbg\EngineExtensions;C:\Program Files\WindowsApps\Microsoft.WinDbg_1.2502.25002.0_x64__8wekyb3d8bbwe\amd64;C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin;C:\Python311\Scripts\;C:\Python311\;C:\Program Files\Eclipse Adoptium\jre-11.0.14.9-hotspot\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\dotnet\;C:\ProgramData\chocolatey\bin;C:\Users\Tom\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Docker\Docker\resources\bin;C:\Program Files\PowerShell\7\;C:\Program Files\GitHub CLI\;C:\Users\Tom\AppData\Local\Microsoft\WindowsApps;C:\Users\Tom\.dotnet\tools;C:\Users\Tom\AppData\Local\JetBrains\Toolbox\scripts;C:\Users\Tom\AppData\Roaming\nvm;C:\Users\Tom\AppData\Roaming\npm;C:\Users\Tom\AppData\Local\Programs\Fiddler;C:\Users\Tom\.dotnet\tools;C:\Users\Tom\AppData\Local\Microsoft\WindowsApps
You may also consider deploying your extension to the UserExtensions extension gallery repository
located at %LOCALAPPDATA%\dbg\UserExtensions folder. It would require an extension manifest.
Error: Failed to load extension sos
*** WARNING: Unable to verify checksum for System.Private.CoreLib.dll
*** WARNING: Unable to verify timestamp for libc.so.6
*** WARNING: Unable to verify timestamp for libcoreclr.so
libc_so!_nptl_death_event+0x181:
00007ff6`79c98d71 4489ef          mov     edi,r13d

Let me know how I can help further.

@Youssef1313 Youssef1313 added Regression Area: MTP Belongs to the Microsoft.Testing.Platform core library labels Mar 1, 2025
@Youssef1313 Youssef1313 added this to the MSTest 3.8.3 / MTP 1.6.3 milestone Mar 1, 2025
@thomhurst
Copy link
Contributor Author

Got another dump: /~https://github.com/thomhurst/TUnit/actions/runs/13605944697?pr=1969

Tried using the dotnet-dump analyze

pe
There is no current managed exception on this thread

clrstack
OS Thread Id: 0x2345 (0)
Child SP IP Call Site
00007FFF39F6AA50 00007fa00b698d71 [InlinedCallFrame: 00007fff39f6aa50]
00007FFF39F6AA50 00007f9f8c086d86 [InlinedCallFrame: 00007fff39f6aa50]
00007FFF39F6AA30 00007F9F8C086D86 System.Threading.Monitor.Wait(System.Object, Int32) [//src/coreclr/System.Private.CoreLib/src/System/Threading/Monitor.CoreCLR.cs @ 157]
00007FFF39F6AAE0 00007F9F8C093CD3 System.Threading.ManualResetEventSlim.Wait(Int32, System.Threading.CancellationToken) [/
/src/libraries/System.Private.CoreLib/src/System/Threading/ManualResetEventSlim.cs @ 578]
00007FFF39F6AB60 00007F9F8C0A95BC System.Threading.Tasks.Task.SpinThenBlockingWait(Int32, System.Threading.CancellationToken) [//src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs @ 3090]
00007FFF39F6ABC0 00007F9F8C0A9358 System.Threading.Tasks.Task.InternalWaitCore(Int32, System.Threading.CancellationToken) [/
/src/libraries/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs @ 2997]
00007FFF39F6AC10 00007F9F8C0FFDA8 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task, System.Threading.Tasks.ConfigureAwaitOptions) [//src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/TaskAwaiter.cs @ 123]
00007FFF39F6AC30 00007F9F8C22F528 System.Runtime.CompilerServices.TaskAwaiter`1[[System.Int32, System.Private.CoreLib]].GetResult() [/
/src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/TaskAwaiter.cs @ 335]
00007FFF39F6AC40 00007F9F8CDFF2C7 TestingPlatformEntryPoint.

(System.String[])

Not really finding anything useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: MTP Belongs to the Microsoft.Testing.Platform core library Needs: Triage 🔍 Regression
Projects
None yet
Development

No branches or pull requests

2 participants