Failing to run when loading an incompatible plugin
还没有人认领这个 Issue。
评估
调研方向
从实现加载 .dll、.so 和 .dynlib 插件指令的 VM 代码开始。使用 release Ark 重现加载 debug 插件的情况,然后跟踪未捕获的异常并定义失败路径,使不兼容的插件产生明确的错误并中止执行,而不是将未定义的符号留到后续处理。
由索引模型根据 Issue 内容生成。
描述
In the VM, we have an instruction to load plugins (.dll, .so and .dynlib, depending on the OS), working perfectly when Ark and the plugin have been compiled with the same compiler and the same compilation options (both debug or both release).
A problem occurs when we use a debug plugin with a release ark: ark silently fails to load it, throwing an exception we aren't catching / interpreting as "bad plugin".
This should be investigated to be able to tell the user that the plugin couldn't be loaded, and we should abort execution (no plugin loaded => undefined symbols later on, coming from the plugin we didn't load, thus can not execute: better to abort to give a clear error message).
This problem will mostly be encountered by our contributors and development team, as our end users are only being provided the final binaries, which we should test before publishing. When developing we sometimes forget to recompile everything, and it's really annoying because we start searching for a bug in the VM while it's just a target to recompile.
- 主要语言
- C++
- 星标
- 729
- 派生
- 54
- 平均合并
- 4 小时 8 分钟
- 30 天内合并 PR
- 2
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ArkScript-lang/Ark 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 65/100
ArkScript-lang/Ark#712 · 2 条评论 ·
-
🤔 help wanted ark/repl documentation enhancement
难度 5/5 一周以上 新手友好度 35/100
ArkScript-lang/Ark#711 ·
-
❗️ priority/low 👷 ci 🤔 help wanted github_actions
难度 5/5 一周以上 新手友好度 30/100
ArkScript-lang/Ark#708 ·
-
automated issue report
难度 2/5 1-3 小时 新手友好度 55/100
ArkScript-lang/Ark#700 ·
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
ArkScript-lang/Ark#631 ·
查看 ArkScript-lang/Ark 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
AXERA-TECH/ax-llm#77 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
games-on-whales/wolf#509 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
-
bug-unconfirmed
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 74/100
NVIDIA/cuda-samples#453 ·