[ 
https://issues.apache.org/jira/browse/IGNITE-23732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pavel Tupitsyn updated IGNITE-23732:
------------------------------------
    Description: 
*Ignition.Start()* crashes the process on .NET 9 on Windows
* Works on .NET 8 on all OS
* Works on .NET 9 on Linux

{code}
Process finished with exit code -1,073,740,791.
{code}

Environment:
* Win 11 Home 23H2 build 22631.4460
* .NET SDK 9.0.100
* OpenJDK Runtime Environment Microsoft-10378222 (build 11.0.25+9-LTS)

h1. Fix

Disable *CETCompat* in the csproj file:

{code}
...
    <PropertyGroup>
      <CETCompat>false</CETCompat>
    </PropertyGroup>
...
{code}

Caused by a breaking change in .NET 9: 
https://learn.microsoft.com/en-us/dotnet/core/compatibility/interop/9.0/cet-support
More details: https://windows-internals.com/cet-on-windows/ (see 
*FAST_FAIL_SET_CONTEXT_DENIED* mention, which is the actual error code)

  was:
*Ignition.Start()* crashes the process on .NET 9 on Windows
* Works on .NET 8 on all OS
* Works on .NET 9 on Linux

{code}
Process finished with exit code -1,073,740,791.
{code}

Environment:
* Win 11 Home 23H2 build 22631.4460
* .NET SDK 9.0.100
* OpenJDK Runtime Environment Microsoft-10378222 (build 11.0.25+9-LTS)

h1. Workaround

Disable *CETCompat* in the csproj file:

{code}
...
    <PropertyGroup>
      <CETCompat>false</CETCompat>
    </PropertyGroup>
...
{code}

Caused by a breaking change in .NET 9: 
https://learn.microsoft.com/en-us/dotnet/core/compatibility/interop/9.0/cet-support
More details: https://windows-internals.com/cet-on-windows/ (see 
*FAST_FAIL_SET_CONTEXT_DENIED* mention, which is the actual error code)


> .NET: Process crash during node startup on .NET 9 on Windows
> ------------------------------------------------------------
>
>                 Key: IGNITE-23732
>                 URL: https://issues.apache.org/jira/browse/IGNITE-23732
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Blocker
>              Labels: .NET, important
>             Fix For: 2.17
>
>
> *Ignition.Start()* crashes the process on .NET 9 on Windows
> * Works on .NET 8 on all OS
> * Works on .NET 9 on Linux
> {code}
> Process finished with exit code -1,073,740,791.
> {code}
> Environment:
> * Win 11 Home 23H2 build 22631.4460
> * .NET SDK 9.0.100
> * OpenJDK Runtime Environment Microsoft-10378222 (build 11.0.25+9-LTS)
> h1. Fix
> Disable *CETCompat* in the csproj file:
> {code}
> ...
>     <PropertyGroup>
>       <CETCompat>false</CETCompat>
>     </PropertyGroup>
> ...
> {code}
> Caused by a breaking change in .NET 9: 
> https://learn.microsoft.com/en-us/dotnet/core/compatibility/interop/9.0/cet-support
> More details: https://windows-internals.com/cet-on-windows/ (see 
> *FAST_FAIL_SET_CONTEXT_DENIED* mention, which is the actual error code)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to