-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[interp] DynamicMethod with a CALL of a P/Invoke throws "BadImageFormatException: Method has no body" #38897
Labels
Comments
3 tasks
Just calling the method directly, without reflection using |
This is the stack trace which triggered this exception:
However, |
monojenkins
pushed a commit
to monojenkins/mono
that referenced
this issue
Aug 3, 2020
Fixes dotnet/runtime#38897 , by allowing transforming internal calls when method is dynamic.
This is where the bug was
|
fanyang-mono
added a commit
to mono/mono
that referenced
this issue
Aug 4, 2020
Fixes dotnet/runtime#38897 , by allowing transforming internal calls when method is dynamic. Co-authored-by: fanyang-mono <fanyang-mono@users.noreply.github.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
The following program correctly calls the P/Invoke when runnign with the JIT, but throws a
BadImageFormatException: Method has no body
under the interpreter.and
clang -o libFoo.dylib -shared foo.c
wherefoo.c
is:Configuration
Mono on OSX. Both net5 and mono/mono master.
Regression?
not sure
Other information
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: