Open anoop331 opened 1 year ago
When .net8 AOT compiled linux-arm64 library interface is invoked using DllImport from .net8 CLR code, on linux-arm64 environment, it crashes.
The code where this issue can be reproduced is listed here in the following repo.
https://github.com/anoop331/net8aot
The AOT compilation can be done using the docker file in the repo.
The following table lists down the combinations where it works and it doesn't, all on linux-arm64 target (yocto running on QEMU arm64).
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
When .net8 AOT compiled linux-arm64 library interface is invoked using DllImport from .net8 CLR code, on linux-arm64 environment, it crashes.
The code where this issue can be reproduced is listed here in the following repo.
https://github.com/anoop331/net8aot
The AOT compilation can be done using the docker file in the repo.
The following table lists down the combinations where it works and it doesn't, all on linux-arm64 target (yocto running on QEMU arm64).
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
Invoking Env (linux-arm64) | Lib Compiled Using | Status | Error on terminal -- | -- | -- | -- net7 CLR | net7 | Works | net7 AOT | net7 | works | net7 CLR | net8 | Error | net8 CLR | net7 | works | net8 CLR | net8 | Error | aborted net8 AOT | net8 | Error | aborted net7 AOT | net8 | Works | c ++ | net8 | Works | c ++ | net7 | Works |