Skip to content

bvar::Variable::dump_exposed 时死锁 #1335

@pluswu

Description

@pluswu

Describe the bug (描述bug)

To Reproduce (复现方法)
非必先

Expected behavior (期望行为)

Versions (各种版本)
OS: centos
Compiler: g++ 4.8.5
brpc:
protobuf:

Additional context/screenshots (更多上下文/截图)
#0 0x00007efc5ad4a42d in __lll_lock_wait () from /lib64/libpthread.so.0
#1 0x00007efc5ad45de6 in _L_lock_870 () from /lib64/libpthread.so.0
#2 0x00007efc5ad45cdf in pthread_mutex_lock () from /lib64/libpthread.so.0
#3 0x00007efc59b14eed in lock_guard (mutex=..., this=) at /data/home/pluswu/incubator-brpc/src/butil/scoped_lock.h:163
#4 bvar::Variable::hide (this=this@entry=0x7efc5a1f7f00 bvar::g_minflt_second) at /data/home/pluswu/incubator-brpc/src/bvar/variable.cpp:189
#5 0x00007efc59af899f in ~WindowBase (this=0x7efc5a1f7f00 bvar::g_minflt_second, __in_chrg=) at /data/home/pluswu/incubator-brpc/src/bvar/window.h:88
#6 bvar::PerSecond<bvar::PassiveStatus >::~PerSecond (this=0x7efc5a1f7f00 bvar::g_minflt_second, __in_chrg=) at /data/home/pluswu/incubator-brpc/src/bvar/window.h:197
#7 0x00007efc577a0dda in __cxa_finalize () from /lib64/libc.so.6
#8 0x00007efc59aa3023 in __do_global_dtors_aux () from /data/home/user00/server/lib/libbrpc.so
#9 0x00007ffd9f1a6660 in ?? ()
#10 0x00007efc5af67b3a in _dl_fini () from /lib64/ld-linux-x86-64.so.2

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