You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "CodeZHXS (via GitHub)" <gi...@apache.org> on 2025/06/09 03:16:10 UTC
[PR] Fix bthread task tracer deadlock bug (issue #2983) (brpc)
CodeZHXS opened a new pull request, #2988:
URL: https://github.com/apache/brpc/pull/2988
### What problem does this PR solve?
Issue Number: #2983
Problem Summary: `TaskTracer::TraceImpl`, did not set the relevant variables(`m->traced`) on all return paths, which would cause a deadlock
### What is changed and the side effects?
use `BRPC_SCOPE_EXIT` to ensure (`m->traced=false`).
Changed: src/bthread/task_tracer.cpp `TaskTracer::TraceImpl()` function
Side effects:
- Performance effects: No
- Breaking backward compatibility: No
---
--
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: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
Re: [PR] Fix bthread task tracer deadlock bug (issue #2983) (brpc)
Posted by "chenBright (via GitHub)" <gi...@apache.org>.
chenBright merged PR #2988:
URL: https://github.com/apache/brpc/pull/2988
--
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: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org