Debugger IPC creation failure should not abort coreclr startup (#90161)
authorTom McDonald <tommcdon@microsoft.com>
Thu, 10 Aug 2023 01:39:00 +0000 (21:39 -0400)
committerGitHub <noreply@github.com>
Thu, 10 Aug 2023 01:39:00 +0000 (21:39 -0400)
* Debugger IPC creation failure should not abort coreclr startup

* Add log message for debugger pipe init failure

* Use Stress log instead of COMPLUS logging

src/coreclr/debug/ee/debugger.cpp

index 0372768..a44a9e2 100644 (file)
@@ -1947,7 +1947,8 @@ HRESULT Debugger::Startup(void)
         if (FAILED(hr))
         {
             ShutdownTransport();
-            ThrowHR(hr);
+            STRESS_LOG0(LF_CORDB, LL_ERROR, "D::S: The debugger pipe failed to initialize in /tmp or $TMPDIR.\n");
+            return S_OK; // we do not want debugger IPC to block runtime initialization
         }
     #endif // FEATURE_DBGIPC_TRANSPORT_VM