Huixxi opened a new issue #1634:
URL: https://github.com/apache/incubator-brpc/issues/1634


   **Describe the bug (描述bug)**
   Like dumping_thread in bvar, naming_services_thread in 
loadbalancewithnaming, why bRPC allows them keep running until process quit 
without join them, it should be very risky that when process is quitting, that 
some variables has been destroyed but these bthreads is keeping reading or 
writing them, which will cause some cores.
   
   **To Reproduce (复现方法)**
   E.g. set gflags: bvar_dump to true, which will result in start the bvar's 
dumping_thread and keep running until the process quit, that a segment fault 
core will occur because some gflags the dumping_thread keep reading are 
destroyed by gflags when process quit but dumping_thread still keep reading 
them, dumping_thread is not joined before process quit.
   
   **Expected behavior (期望行为)**
   dumping_thread should be joined before process quit.
   
   **Versions (各种版本)**
   OS:
   Compiler:
   brpc:
   protobuf:
   
   **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