You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You would expect o.GetHashCode to throw NullReferenceException, but on Linux this will throw SEHException instead.
As a workaround you can set LIBCLANG_DISABLE_CRASH_RECOVERY=1, which seems to indicate there's a conflict between Clang's crash recovery and .NET's internal handling of null dereferences.
The easiest workaround would be to use setenv before initializing libclang as suggested here: dotnet/ClangSharp#167 (comment)
The text was updated successfully, but these errors were encountered:
This was slowly driving me insane while debugging a test which tests shoving a null in a place where it doesn't belong.
Minimal repro:
You would expect
o.GetHashCode
to throwNullReferenceException
, but on Linux this will throwSEHException
instead.As a workaround you can set
LIBCLANG_DISABLE_CRASH_RECOVERY=1
, which seems to indicate there's a conflict between Clang's crash recovery and .NET's internal handling of null dereferences.The easiest workaround would be to use
setenv
before initializing libclang as suggested here: dotnet/ClangSharp#167 (comment)The text was updated successfully, but these errors were encountered: