Propagate exceptions for bootstrapper NativeFunction#6
Merged
StackOverflowExcept1on merged 1 commit intoStackOverflowExcept1on:masterfrom Feb 13, 2026
Conversation
Add `exceptions: "propagate"` (default is `steal`) to NativeFunction call for bootstrapper to resolve `new Harmony` call exceptions on native call
9b456fd
into
StackOverflowExcept1on:master
2 checks passed
Contributor
Author
|
I accidentally found your post on frida I didn't get to the exact root cause of the problem (what exception is thrown) but my change fixes it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
exceptions: "propagate"(default issteal) to NativeFunction call for bootstrapper to resolvenew Harmonycall exceptions on native callCurrently, the demo
_run.batfails to finish hook initialization.It starts here
net-core-injector/Bootstrapper/src/library.cpp
Line 110 in d856191
And then fails here
net-core-injector/RuntimePatcher/RuntimePatcher/Lib.cs
Line 16 in d856191
It seems to me
new Harmonystarts to load something which throws benign exception (tries to resolve/load0Harmony.dllor does reflection?) which fridastealby default.See nativefunction
exceptions: "propagate"helps to let the app RuntimePatcher to properly deal with Harmony code injection initialization.Before:

After:
