metalslug2023 opened a new issue, #3253:
URL: https://github.com/apache/brpc/issues/3253

   **Describe the bug**
   #0  0x00007fbd0a804e29 in syscall () from /lib64/libc.so.6
   #1  0x0000000000d5d3c3 in futex_wait_private (timeout=0x0, expected=257, 
addr1=0x7fbcc5d21018) at ./brpc/src/bthread/sys_futex.h:40
   #2  bthread::internal::FastPthreadMutex::lock_contended 
(this=0x7fbcc5d21018) at ./brpc/src/bthread/mutex.cpp:685
   #3  0x0000000000f14af4 in lock_guard (__m=..., this=<synthetic pointer>) at 
/usr/include/c++/7/bits/std_mutex.h:162
   #4  erase_from_butex (state=bthread::WAITER_STATE_TIMEDOUT, wakeup=true, 
bw=0x7fbceeffebb0) at ./brpc/src/bthread/butex.cpp:504
   #5  erase_from_butex_and_wakeup (arg=0x7fbceeffebb0) at 
./brpc/src/bthread/butex.cpp:487
   #6  bthread::wait_for_butex (arg=0x7fbceeffebb0) at 
./brpc/src/bthread/butex.cpp:558
   #7  0x0000000000d6cf2e in bthread::TaskGroup::sched_to 
(pg=pg@entry=0x7fbc98deaaa0, next_meta=next_meta@entry=0x7fbcd40b4f90) at 
./brpc/src/bthread/task_group.cpp:645
   #8  0x0000000000d70573 in sched_to (next_tid=<optimized out>, 
pg=0x7fbc98deaaa0) at ./brpc/src/bthread/task_group_inl.h:78
   #9  bthread::TaskGroup::run_main_task (this=this@entry=0x7fbcc5c83000) at 
./brpc/src/bthread/task_group.cpp:162
   #10 0x0000000000d612d6 in bthread::TaskControl::worker_thread 
(arg=<optimized out>) at ./brpc/src/bthread/task_control.cpp:99
   
   
   **To Reproduce**
   internal::FastPthreadMutex mux;
   BAIDU_SCOPED_LOCK(mux);
   BAIDU_SCOPED_LOCK(mux);
   
   **Expected behavior**
   No deadlock
   
   **Versions**
   OS: CentOS7
   Compiler: GCC7
   brpc: 1.8.0
   protobuf: 3.1x
   
   **Additional context/screenshots**
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to