Skip to content

关于wait_task卡死问题 #670

@hairet

Description

@hairet

Describe the bug (描述bug)

有些brpc服务线程,一直卡在wait_task里面
堆栈如下:
#0 0x00007f50400cb4d9 in syscall () from /data/services/lib_glibc/lib/libc.so.6
#1 0x0000000000890939 in bthread::futex_wait_private (timeout=0x0, expected=, addr1=) at ./src/bthread/sys_futex.h:37
#2 bthread::ParkingLot::wait (expected_state=..., this=) at ./src/bthread/parking_lot.h:57
#3 bthread::TaskGroup::wait_task (this=this@entry=0x502f680, tid=tid@entry=0x7f502794ab08) at src/bthread/task_group.cpp:124
#4 0x0000000000894edb in bthread::TaskGroup::run_main_task (this=this@entry=0x502f680) at src/bthread/task_group.cpp:152
#5 0x00000000009feb48 in bthread::TaskControl::worker_thread (arg=0x46ac500) at src/bthread/task_control.cpp:73
#6 0x00007f504105b6ba in start_thread () from /data/services/lib_glibc/lib/libpthread.so.0
#7 0x00007f50400d141d in clone () from /data/services/lib_glibc/lib/libc.so.6

To Reproduce (复现方法)

不定时出现,还没找到出现规律和原因
不确定是不是跟我们使用自己编译的glibc有关

Expected behavior (期望行为)

Versions (各种版本)
OS:
Compiler:
brpc:
protobuf:

Additional context/screenshots (更多上下文/截图)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions