Skip to content

Conversation

@VSadov
Copy link
Member

@VSadov VSadov commented Aug 24, 2025

Fixes: #118981

These tests load a native .dll/.so , which starts threads, enters the runtime, runs managed code, throws unhandled exceptions...

We have other similar tests. They are marked as incompatible with llvmfullaot.
I guess, these should be marked incompatible as well.

…fullaot`

These kind of tests are not compatible.
@VSadov VSadov added the disabled-test The test is disabled in source code against the issue label Aug 24, 2025
Copilot AI review requested due to automatic review settings August 24, 2025 00:54
@VSadov VSadov added area-VM-meta-mono runtime-mono specific to the Mono runtime labels Aug 24, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR disables UnhandledExceptionHandler tests with native components on llvmfullaot runtime to address compatibility issues. The tests involve loading native libraries that interact with the runtime in ways that cause problems with LLVM full AOT compilation.

  • Adds exclusion rules for UnhandledExceptionHandler tests in Foreign and PInvoke subdirectories
  • Follows existing pattern used for similar tests that have native component interactions

@VSadov
Copy link
Member Author

VSadov commented Aug 25, 2025

Thanks!!

@VSadov VSadov merged commit d258af5 into dotnet:main Aug 25, 2025
79 checks passed
@VSadov VSadov deleted the unhLLVM branch August 25, 2025 01:19
VSadov added a commit that referenced this pull request Aug 25, 2025
…fullaot` (#119039)

These kind of tests are not compatible.
VSadov added a commit that referenced this pull request Aug 26, 2025
…fullaot` (#119039)

These kind of tests are not compatible.
VSadov added a commit that referenced this pull request Aug 28, 2025
…fullaot` (#119039)

These kind of tests are not compatible.
VSadov added a commit that referenced this pull request Aug 28, 2025
…fullaot` (#119039)

These kind of tests are not compatible.
jeffschwMSFT pushed a commit that referenced this pull request Aug 29, 2025
…io in Mono. (#118878)

* Implement UnhandledException hook for finalizers in Mono.

* Cache the finalize method on wasm

* Precompile invoke helper for GuardedFinalize

* only check for GuardedFinalize in corlib

* make GuardedFinalize virtual

* use mono_runtime_try_invoke, since we can wih instance methods

* comment out unused

* Move GuardedFinalize to a helper class

* make it static

* some cleanup

* remove no longer relevant comment

* Disable UnhandledExceptionHandler tests with foreign threads on `llvmfullaot` (#119039)

These kind of tests are not compatible.

---------

Co-authored-by: vsadov <[email protected]>
Co-authored-by: Vladimir Sadov <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Sep 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-VM-meta-mono disabled-test The test is disabled in source code against the issue runtime-mono specific to the Mono runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[linux][x64][mono][aot] Test fails - baseservices/exceptions/UnhandledExceptionHandler/Foreign/ForeignUnhandled/ForeignUnhandled.cmd

2 participants