Pageant Connector brings down application on .NET 10 runtime

#18479 · open · 1 comments

View on GitHub ↗

AliveDevil

With runtime upgrades to .NET 9/10 the CoreCLR got a lot stricter on calling back into the CLR during DllMain Thread Detach. First encountered in #17443, the workaround no longer works. Actionable tasks: - Fix JNIDispatch to not rely on DllMain thread_detach reason to cleanup - There is threadlocal-storage, however it is unclear whether this is really called before .NET FlsAlloc-cleanup - Drop Pageant entirely - Implement Pageant in C# - Requires implementing some kind of platform dependent SSH agent configurator in `SSHSession` Recent .NET Runtime issue: [dotnet/runtime#117538](https://redirect.github.com/dotnet/runtime/issues/117538) Related with WPF: [dotnet/wpf#11785](https://redirect.github.com/dotnet/wpf/issues/11785)

Comments

dkocher

This issue is discussed in JNA in - [ ] https://github.com/java-native-access/jna/issues/1479