Skip to content

进程stop时死锁在bvar::detail::Sampler::destroy #1280

@pluswu

Description

@pluswu

进程本省时daemon运行的(目前brpc只使用了dummyserver功能,设置了run_command_through_clone=false,通过信号stop时 会死锁
0x00007fa64e8be55d in __lll_lock_wait () from /lib64/libpthread.so.0
#1 0x00007fa64e8b9eab in _L_lock_883 () from /lib64/libpthread.so.0
#2 0x00007fa64e8b9d78 in pthread_mutex_lock () from /lib64/libpthread.so.0
#3 0x00007fa64d6943f6 in lock (this=0x8df67f0) at ./src/butil/synchronization/lock.h:69
#4 bvar::detail::Sampler::destroy (this=0x8df67d0) at src/bvar/detail/sampler.cpp:205
#5 0x00007fa64d68450d in ~WindowBase (this=0x7fa64dd6c0a0 bvar::g_minflt_second, __in_chrg=) at ./src/bvar/window.h:90
#6 bvar::PerSecond<bvar::PassiveStatus >::~PerSecond (this=0x7fa64dd6c0a0 bvar::g_minflt_second, __in_chrg=) at ./src/bvar/window.h:197
#7 0x00007fa64b4aa07a in __cxa_finalize () from /lib64/libc.so.6
#8 0x00007fa64d61fe43 in __do_global_dtors_aux () from /data/home/pluswu/Projects/StoryofSeasons/proj/server/common/extern/brpc/libbrpc.so
#9 0x00007ffda6da19c0 in ?? ()

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions