-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
lambdageek
added
area-Codegen-Interpreter-mono
runtime-mono
specific to the Mono runtime
labels
Jul 7, 2020
Dotnet-GitSync-Bot
added
the
untriaged
New issue has not been triaged by the area owner
label
Jul 7, 2020
3 tasks
Just calling the method directly, without reflection using |
fanyang-mono
removed
the
untriaged
New issue has not been triaged by the area owner
label
Aug 1, 2020
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>
ghost
locked as resolved and limited conversation to collaborators
Dec 8, 2020
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: