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

   task tracer 目前有 `ContextTrace` 和 `SignalTrace` 两种回溯方式,`SignalTrace` 
将信号发送给目标进程,目标进程处理信号的同时,将运行上下文 `context` 发送给 `SignalTrace` 的进程。
   
   `SignalHandler` 函数启用了一个超时的时间(默认是 50ms),如果回溯超时,`SignalHandler` 会直接退出并结束。
   
   
![Image](https://github.com/user-attachments/assets/c85125e6-d26f-4f3a-959f-0a41f9b3a2df)
   
   这种方式会不会存在问题?例如,如果 `SignalTrace` 在 `unw_init_local` 之前,`SignalHandler` 
就退出了,这样的话 `unw_init_local` 可能会失败,甚至访问到空指针。
   
   <img width="513" alt="Image" 
src="https://github.com/user-attachments/assets/3ae6b9b1-f1a2-41e3-a080-2e43b64a8577";
 />


-- 
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