You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2020/09/07 08:20:22 UTC

[GitHub] [incubator-brpc] guodongxiaren opened a new issue #1228: brpc端口占用的时候停止core

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


   **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
   brpc启动如果端口占用,会产生core dump。进程大概2分钟后才消失。能不能不出core dump直接终止进程。
   经常误以为进程启动了。其实是在产出core,进程停留了2分钟。
   
   **Describe the solution you'd like (描述你期望的解决方法)**
   
   
   **Describe alternatives you've considered (描述你想到的折衷方案)**
   
   
   **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.

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


[GitHub] [incubator-brpc] gydong commented on issue #1228: brpc端口占用的时候停止core

Posted by GitBox <gi...@apache.org>.
gydong commented on issue #1228:
URL: https://github.com/apache/incubator-brpc/issues/1228#issuecomment-688559911


   代码中有对Start()函数有加判断吗?类似这样子
   
   ![image](https://user-images.githubusercontent.com/3294444/92422786-2aee7f00-f1b1-11ea-919f-7f07a1b4a997.png)
   


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

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


[GitHub] [incubator-brpc] guodongxiaren commented on issue #1228: brpc端口占用的时候停止core

Posted by GitBox <gi...@apache.org>.
guodongxiaren commented on issue #1228:
URL: https://github.com/apache/incubator-brpc/issues/1228#issuecomment-690832416


   找到问题了。不是brpc引起的。是return的时候。会触发另外一个第三方库的对象析构。这时候core掉的。


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

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


[GitHub] [incubator-brpc] guodongxiaren commented on issue #1228: brpc端口占用的时候停止core

Posted by GitBox <gi...@apache.org>.
guodongxiaren commented on issue #1228:
URL: https://github.com/apache/incubator-brpc/issues/1228#issuecomment-690832416


   找到问题了。不是brpc引起的。是return的时候。会触发另外一个第三方库的对象析构。这时候core掉的。


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

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


[GitHub] [incubator-brpc] guodongxiaren closed issue #1228: brpc端口占用的时候停止core

Posted by GitBox <gi...@apache.org>.
guodongxiaren closed issue #1228:
URL: https://github.com/apache/incubator-brpc/issues/1228


   


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

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


[GitHub] [incubator-brpc] guodongxiaren closed issue #1228: brpc端口占用的时候停止core

Posted by GitBox <gi...@apache.org>.
guodongxiaren closed issue #1228:
URL: https://github.com/apache/incubator-brpc/issues/1228


   


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

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


[GitHub] [incubator-brpc] guodongxiaren commented on issue #1228: brpc端口占用的时候停止core

Posted by GitBox <gi...@apache.org>.
guodongxiaren commented on issue #1228:
URL: https://github.com/apache/incubator-brpc/issues/1228#issuecomment-688589709


   > 代码中有对Start()函数有加判断吗?类似这样子
   > 
   > ![image](https://user-images.githubusercontent.com/3294444/92422786-2aee7f00-f1b1-11ea-919f-7f07a1b4a997.png)
   
   有的。
   return -1之前,也尝试添加了server.Stop(0); server.Join(); 结果还是一样。先出core,等几分钟再结束进程。
   return -1之前的LOG还能打印出来。不知道你们遇到过没。


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

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


[GitHub] [incubator-brpc] gydong commented on issue #1228: brpc端口占用的时候停止core

Posted by GitBox <gi...@apache.org>.
gydong commented on issue #1228:
URL: https://github.com/apache/incubator-brpc/issues/1228#issuecomment-688628360


   我遇到过几次端口被占用的情况,可以顺利退出,不会core


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

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