45 Star 18 Fork 128

OpenHarmony / third_party_llvm-project

 / 详情

[R&D][Sanitizers] Support dump register in asan

已完成
需求 成员
创建于  
2024-01-15 19:34

We have an error like this,but it doesn't printf register info,so we can't analyze it, we need to implement MaybeDumpRegisters.

ERROR: AddressSanitizer: BUS on unknown address (pc 0x0020224a96e0 bp 0x007fc159cc80 sp 0x007fc159cb40 T0)
The signal is caused by a READ memory access.
Hint: this fault was caused by a dereference of a high value address (see register values below). Disassemble the provided pc to learn which register was used.
 #0 0x20224a96e0 (/lib/ld-musl-aarch64-asan.so.1+0x8c6e0)
 #1 0x20224a95dc (/lib/ld-musl-aarch64-asan.so.1+0x8c5dc)
 #2 0x202252edcc (/lib/ld-musl-aarch64-asan.so.1+0x111dcc)
 #3 0x55570cc304 (/system/asan/bin/hilogd+0x1d304)

AddressSanitizer can not provide additional info.

评论 (4)

yinchuang 创建了任务

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @hhj @Pavel Kosov 。如果需要调整订阅PR、Issue的变更状态,请访问链接

Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer @hhj @Pavel Kosov for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

openharmony_ci 添加了
 
waiting_for_assign
标签
yinchuang 修改了描述
yinchuang 修改了描述
yinchuang 修改了描述
Pavel Kosov 任务类型任务 修改为需求
Pavel Kosov 修改了标题
Pavel Kosov 任务状态Backlog 修改为已分解
Pavel Kosov 负责人设置为Pavel Kosov

您好, @Pavel Kosov ,issue已经分配给您,请及时处理。

@Pavel Kosov , the issue has been assigned to you. Please handle it in time.

openharmony_ci 移除了
 
waiting_for_assign
标签
openharmony_ci 添加了
 
waiting_for_fix
标签

@yinchuang

  1. Are there any small examples, which are failed? Those examples will be useful for testing developed solution
  2. At this moment register dump is implemented only for Mac, we need to do it for Linux (OHOS), right?
    void SignalContext::DumpAllRegisters(void *context)
Peshkov Ivan 负责人Pavel Kosov 修改为Peshkov Ivan

您好, @Peshkov Ivan ,issue已经分配给您,请及时处理。

@Peshkov Ivan , the issue has been assigned to you. Please handle it in time.

Pavel Kosov 任务状态已分解 修改为In Development
Pavel Kosov 任务状态In Development 修改为Done
Pavel Kosov 任务状态Done 修改为In Development
Peshkov Ivan 通过openharmony/third_party_llvm-project Pull Request !362任务状态In Development 修改为Done

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
7387629 openharmony ci 1656582662
C++
1
https://gitee.com/openharmony/third_party_llvm-project.git
git@gitee.com:openharmony/third_party_llvm-project.git
openharmony
third_party_llvm-project
third_party_llvm-project

搜索帮助