agents: fix crash accessing cont prof queue#348
agents: fix crash accessing cont prof queue#348santigimeno wants to merge 1 commit intonode-v22.x-nsolid-v5.xfrom
Conversation
WalkthroughA static callback function in the gRPC agent implementation was updated to include an additional null check. Now, the function returns early if either the agent pointer or its internal profile queue is null, enhancing safety before attempting to enqueue profile data. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
On runtime shutdown, when continuous profiling is enabled, it can happen that we try access `GrpcAgent::cont_prof_queue_` when it has already being reset, thus crashing the process.
4163c74 to
4a13325
Compare
On runtime shutdown, when continuous profiling is enabled, it can happen that we try access `GrpcAgent::cont_prof_queue_` when it has already being reset, thus crashing the process. PR-URL: #348 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
|
Landed in 7cd0229 |
On runtime shutdown, when continuous profiling is enabled, it can happen that we try access `GrpcAgent::cont_prof_queue_` when it has already being reset, thus crashing the process. PR-URL: #348 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
On runtime shutdown, when continuous profiling is enabled, it can happen that we try access `GrpcAgent::cont_prof_queue_` when it has already being reset, thus crashing the process. PR-URL: #348 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> PR-URL: #359 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
On runtime shutdown, when continuous profiling is enabled, it can happen that we try access
GrpcAgent::cont_prof_queue_when it has already being reset, thus crashing the process.Summary by CodeRabbit