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/07/23 06:45:42 UTC

[GitHub] [incubator-brpc] deardeng opened a new issue #1180: example的http_c++的例子中,http_server 段错误

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


   **Describe the bug (描述bug)**
   编译运行http_server,用./http_client localhost:8010/FileService/largefile测试,会出现core dump
   
   **To Reproduce (复现方法)**
   
   ![image](https://user-images.githubusercontent.com/3887565/88258513-e7b87980-ccf2-11ea-97d5-f0effd9b678c.png)
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:centos7
   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.

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] jamesge commented on issue #1180: example的http_c++的例子中,http_server 段错误

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


   [已修复](https://github.com/apache/incubator-brpc/commit/2071a22c7f8ca4dfd47b1f0b607737082b66c865), 原因是返回的ProgressiveAttachment没有在rpc结束前用intrusive_ptr接住,而在rpc结束时直接被删除了。目前改为创建时就直接返回intrusive_ptr<ProgressiveAttachment>


----------------------------------------------------------------
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] jamesge closed issue #1180: example的http_c++的例子中,http_server 段错误

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


   


----------------------------------------------------------------
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] jamesge edited a comment on issue #1180: example的http_c++的例子中,http_server 段错误

Posted by GitBox <gi...@apache.org>.
jamesge edited a comment on issue #1180:
URL: https://github.com/apache/incubator-brpc/issues/1180#issuecomment-663403982


   [已修复](https://github.com/apache/incubator-brpc/commit/2071a22c7f8ca4dfd47b1f0b607737082b66c865), 原因是返回的ProgressiveAttachment需传到另一个线程(SendLargeFile)后再用intrusive_ptr加上引用计数,但rpc可能在那之前就结束了,同时删除了pa,造成问题。目前改为创建时就直接返回intrusive_ptr<ProgressiveAttachment>以避免这一问题,感谢报告。


----------------------------------------------------------------
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] jamesge edited a comment on issue #1180: example的http_c++的例子中,http_server 段错误

Posted by GitBox <gi...@apache.org>.
jamesge edited a comment on issue #1180:
URL: https://github.com/apache/incubator-brpc/issues/1180#issuecomment-663403982


   [已修复](https://github.com/apache/incubator-brpc/commit/2071a22c7f8ca4dfd47b1f0b607737082b66c865), 原因是返回的ProgressiveAttachment需传到另一个线程(SendLargeFile)后再用intrusive_ptr加上引用计数,但rpc可能在那之前就结束了,同时删除了pa,造成问题。目前改为创建时就直接返回intrusive_ptr<ProgressiveAttachment>以避免这一问题。


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