Skip to content

Conversation

hnwyllmm
Copy link
Collaborator

What problem were solved in this pull request?

Issue Number: close #381

Problem:
当前lbt输出的信息无法直接使用addr2line获取栈信息。

What is changed and how it works?

使用backtrace调用获取到栈信息偏移量时,通过/proc/self/maps减去当前区间的起始地址,然后输出。

@hnwyllmm
Copy link
Collaborator Author

@nautaa Please take a look

@hnwyllmm hnwyllmm merged commit 7c0137f into oceanbase:main Nov 15, 2024
14 checks passed
@hnwyllmm hnwyllmm deleted the backtrace branch November 15, 2024 03:25
Willaaaaaaa pushed a commit to Willaaaaaaa/miniob that referenced this pull request May 22, 2025
### What problem were solved in this pull request?

Issue Number: close oceanbase#381

Problem:
当前lbt输出的信息无法直接使用addr2line获取栈信息。

### What is changed and how it works?
使用backtrace调用获取到栈信息偏移量时,通过/proc/self/maps减去当前区间的起始地址,然后输出。
jiahaonb pushed a commit to jiahaonb/miniob that referenced this pull request Jun 3, 2025
### What problem were solved in this pull request?

Issue Number: close oceanbase#381

Problem:
当前lbt输出的信息无法直接使用addr2line获取栈信息。

### What is changed and how it works?
使用backtrace调用获取到栈信息偏移量时,通过/proc/self/maps减去当前区间的起始地址,然后输出。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]日志文件中打印出来的栈信息不能使用addr2line识别
2 participants