You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "hpsdy (via GitHub)" <gi...@apache.org> on 2024/08/19 03:39:24 UTC

[I] grpc H2UnsentResponse LeakSanitizer: detected memory leaks (brpc)

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

   **Describe the bug (描述bug)**
   asan 压测,报h2协议brpc::policy::H2UnsentResponse::New内存泄漏
   
   **To Reproduce (复现方法)**
   brpc1.8.0,h2:grpc协议。编译选项加上-fsanitize=address -fno-common,编译静态链接asan。
   
   **Expected behavior (期望行为)**
   期望不报任何异常错误。
   
   **Versions (各种版本)**
   OS: Linux bae12e6ce16f 5.4.139-1.el7.elrepo.x86_64 #1 SMP Sat Aug 7 08:29:46 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux
   Compiler: clang version 10.0.0-4ubuntu1
   brpc: 1.8.0
   protobuf: v3.20.0
   
   **Additional context/screenshots (更多上下文/截图)**
   
   <img width="1711" alt="截屏2024-08-19 上午11 38 13" src="https://github.com/user-attachments/assets/1a0d49e9-ccaa-4ed1-b7d2-148c15d82d93">
   
   
   <img width="868" alt="截屏2024-08-19 上午11 38 24" src="https://github.com/user-attachments/assets/79f1a5f2-fb15-4bb1-9f79-5f3c24758e41">
   
   


-- 
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: dev-unsubscribe@brpc.apache.org.apache.org

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


Re: [I] grpc H2UnsentResponse LeakSanitizer: detected memory leaks (brpc)

Posted by "chenBright (via GitHub)" <gi...@apache.org>.
chenBright commented on issue #2738:
URL: https://github.com/apache/brpc/issues/2738#issuecomment-2312488671

   https://github.com/apache/brpc/blob/d3c68546ec3973e03656c6129d8f17e0198a5824/src/brpc/policy/http2_rpc_protocol.cpp#L1687-L1691
   https://github.com/apache/brpc/blob/d3c68546ec3973e03656c6129d8f17e0198a5824/src/brpc/policy/http2_rpc_protocol.cpp#L1672-L1678
   
   在Socket里会调`AppendAndDestroySelf`回收的。
   
   压测场景下,出现内存泄漏,应该不止泄漏几百bytes吧。是不是进程退出的时候,server还在处理请求呢?
   


-- 
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: dev-unsubscribe@brpc.apache.org

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


Re: [I] grpc H2UnsentResponse LeakSanitizer: detected memory leaks (brpc)

Posted by "hpsdy (via GitHub)" <gi...@apache.org>.
hpsdy commented on issue #2738:
URL: https://github.com/apache/brpc/issues/2738#issuecomment-2367183505

   进程没有退出,就是正常开启asan mem leak压测服务, 检查是否有问题。 然后一直会报这个case。


-- 
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: dev-unsubscribe@brpc.apache.org

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


Re: [I] grpc H2UnsentResponse LeakSanitizer: detected memory leaks (brpc)

Posted by "hpsdy (via GitHub)" <gi...@apache.org>.
hpsdy commented on issue #2738:
URL: https://github.com/apache/brpc/issues/2738#issuecomment-2309198077

   有人么?


-- 
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: dev-unsubscribe@brpc.apache.org

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


Re: [I] grpc H2UnsentResponse LeakSanitizer: detected memory leaks (brpc)

Posted by "wwbmmm (via GitHub)" <gi...@apache.org>.
wwbmmm commented on issue #2738:
URL: https://github.com/apache/brpc/issues/2738#issuecomment-2375629852

   我记得asan是进程退出时才产出内存泄露报告的,如果进程没退出就检查,可能会不准确吧


-- 
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: dev-unsubscribe@brpc.apache.org

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