-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[mono] Incorrect target method resolution in ldvirtftn+delegate creation #83003
Labels
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
vargaz
added
area-Codegen-JIT-mono
and removed
untriaged
New issue has not been triaged by the area owner
labels
Mar 5, 2023
ghost
added
the
in-pr
There is an active PR which will close this issue when it is merged
label
Mar 5, 2023
vargaz
added a commit
to vargaz/runtime
that referenced
this issue
Mar 6, 2023
Use delegate->method_is_virtual instead of complicated conditions. That flag is set by the code generated in handle_delegate_ctor () if an ldvirtftn instruction was skipped, and thus virtual method resolution needs to be done at call time. Fixes dotnet#83003.
ghost
removed
the
in-pr
There is an active PR which will close this issue when it is merged
label
Mar 8, 2023
ghost
locked as resolved and limited conversation to collaborators
Apr 7, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Testcase:
Expected results:
Actual result: recursive calls to Derived:foo () causing a stack overflow and crash.
Environment: dotnet/runtime master on arm64
This is caused by this code path in mini-trampolines.c:
This only happens on arm64 because arm64 doesn't have fast virtual delegate invoke trampolines, so we bail out of
handle_delegate_ctor ():
Reproduction Steps
...
Expected behavior
...
Actual behavior
...
Regression?
...
Known Workarounds
...
Configuration
...
Other information
No response
The text was updated successfully, but these errors were encountered: