Skip to content
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

VC-LTL 在 Debug 模式下 ASAN 无法使用 #22

Closed
MouriNaruto opened this issue Dec 21, 2021 · 2 comments
Closed

VC-LTL 在 Debug 模式下 ASAN 无法使用 #22

MouriNaruto opened this issue Dec 21, 2021 · 2 comments
Labels
类型:问题(Bug) Something isn't working 处置:不予处理(wontfix) This will not be worked on 影响范围:低 这个问题不会造成真正的体验问题,可以暂缓解决。

Comments

@MouriNaruto
Copy link
Member

MouriNaruto commented Dec 21, 2021

ASAN 即 Address Sanitizer,详细介绍可参阅 https://docs.microsoft.com/en-us/cpp/sanitizers/asan

这个功能对于一些用户来说还是很有用的,该问题由友人 @FASTSHIFT 发现在使用了 VC-LTL 的 LVGL Windows 仿真器项目无法使用 ASAN 后,我进行粗略分析后做出的反馈

注:由于 Release 模式下可以正常使用 ASAN,于是猜测和 VC-LTL 的 Debug Heap 实现有关

附报错截图一份

image

复现参考环境

  • MSVC 2022 (14.30.30705)
  • VC-LTL v5.0.4-Beta1

毛利

@mingkuang-Chuyu
Copy link
Collaborator

mingkuang-Chuyu commented Dec 21, 2021

确认Release没有问题,可以临时针对Debug关闭VC-LTL(临时缓解方案)

影响面看起来比较低

@mingkuang-Chuyu mingkuang-Chuyu added 处置:正在讨论(Review) 我们正在讨论如何解决,怎么实现更好。 类型:问题(Bug) Something isn't working labels Dec 21, 2021
@mingkuang-Chuyu mingkuang-Chuyu added the 影响范围:低 这个问题不会造成真正的体验问题,可以暂缓解决。 label Jan 4, 2022
MouriNaruto added a commit to lvgl/lv_port_pc_visual_studio that referenced this issue Jan 17, 2022
@mingkuang-Chuyu
Copy link
Collaborator

在分支中,目前Debug可以编译通过,但是任然会有运行时报错。ASAN自身的Hook实现似乎有点问题。

@mingkuang-Chuyu mingkuang-Chuyu added 处置:不予处理(wontfix) This will not be worked on and removed 处置:正在讨论(Review) 我们正在讨论如何解决,怎么实现更好。 labels May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
类型:问题(Bug) Something isn't working 处置:不予处理(wontfix) This will not be worked on 影响范围:低 这个问题不会造成真正的体验问题,可以暂缓解决。
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants