Skip to content

Commit 7d73b0b

Browse files
authored
IGNITE-23732 .NET: Document CET crash on .NET 9 (#11677)
1 parent 7bde6a4 commit 7d73b0b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/_docs/net-specific/net-troubleshooting.adoc

+26
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,29 @@ NativeLibrary.SetDllImportResolver(
178178
(lib, _, _) => lib == "libcoreclr.so" ? (IntPtr) (-1) : IntPtr.Zero);
179179
----
180180
--
181+
182+
=== .NET 9: Process exited with code -1073740791 (0xc0000409)
183+
184+
Caused by Intel CET (Control-flow Enforcement Technology) being link:https://learn.microsoft.com/en-us/dotnet/core/compatibility/interop/9.0/cet-support[enabled by default for .NET 9 assemblies].
185+
Ignite starts a JVM in-process, which is incompatible with CET.
186+
187+
More details:
188+
189+
* link:https://learn.microsoft.com/en-us/dotnet/core/compatibility/9.0[Breaking changes in .NET 9]
190+
* link:https://windows-internals.com/cet-on-windows/[CET Internals in Windows]
191+
* link:https://ptupitsyn.github.io/Ignite-on-NET-9/[Blog: Ignite on .NET 9]
192+
193+
==== Workaround
194+
195+
Disable CET for the application by adding the following to the main project file (csproj, vsproj, etc):
196+
197+
[tabs]
198+
--
199+
tab:XML[]
200+
[source,xml]
201+
----
202+
<PropertyGroup>
203+
<CETCompat>false</CETCompat>
204+
</PropertyGroup>
205+
----
206+
--

0 commit comments

Comments
 (0)