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

__hloop_process_timers 发生core,如何定位? #651

Open
jackeyt opened this issue Dec 16, 2024 · 1 comment
Open

__hloop_process_timers 发生core,如何定位? #651

jackeyt opened this issue Dec 16, 2024 · 1 comment

Comments

@jackeyt
Copy link

jackeyt commented Dec 16, 2024

coredump发生在__hloop_process_timers

(gdb) bt
#0  0xb6e09b68 in __hloop_process_timers () from lib/libhv.so
#1  0xb6e0a1e0 in hloop_process_events () from lib/libhv.so
#2  0xb6e0b718 in hloop_run () from lib/libhv.so
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
  • 问题1:__hloop_process_timers 这个接口中比较可能出现coredump的代码是哪里?
  • 问题2:我当时发生core的时候并没有去使用-O0的库,在发生后编译了O0的库,用gdb的调试手段去替换旧的库,但是没有起效,有没有方式可以共享一下?
@ithewei
Copy link
Owner

ithewei commented Dec 18, 2024

是不是在其它线程调用了htimer_add、htimer_del等接口导致?这些接口不是线程安全的

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

No branches or pull requests

2 participants